Re: IP tables Permission Denied! Atempting to share internet conection.
you need to execute those commands as root. If you run something like the echo commands (which are obsolete and should not be used anymore) then you need to do so as root. Since you are also using bash output redirection this is better done in a proper root console than via sudo... here are some examples
that should do what you are trying to do. ALso, pleae notice the first line in the quote - it makes you root. So these commands will also work in root consoles (as they are missing the sudo infront on purpose).
iptables -P FORWARD ACCEPT
iptables -A POSTROUTING --table nat -o eth1 -j MASQUERADE
sysctl -w net.ipv4.ip_forward=1
hope it helps
Calvin: I'm being educated against my will! My rights are being trampled!
Hobbes: Is it a right to remain ignorant?
Calvin: I don't know, but I refuse to find out!