At 10:15 PM 12/13/98 +0100, sandy wrote:
>I�m still having probs getting IP masquerading run with diald. I�m using
>RedHat 5.2, diald 0.16.5a-1 via ppp0 and 33.6 modem. I set up IP maqs
>this way:
>
>/sbin/modprobe ip_masq_ftp
>/sbin/modprobe ip_masq_irc
>
>/sbin/ipfwadm -F -f
>
>/sbin/ipfwadm -F -p deny -v
>/sbin/ipfwadm -F -a m -S 192.168.0.0/16 -D 0.0.0.0/0 -o -v
>
>Diald calls out as expected and the gateway can do everything on the
>internet.
I have a similar setup, with win95 boxes where the GW machine is the NIC
address of the Linux box i.e. IP address for eth0/1. However, for my own
sanity I like to include the interface to which the rule is applicable.
Thus I have:
ipfwadm -F -a masquerade -V <ISP-static-ip> -S 192.168.0.0/16 -D 0/0.
alternately you can use the -W ppp0 i.s.o -V.
This works fine for all machines on my 192.168.11.0 and 192.168.21.0
networks to gateway thru Linux box which masquerades the packets on the
ppp0 iface. Diald kicks in to route packets for external addresses.
HTH.
-- Arun Khan
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]