For documentation purposes the new folders ikev1-algs, ikev2-algs, ikev1-multi-ca and ikev2-multi-ca have been created. Most of the test cases have now been converted to the vici interface. The remaining legacy stroke scenarios yet to be converted have been put into the ikev2-stroke-bye folder. For documentation purposes some legacy stroke scenarios will be kept in the ikev1-stroke, ikev2-stroke and ipv6-stroke folders.
40 lines
1001 B
Plaintext
40 lines
1001 B
Plaintext
*filter
|
|
|
|
# default policy is DROP
|
|
-P INPUT DROP
|
|
-P OUTPUT DROP
|
|
-P FORWARD DROP
|
|
|
|
# allow bootpc and bootps
|
|
-A OUTPUT -p udp --sport bootpc --dport bootps -j ACCEPT
|
|
-A INPUT -p udp --sport bootps --dport bootps -j ACCEPT
|
|
|
|
# allow broadcasts from eth1
|
|
-A INPUT -i eth1 -d 10.1.255.255 -j ACCEPT
|
|
|
|
# allow esp
|
|
-A INPUT -i eth0 -p 50 -j ACCEPT
|
|
-A OUTPUT -o eth0 -p 50 -j ACCEPT
|
|
|
|
# allow IKE
|
|
-A INPUT -i eth0 -p udp --sport 500 --dport 500 -j ACCEPT
|
|
-A OUTPUT -o eth0 -p udp --dport 500 --sport 500 -j ACCEPT
|
|
|
|
# allow MobIKE
|
|
-A INPUT -i eth0 -p udp --sport 4500 --dport 4500 -j ACCEPT
|
|
-A OUTPUT -o eth0 -p udp --dport 4500 --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
|
|
|
|
# log dropped packets
|
|
-A INPUT -j LOG --log-prefix " IN: "
|
|
-A OUTPUT -j LOG --log-prefix " OUT: "
|
|
|
|
COMMIT
|