Quantcast
Channel: What is the difference between these 2 iptables rules? - Server Fault
Viewing all articles
Browse latest Browse all 4

Answer by Aaron Tate for What is the difference between these 2 iptables rules?

$
0
0

The top one seems a little confused about what it's trying to do, it only seems to be allowing ssh packets in if iptables hasn't seen traffic in both directions, very strange.

The bottom one is much more sensible but the 2nd line is redundant unless you have a policy of other than ACCEPT on your OUTPUT chain. (iptables -L and look for "Chain OUTPUT (policy XXXXXX)").

You probably just want the first line of the bottom set.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>