Roy wrote:
>Hi
>my lan is:
>-linux Mandrake 10.1 connected to internet and sharing (or so i hope) the
>connection
>-WinXP Pro client using shared connection
>
>I've installed guarddog and the server goes on internet perfectly. The lan
>is ok, samba runs ok and from linux i can access windows, from windows i
>can access linux.
>But the connection sharing fails. I've done a little script that i paste
>here:
>
>modprobe ip_tables
>modprobe ip_conntrack
>modprobe iptable_nat
>modprobe ipt_MASQUERADE
>iptables -t nat -A POSTROUTING -d ! 192.168.0.0/24 -j MASQUERADE
>iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
>iptables -A FORWARD -d 192.168.0.0/24 -j ACCEPT
>iptables -A FORWARD -j DROP
>
>With these instructions the connection sharing was going well, but only ONE
>TIME!!!
>Now i cant access internet with the client using ICS.
>There is something in particuler i have to set in guarddog to activate ICS?
>
>Thanks in advance
>Roy
>
>
Sounds like you forgot to enable IP forwarding. Look at the program
called "guidedog" (not "guarddog"), or try the following:
echo "1" > /proc/sys/net/ipv4/ip_forward
Mihai
|