This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:line=>'-A INPUT -p tcp -m comment --comment "066 REJECT connlimit_above 10 with mask 32 and mark matches" -m mark --mark 0x1 -m connlimit --connlimit-above 10 --connlimit-mask 32 -j REJECT --reject-with icmp-port-unreachable',
:table=>'filter',
:params=>{
:proto=>'tcp',
:connlimit_above=>'10',
:connlimit_mask=>'32',
:match_mark=>'0x1',
:action=>'reject',
},
},
'clamp_mss_to_pmtu'=>{
:line=>'-A INPUT -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "067 change max segment size" -j TCPMSS --clamp-mss-to-pmtu',
:table=>'filter',
:params=>{
:name=>'067 change max segment size',
:table=>'filter',
:proto=>'tcp',
:tcp_flags=>'SYN,RST SYN',
:jump=>'TCPMSS',
:clamp_mss_to_pmtu=>true,
},
},
}
# This hash is for testing converting a hash to an argument line.
Expand DownExpand Up
@@ -1046,4 +1069,27 @@
},
:args=>["-t",:filter,"-s","0.0.0.0/32","-d","255.255.255.255/32","-p",:udp,"-m","multiport","!","--sports","68,69","-m","multiport","!","--dports","67,66","-m","comment","--comment","065 negate dport and sport","-j","ACCEPT"],
},
'match_mark'=>{
:params=>{
:name=>'066 REJECT connlimit_above 10 with mask 32 and mark matches',
:table=>'filter',
:proto=>'tcp',
:connlimit_above=>'10',
:connlimit_mask=>'32',
:match_mark=>'0x1',
:action=>'reject',
},
:args=>["-t",:filter,"-p",:tcp,"-m","comment","--comment","066 REJECT connlimit_above 10 with mask 32 and mark matches","-j","REJECT","-m","mark","--mark","0x1","-m","connlimit","--connlimit-above","10","--connlimit-mask","32"],
},
'clamp_mss_to_pmtu'=>{
:params=>{
:name=>'067 change max segment size',
:table=>'filter',
:proto=>'tcp',
:tcp_flags=>'SYN,RST SYN',
:jump=>'TCPMSS',
:clamp_mss_to_pmtu=>true,
},
:args=>["-t",:filter,"-p",:tcp,"-m","tcp","--tcp-flags","SYN,RST","SYN","-m","comment","--comment","067 change max segment size","-j","TCPMSS","--clamp-mss-to-pmtu"],
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters