Skip to contentSkip to conversation

Change from --syn (old Style) to stat NEW

DISCUSSION Markus Feldmann 2 participants 4 messages May 14, 2010 – May 15, 2010

lore
Share & tools
lore
#0 lore raw

Hi All,

i am thinking about changing much of my firewall rules from the old style with the <--syn> argument to the new style with the <-m state --state NEW> or to the conntrack style.

For example have a look line 221 to 239 in my firewall http://pastebin.com/cG0Vc4EW

These are my FTP rules. Therefore i am only using the <! --syn> arguments. Is it useful to remove this argument by inserting <-m conntrack ! --cstate NEW> to get more safety ?

regards Markus

#1 lore raw

Further on, which improvements for security do you see in my firewall?

regards Markus

#2 lore raw
In reply to Markus Feldmann
Quoted 11 lines · Markus Feldmann

i am thinking about changing much of my firewall rules from the old style with the <--syn> argument to the new style with the <-m state --state NEW> or to the conntrack style.

For example have a look line 221 to 239 in my firewall
http://pastebin.com/cG0Vc4EW

These are my FTP rules. Therefore i am only using the <! --syn> arguments. Is it useful to remove this argument by inserting <-m conntrack ! --cstate NEW> to get more safety ?

You could combine --syn with --ctstate NEW. That may be considered a bonus (though I admit I don't do so myself).

#3 lore raw
Quoted 3 lines · Jan Engelhardt

You could combine --syn with --ctstate NEW. That may be considered a bonus (though I admit I don't do so myself).

Hi Jan,

Nice idea. :-) Could this be a Problem?

As long as i do not redirect the ports, like i did with my Apache-server from 80 to 443, it should work to combine --syn with --ctstate NEW ?

However it should be more safety to change from --syn to --ctstate NEW for all rules?

regards Markus