aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/tnc/tnccs-20-nea-pt-tls/hosts/dave/etc/iptables.rules
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2017-07-08 23:20:32 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2017-07-08 23:20:32 +0200
commit803ac56626fcbc9864eea962640c8a295adc6db2 (patch)
treeaeb1c702d11ba36c51e207806c0705fc2f03db40 /testing/tests/tnc/tnccs-20-nea-pt-tls/hosts/dave/etc/iptables.rules
parent88b941939f4b008fbe79e0a1ffdd71cb636a0d97 (diff)
parent23e0d6dca32573d2d2dfeb42ee52c42ea21781c3 (diff)
downloadstrongswan-803ac56626fcbc9864eea962640c8a295adc6db2.tar.bz2
strongswan-803ac56626fcbc9864eea962640c8a295adc6db2.tar.xz
Merge branch 'swima'
Diffstat (limited to 'testing/tests/tnc/tnccs-20-nea-pt-tls/hosts/dave/etc/iptables.rules')
-rw-r--r--testing/tests/tnc/tnccs-20-nea-pt-tls/hosts/dave/etc/iptables.rules20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/tests/tnc/tnccs-20-nea-pt-tls/hosts/dave/etc/iptables.rules b/testing/tests/tnc/tnccs-20-nea-pt-tls/hosts/dave/etc/iptables.rules
new file mode 100644
index 000000000..d01d0a3c9
--- /dev/null
+++ b/testing/tests/tnc/tnccs-20-nea-pt-tls/hosts/dave/etc/iptables.rules
@@ -0,0 +1,20 @@
+*filter
+
+# default policy is DROP
+-P INPUT DROP
+-P OUTPUT DROP
+-P FORWARD DROP
+
+# allow PT-TLS
+-A INPUT -i eth0 -s 10.1.0.10 -p tcp --sport 271 -j ACCEPT
+-A OUTPUT -o eth0 -d 10.1.0.10 -p tcp --dport 271 -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 192.168.0.150 -j ACCEPT
+-A OUTPUT -o eth0 -p tcp --dport 80 -d 192.168.0.150 -j ACCEPT
+
+COMMIT