# accept local traffic
$IPTABLES -A INPUT -i lo -j ACCEPT
-
$IP6TABLES -A INPUT -i lo -j ACCEPT
# accept ICMP
$IPTABLES -A INPUT -p icmp -j ACCEPT
-
$IP6TABLES -A INPUT -p ipv6-icmp -j ACCEPT
# drop source-route rh0 headery things
# accept things we set up
$IPTABLES -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-
$IP6TABLES -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
# accept ipv6 link-local traffic
$IPTABLES -A INPUT -p tcp --tcp-flags ${flags} -j DROP
done
-./services ${EXT_IF}
+# accept ESP for IPSec
+$IPTABLES -A INPUT -p esp -j ACCEPT
+$IP6TABLES -A INPUT -p esp -j ACCEPT
+
+# accept all IPSec traffic
+$IPTABLES -A INPUT -m policy --dir in --pol ipsec -j ACCEPT
+$IP6TABLES -A INPUT -m policy --dir in --pol ipsec -j ACCEPT
+
+./services.sh ${EXT_IF}
create_drop_chain xenophobe