View previous topic :: View next topic |
Author |
Message |
manucorrales Apprentice
Joined: 15 May 2004 Posts: 275
|
Posted: Sat May 15, 2004 4:44 pm Post subject: sharing dial up internet connection win-linux |
|
|
How can i do to share a dialup internet connection between linux and windows??
I use linux for connecting.
I have another PC with windows, connected with the linux machine (LAN).
Is possible to surf with the windows machine when ia am connected in linux?? |
|
Back to top |
|
|
warchiefx n00b
Joined: 13 May 2004 Posts: 3
|
Posted: Sat May 15, 2004 5:24 pm Post subject: Sharing a Connection |
|
|
Same problem here, i enabled ip_forward en my kernel (2.6.5), installed routed and set up iptables, but still nothing and i did it the same way with Slackware some time ago and it worked, What else do i need to do it with Gentoo? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Sat May 15, 2004 5:29 pm Post subject: |
|
|
manucorrales,
If you have a single public IP address, the linux box will need to provide network address translation so that packets from all the PCs you have appear to come from the public IP.
You need iptables and a setup script.
If you have at least two spare public IPs, you only need forwarding and PPP. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
davidblewett Apprentice
Joined: 15 Feb 2004 Posts: 274 Location: Indiana
|
Posted: Tue May 18, 2004 4:38 pm Post subject: |
|
|
Try using shorewall. It's a good front-end for the iptables commands. You can configure it to do NAT for any computer using it as the gateway. This way, you only need one public IP. Read through the man pages for shorewall, or go to http://www.shorewall.net/1.4/two-interface.htm and follow the directions there. _________________ No guilt in life, no fear in death
this is the power of Christ in me
From lifes first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album" |
|
Back to top |
|
|
|