Here is my /var/lib/iptables/rules-save
# Generated by iptables-save v1.2.11 on Sat May 21 16:58:29 2005
*nat
:PREROUTING ACCEPT [29:1670]
:POSTROUTING ACCEPT [431:26255]
:OUTPUT ACCEPT [0:0]
[30:1841] -A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Sat May 21 16:58:29 2005
# Generated by iptables-save v1.2.11 on Sat May 21 16:58:29 2005
*mangle
:PREROUTING ACCEPT [16422:18018799]
:INPUT ACCEPT [16422:18018799]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [13453:2622146]
:POSTROUTING ACCEPT [13453:2622146]
COMMIT
# Completed on Sat May 21 16:58:29 2005
# Generated by iptables-save v1.2.11 on Sat May 21 16:58:29 2005
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [13453:2622146]
[440:320869] -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
[0:0] -A INPUT -i ! eth0 -m state --state NEW -j ACCEPT
[0:0] -A INPUT -p icmp -j ACCEPT
[3:180] -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
[0:0] -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
[0:0] -A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
COMMIT
# Completed on Sat May 21 16:58:29 2005
I followed the guide here and it works great.Simple to set up.
http://gentoo-wiki.com/HOWTO_setup_a_home-server
--
gentoo-user@gentoo.org mailing list