ppp sharing
hi,
is there a way of sharing ppp connection on a linux box without running a proxy server
if somebody have done this.
pls. let me know.
tia
rgds
yogi
Linux
hi,
is there a way of sharing ppp connection on a linux box without running a proxy server
if somebody have done this.
pls. let me know.
tia
rgds
yogi
by churdoo
I'm not sure if I can answer this in the detail that you require, so I'll just run through the basics. One method is as follows:
Your linux kernel should be configured for IP masquerading. Depending on what distro you're using, this may or may not be a default option. Recompile your kernel with IP masquerading enabled if you need to, set up the ppp connection on the linux box, and set your routing table on the linux box to route external requests from your eth card through the ppp device.
By the way, your ethernet card on linux box should have a static IP.
Set up the TCP/IP properties on your client boxes, or on your DHCP server if you're using DHCP, to use the linux box as the default gateway. You will also have to define DNS server(s) on your client boxes or DHCP server properties as well (assuming you will need name resolution).
All requests for external IP's from the client boxes will go to the default gateway, and the linux box will route them through the ppp device.
No proxy will be required, however, understand that if you don't set up a firewall, then your internal boxes will not have any protection from the 'outside world.'
Hope this helps!
--cnh
by yogi
I'd suggest using Ipchains. Check out the 'how to' on Ipchains to setup a basic firewall with NAT.
If you don't want to spend the next few days trying to figure out ipchains, download and install Webmin ( www.webmin.com ). Then install the optional (under networking modules) Ipchains management. Using this, all you have to do is pick what interface will be the external (your ppp) and internal (your network card). Then you choose from one of five predefined set of rules. And later, if you want to get more geeky about it, you can go in and manually edit your firewall rules set.
Hope that helps, good luck.
by yogi
by yogi
This discussion is closed to new replies.
Sort by Trending