*** empty log message ***
[openwrt/svn-archive/archive.git] / openwrt / target / default / target_skeleton / etc / init.d / S45firewall
index da9fd550f36121f590ef67321dea8487f63ae07b..7b55643123ca0445bd46b33afc57e7ae537eca5a 100755 (executable)
@@ -32,13 +32,13 @@ iptables -t nat -N postrouting_rule
   iptables -A INPUT -i \! $WAN -j ACCEPT       # allow from lan/wifi interfaces 
   iptables -A INPUT -p icmp -j ACCEPT          # allow ICMP
   iptables -A INPUT -p 47 -j ACCEPT            # allow GRE
+  iptables -A INPUT -p tcp --syn --tcp-option \! 2 -j  DROP
   #
   # insert accept rule or to jump to new accept-check table here
   #
   iptables -A INPUT -j input_rule
 
   # reject (what to do with anything not allowed earlier)
-  iptables -A INPUT -p tcp --syn --tcp-option \! 2 -j  DROP
   iptables -A INPUT -p tcp -j REJECT --reject-with tcp-reset
   iptables -A INPUT -j REJECT --reject-with icmp-port-unreachable