Networking Forums

Networking Forums > Computer Networking > Linux Networking > Linux connection sharing

Reply
Thread Tools Display Modes

Linux connection sharing

 
 
Roy
Guest
Posts: n/a

 
      11-09-2004, 09:07 PM
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
 
Reply With Quote
 
 
 
 
Mihai Osian
Guest
Posts: n/a

 
      11-10-2004, 09:04 AM
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
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
windows/Linux sharing aarklon@gmail.com Linux Networking 8 08-11-2008 09:14 AM
Linux / Windows Internet Connection Sharing Eric Chin Linux Networking 3 08-29-2004 07:12 PM
linux file sharing Mike Kamerman Linux Networking 4 07-09-2004 03:47 PM
Re: how to enable Internet Connection Sharing (ICS) to share the dial-up connection Steve Winograd [MVP] Windows Networking 0 08-08-2003 07:27 AM
Sharing a Connection using Linux Yanal Linux Networking 2 07-20-2003 07:12 AM



1 2 3 4 5 6 7 8 9 10 11