Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => General Networking Support in Linux => Topic started by: engineerjude on April 21, 2004, 05:28:00 PM
-
Hello Friend,
good day to you. Please I need some help here. I am still facing probs with internet sharing.
I was installing a Linux server. The eth0 of the server is used as LAN while eth1 is WAN.
On the LAN card of the server, I used Ip ranges 172.16.0.0, subnet:255.255.0.0, and gateway:172.16.0.1 Then on the clients, I assing Ip from 172.16.0.2 upward, subnet:255.255.0.0, gateway=Ip add of eth0 LAN, DNS from ISP.
At the end of it all, I can browse from the server. From server, I can ping ip address of clients and can ping LAN IP of server from client. But cant ping DNS from client and can't browse. So I get pieced off here.
Can someone tell me what's remaining? I was trying to make the server routes to clients from eth0.
My Linux Distro is redhat ver9.2
Please help me.
-
Did you execute any script on the Server ? such Internet sharing in Linux (http://www.linuxsolved.com/forums/viewtopic.php?t=115) ?
-
Check the lan wire going into your dns, if you cannt ping it from anywhere. Also, checking the firewall rules a bit might help
-
Hello,
yeah I run some internet sharing scripts yet can't ping DNS. Please can you make it simpler?
My Linux distro is redhat ver9.2
-
Well it is like this.. if you are running that script or simply having NAT than you need to give ip of ur linux box as gateway in client and also dns server of ISP or ur local nameserver and u can run then internet sharing easily.. ofcorse it should be on same network..
And if you are not able to do taht then u may be having a firewall..
but when u execute that script it flush ur all firewall rules.. so it should not be the problem.. btw.. try to execute that script manually and then check it out.. BTW. y you are not using class C network addressing ?
-
During installation, I selected no firewall. As for the Ip's I am using Ip ranges from: 172.16.0.1 for LAN (eth0) of the server. And on Clients gateway, I used: 172.16.0.1
Incase I might have implemented firewall mistakingly, please give me commnads to stop all firewalls permanently and a complete commands for a good internet sharing.
Thanks a lot.
-
It is clearly your DNS problem.. well in your host.. ie. gateway remove all the lines from /etc/rsolve.conf while you are not connected to internet and then add "nameserver 127.0.0.1" and then tell your clients to use your gateway also for DNS. then tell us..
BTW.. what is the output of cat /proc/sys/net/ipv4/ip_forward
-
What does the following codes stands for?
/etc/rsolve.conf
cat /proc/sys/net/ipv4/ip_forward
Please just make it fully clear to me. An give me the commands for internet sharing, commands for stoping unwanted firewalls scripts.
-
/etc/resolv.conf is a file {sorry for spell mistake last time}
and the cat /proc/sys/net/ipv4/ip_forward is a command which will tell us the status of ipforwarding or NAT , if its output is 1 then your NAT is enabled..
-
Okay now I got meanings of those commands. Please send full commands for internet sharing.
And differentiate btw NAT, Routing, and masquerading.
Thanks.
-
NAT = Network Address Translation = Routing
Masquerading is masqing a ip .. as on we are if doing NAT for dynamic IP then we do masquerading as our ips is not static..
BTW.. that how to is the command to do the sharing in linux. Well you have not yet given me the out put of the cat /proc/sys/net/ipv4/ip_forward