Hi mulix,
You can do that simply by:
iptables -P FORWARD ACCEPT
iptables -A FORWARD -i ppp0 -m state --state NEW,INVALID -j REJECT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
The first line sets up the forwarding allowing you to use
the computer as a gateway, the next blocks any forwards
that come from our internet connection. The third line
enables IP Masquerade for anything going out on ppp0,
and finally the last line actually enables forwarding.
then, if you want to learn iptables I recommend this site:
http://www.linuxhelp.net under the Guides section you'll find how playing
with iptables.
At 00:35 11/03/01 +0200, you wrote:
hello,
would one of the people who have masquerading (or rather, SNAT if your ip
is static) working with kernel 2.4 and iptables please give me a shout and
their firewall script? i'm running into some weird problem here.
thanks in advance!
--
mulix
http://www.advogato.com/person/mulix
linux/reboot.h: #define LINUX_REBOOT_MAGIC1 0xfee1dead
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]
----
Regards,
Eran Levy.
E-mail: [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]