@@ -142,7 +142,7 @@ def self.iptables_save(*args)
142
142
match_mark : '-m mark --mark' ,
143
143
name : '-m comment --comment' ,
144
144
mac_source : [ '-m mac --mac-source' , '--mac-source' ] ,
145
- mss : '-m tcpmss - -mss' ,
145
+ mss : '--mss' ,
146
146
nflog_group : '--nflog-group' ,
147
147
nflog_prefix : '--nflog-prefix' ,
148
148
nflog_range : '--nflog-range' ,
@@ -276,6 +276,7 @@ def self.iptables_save(*args)
276
276
iprange : [ :src_range , :dst_range ] ,
277
277
owner : [ :uid , :gid ] ,
278
278
condition : [ :condition ] ,
279
+ tcpmss : [ :mss ] ,
279
280
conntrack : [ :ctstate , :ctproto , :ctorigsrc , :ctorigdst , :ctreplsrc , :ctrepldst ,
280
281
:ctorigsrcport , :ctorigdstport , :ctreplsrcport , :ctrepldstport , :ctstatus , :ctexpire , :ctdir ] ,
281
282
time : [ :time_start , :time_stop , :month_days , :week_days , :date_start , :date_stop , :time_contiguous , :kernel_timezone ] ,
@@ -357,8 +358,8 @@ def self.iptables_save(*args)
357
358
context_start : '-j SYNPROXY' ,
358
359
} ,
359
360
mss : {
360
- # Extra starting space because the matcher for :mss includes '-m tcpmss' ,
361
- # and the search for it prefixes the matcher with a space
361
+ # Extra starting space because '-m tcpmss' gets prepended to the matcher for :mss before parse ,
362
+ # and the search for it while building the parser list prefixes the matcher with a space
362
363
context_start : ' -m tcpmss' ,
363
364
context_end : %r{ -[mgj] } ,
364
365
} ,
0 commit comments