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.
I am a complete to Linux having decided this week to have a go at setting up a RedHat Linux 9 server to share files and my internet connection with 2 PCs in my house.
The internet connection on the Linux server is working fine (I'm using it right now) and I've got the network set up and both machines can ping each other so at least I've done something right!
The problem is that I'm working through a book to set this all up and its Internet Gateway tutorial doesn't seem to work and, to me, seems extremely brief.
All it tells me to do is change the sysctl.conf file from reading
net.ipv4.ip_forward = 0
to
net.ipv4.ip_forward = 1
and then configure the clients to use the server as their gateway. Is this right?
If so I must have something else set wrong as I'm getting nothing on the client machine (Windows XP). Does anybody have any suggestions for either what's missing or what I'm doing wrong? I thought I might have to route the traffic from one card to the other but I have no idea how.
I'm having similar problems. I've got my cable modem attached to a laptop running win2k with internet connection sharing. This works ok under windows, but I can't seem to get the other machines to access the internet through it under linux. The LAN works fine between my computers between windows and linux.
Unfortunately I can't really switch the laptop to linux, as other users wouldn't be able to take the downtime. Is this a lost cause, or do I require some 3rd party software to replace microsoft ICS?
Ask away for printouts of anything relevant in my /etc dir
I think I must be being a complete div as when I worked through both tutorials (using only the IPTABLES stuff from the second which I assumed was the right thing to do) I found that after starting the IPTABLES service again I couldn't even access the internet from the Linux machine! I then tried the commands
iptables -A OUTPUT -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
which seemed to open it up for the Linux machine to get out to the world but at this point I can't ping the Linux machine from anywhere else on the network. Incase it's any help to anyone this is the result I get from iptables -L :
Chain INPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
all -- anywhere anywhere
all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
I'm beginning to get the inclination to give up on a Linux server all together - maybe I'm just not cut out for Linux!
Thanks for the pointer to that tutorial. I hadn't made the connection between nameserver and DNS (feel free to laugh) so I hadn't added my ISP DNS servers to the resolv.conf
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.