1 # Firewall configuration written by lokkit
2 # Manual customization of this file is not recommended.
3 # Note: ifup-post will punch the current nameservers through the
4 # firewall; such entries will *not* be listed here.
9 :RH-Lokkit-0-50-INPUT - [0:0]
10 -A INPUT -j RH-Lokkit-0-50-INPUT
13 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 25 --syn -j ACCEPT
15 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 --syn -j ACCEPT
18 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 111 --syn -j ACCEPT
19 -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 111 -j ACCEPT
20 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 369 --syn -j ACCEPT
21 -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 369 -j ACCEPT
22 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 530 --syn -j ACCEPT
23 -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 530 -j ACCEPT
24 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 2049 --syn -j ACCEPT
25 -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 2049 -j ACCEPT
27 # allow SMB (netbios).
28 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 137 --syn -j ACCEPT
29 -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 137 -j ACCEPT
30 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 138 --syn -j ACCEPT
31 -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 138 -j ACCEPT
32 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 139 --syn -j ACCEPT
33 -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 139 -j ACCEPT
35 # accept anything from loopback adapter on our own host.
36 -A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT
38 # accept dns info going to the server.
39 -A RH-Lokkit-0-50-INPUT -p udp -m udp -s 14.28.42.28 --sport 53 -d 0/0 -j ACCEPT
41 # otherwise, reject all input.
42 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --syn -j REJECT
43 -A RH-Lokkit-0-50-INPUT -p udp -m udp -j REJECT