Annotation of embedaddon/strongswan/testing/tests/swanctl/ip-two-pools/hosts/moon/etc/iptables.rules, revision 1.1.1.1
1.1 misho 1: *filter
2:
3: # default policy is DROP
4: -P INPUT DROP
5: -P OUTPUT DROP
6: -P FORWARD DROP
7:
8: # allow esp
9: -A INPUT -i eth0 -p 50 -j ACCEPT
10: -A OUTPUT -o eth0 -p 50 -j ACCEPT
11: -A INPUT -i eth1 -p 50 -j ACCEPT
12: -A OUTPUT -o eth1 -p 50 -j ACCEPT
13:
14: # allow IKE
15: -A INPUT -i eth0 -p udp --sport 500 --dport 500 -j ACCEPT
16: -A OUTPUT -o eth0 -p udp --dport 500 --sport 500 -j ACCEPT
17: -A INPUT -i eth1 -p udp --sport 500 --dport 500 -j ACCEPT
18: -A OUTPUT -o eth1 -p udp --dport 500 --sport 500 -j ACCEPT
19:
20: # allow MobIKE
21: -A INPUT -i eth0 -p udp --sport 4500 --dport 4500 -j ACCEPT
22: -A OUTPUT -o eth0 -p udp --dport 4500 --sport 4500 -j ACCEPT
23: -A INPUT -i eth1 -p udp --sport 4500 --dport 4500 -j ACCEPT
24: -A OUTPUT -o eth1 -p udp --dport 4500 --sport 4500 -j ACCEPT
25:
26: # allow crl fetch from winnetou
27: -A INPUT -i eth0 -p tcp --sport 80 -s PH_IP_WINNETOU -j ACCEPT
28: -A OUTPUT -o eth0 -p tcp --dport 80 -d PH_IP_WINNETOU -j ACCEPT
29: -A FORWARD -i eth0 -o eth1 -p tcp --sport 80 -s PH_IP_WINNETOU -j ACCEPT
30: -A FORWARD -o eth0 -i eth1 -p tcp --dport 80 -d PH_IP_WINNETOU -j ACCEPT
31:
32: # allow ssh
33: -A INPUT -p tcp --dport 22 -j ACCEPT
34: -A OUTPUT -p tcp --sport 22 -j ACCEPT
35:
36: COMMIT
37:
38: *nat
39:
40: # masquerade crl fetches to winnetou
41: -A POSTROUTING -o eth0 -s 10.1.0.0/16 -d PH_IP_WINNETOU -j MASQUERADE
42:
43: COMMIT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>