You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseArgumentError,"INPUT, OUTPUT and FORWARD are the only inbuilt chains that can be used in table 'filter'"if%r{^(PREROUTING|POSTROUTING|BROUTING)$}.match?(should[:chain])
149
+
raiseArgumentError,'INPUT, OUTPUT and FORWARD are the only inbuilt chains that can be used in table \'filter\''if%r{^(PREROUTING|POSTROUTING|BROUTING)$}.match?(should[:chain])
149
150
when'mangle'
150
-
raiseArgumentError,"PREROUTING, POSTROUTING, INPUT, FORWARD and OUTPUT are the only inbuilt chains that can be used in table 'mangle'"if%r{^(BROUTING)$}.match?(should[:chain])
151
+
raiseArgumentError,'PREROUTING, POSTROUTING, INPUT, FORWARD and OUTPUT are the only inbuilt chains that can be used in table \'mangle\''if%r{^(BROUTING)$}.match?(should[:chain])
151
152
when'nat'
152
-
raiseArgumentError,"PREROUTING, POSTROUTING, INPUT, and OUTPUT are the only inbuilt chains that can be used in table 'nat'"if%r{^(BROUTING|FORWARD)$}.match?(should[:chain])
153
-
raiseArgumentError,"table nat isn't valid in IPv6. You must specify ':IPv4' as the name suffix"if%r{^(IP(v6)?)?$}.match?(should[:protocol])
153
+
raiseArgumentError,'PREROUTING, POSTROUTING, INPUT, and OUTPUT are the only inbuilt chains that can be used in table \'nat\''if%r{^(BROUTING|FORWARD)$}.match?(should[:chain])
154
+
raiseArgumentError,'table nat isn\'t valid in IPv6. You must specify \':IPv4\' as the name suffix'if%r{^(IP(v6)?)?$}.match?(should[:protocol])
154
155
when'raw'
155
156
raiseArgumentError,'PREROUTING and OUTPUT are the only inbuilt chains in the table \'raw\''if%r{^(POSTROUTING|BROUTING|INPUT|FORWARD)$}.match?(should[:chain])
156
157
when'broute'
157
158
raiseArgumentError,'BROUTE is only valid with protocol \'ethernet\''ifshould[:protocol] != 'ethernet'
158
159
raiseArgumentError,'BROUTING is the only inbuilt chain allowed on on table \'broute\''if%r{^PREROUTING|POSTROUTING|INPUT|FORWARD|OUTPUT$}.match?(should[:chain])
159
160
when'security'
160
-
raiseArgumentError,"INPUT, OUTPUT and FORWARD are the only inbuilt chains that can be used in table 'security'"if%r{^(PREROUTING|POSTROUTING|BROUTING)$}.match?(should[:chain])
161
+
raiseArgumentError,'INPUT, OUTPUT and FORWARD are the only inbuilt chains that can be used in table \'security\''if%r{^(PREROUTING|POSTROUTING|BROUTING)$}.match?(should[:chain])
161
162
end
162
163
163
164
# Verify that Policy is only passed for the inbuilt chains
164
-
raise"`policy` can only be set on Internal Chains. Setting for `#{should[:name]}` is invalid"if !$built_in_regex.match(should[:chain]) && should.key?(:policy)
165
+
raiseArgumentError,"'policy' can only be set on Internal Chains. Setting for '#{should[:name]}' is invalid"if !$built_in_regex.match(should[:chain]) && should.key?(:policy)
165
166
166
167
# Warn that inbuilt chains will be flushed, not deleted
167
168
warn"Warning: Inbuilt Chains may not be deleted. Chain `#{should[:name]}` will be flushed and have it's policy reverted to default."if $built_in_regex.match(should[:chain]) &&
0 commit comments