I haven't had time to read that whole faq yet, but I made a gateway.rules file in /etc and put this in it:
Code:
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t mangle -F #ignore if you get an error here
/sbin/iptables -X #deletes every non-builtin chain in the table
/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
# only if both of the above rules succeed, use
/sbin/iptables -P INPUT DROP
/sbin/iptables -A FORWARD -i ppp0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o ppp0 -j ACCEPT
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
/sbin/iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT
It still doesn't work, though of course I can ping 192.168.0.1 from all the other computers. I can't ping 209.244.0.3 though, which would be my DNS.
Also (this is not really related) I have a problem with gnome-ppp. I can only run it as root or with sudo. Here's the log when trying to run it as a regular user:
--> Ignoring malformed input line: ";Do NOT edit this file by hand!"
--> WvDial: Internet dialer version 1.55
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATM0L0DT862-6000
--> Waiting for carrier.
ATM0L0DT862-6000
CONNECT 28800/ARQ/V34/LAPM/V42BIS
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Feb 20 16:51:00 2006
--> Pid of pppd: 7682
--> Disconnecting at Mon Feb 20 16:51:01 2006
--> The PPP daemon has died: pppd options error (exit code = 2)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 2)
I looked at man pppd, but the error code was rather obscure and vague.
"2 An error was detected in processing the options given, such as two mutually exclusive options being used."
When I try to run pppd as a regular user, I get an error message about it not being able to find the file /etc/ppp/options (if I run as root it just makes a bunch of funny symbols).
If it's perfectly fine to just use "sudo gnome-ppp", then this is not a problem. I just don't want to compromise security is all.