aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ikev2/nat-rw-psk/hosts/sun/etc
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2013-01-06 08:43:51 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 16:55:00 +0100
commitd815235d17a0391fa5f72bb61a37b3a9fc57cdc7 (patch)
treef890eab0bb94ae133809a471e2f3b3e363cfcae0 /testing/tests/ikev2/nat-rw-psk/hosts/sun/etc
parent28b7db2b3c09acb617d38dae07611a9b833aee33 (diff)
downloadstrongswan-d815235d17a0391fa5f72bb61a37b3a9fc57cdc7.tar.bz2
strongswan-d815235d17a0391fa5f72bb61a37b3a9fc57cdc7.tar.xz
use iptables-restore in all ikev2 firewall scenarios
Diffstat (limited to 'testing/tests/ikev2/nat-rw-psk/hosts/sun/etc')
-rw-r--r--testing/tests/ikev2/nat-rw-psk/hosts/sun/etc/iptables.rules24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/tests/ikev2/nat-rw-psk/hosts/sun/etc/iptables.rules b/testing/tests/ikev2/nat-rw-psk/hosts/sun/etc/iptables.rules
new file mode 100644
index 000000000..ae8f9a61e
--- /dev/null
+++ b/testing/tests/ikev2/nat-rw-psk/hosts/sun/etc/iptables.rules
@@ -0,0 +1,24 @@
+*filter
+
+# default policy is DROP
+-P INPUT DROP
+-P OUTPUT DROP
+-P FORWARD DROP
+
+# allow IKE
+-A INPUT -i eth0 -p udp --dport 500 -j ACCEPT
+-A OUTPUT -o eth0 -p udp --sport 500 -j ACCEPT
+
+# allow MobIKE
+-A INPUT -i eth0 -p udp --dport 4500 -j ACCEPT
+-A OUTPUT -o eth0 -p udp --sport 4500 -j ACCEPT
+
+# allow ssh
+-A INPUT -p tcp --dport 22 -j ACCEPT
+-A OUTPUT -p tcp --sport 22 -j ACCEPT
+
+# allow crl fetch from winnetou
+-A INPUT -i eth0 -p tcp --sport 80 -s PH_IP_WINNETOU -j ACCEPT
+-A OUTPUT -o eth0 -p tcp --dport 80 -d PH_IP_WINNETOU -j ACCEPT
+
+COMMIT