Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hope you can help me with this problem. I've been trying to set up a small home LAN with 4 PC's to initally have all client PCs to access the internet via kppp. All PCs have Mandrake 9. So far I have been unable to access the internet via the clients. This is what I've done so far.
On the server and client PCs, I have configured the following:
/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.1 server.conference.table server
192.168.0.2 dave.conference.table dave
192.168.0.3 mike.conference.table mike
192.168.0.4 charlie.conference.table charlie
203.43.67.254 ssc.net.au southernstar
On the server only:
/etc/rc.d/rc.local
added to the end:
echo 1 > /proc/sys/net/ip4/ip_forward
iptables -t nat POSTROUTING -o ppp0 -j MASQUERADE
Sorry, I made mistake in my post: 'post all the ipchains rules' - I thought about iptables chains.
See if you have proper FORWARD chain or post all the iptables chains.
If I am right you should be able:
-ping linux host from the each client PC
-ping each client PC from the linux host
-ping any external ip from linux host
but does not ping external ip from any PC client.
it could have been better if you had it this way on you server and set "FORWARD_IPV4=true" on the clients too: so you can have something like this:
/etc/sysconfig/networking
NETWORKING=yes
FORWARD_IPV4=true
HOST NAME=server.conference.table
DOMAIN NAME=localdomain
on your sverver
while your clients should have something that looks like this;
/etc/sysconfig/network
NETWORKING=
Well done - you shouldn't need IP forwarding on the clients as you don't need the m to forward packets so you may want to disable it as a slight security point - not that it matters on a small network though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.