Solved

Unable to access Internet from LAN using Linux Gateway

Posted on 2003-10-30
4
265 Views
Last Modified: 2011-04-14
Hi,
We have win98 machines and Linux machine connected in a workgroup with  Linux RedHat 7.1 configured as gateway .
eth0- 10.168.168.7(local IP)
eth1 - 192.168.X.X (Public IP)
External gateway (192.168.0.X)
I can access the Internet from my Linux Machine ..however if i try to access it from other machines setting Linux m/c as gateway ..i cannot access the Internet.
Running Traceroute shows following behaviour.
1) On Linux :
In 1 hop it reaches 192.168.0.X
2) On Win machine:
1st hop ->  Linux machine
2nd hop -> Request Timed Out !!

Regards
Nishi.
0
Comment
Question by:nishi_k_79
4 Comments
 
LVL 9

Accepted Solution

by:
svenkarlsen earned 20 total points
ID: 9654242
You will need to enable the Linux box as a router, - try checking this out:

http://watson.chemical.missouri.edu/RoutingaPrivateIPNetwork.html
0
 
LVL 3

Expert Comment

by:Ravi Goru
ID: 9656753

hii nishi ..


just try these two lines as root !!

echo 1 > /proc/sys/net/ip4/ip_forward

ipchains -A forward 192.168.0.0/255.255.255.0 -j masq

and then try browsing for other machines :))

 
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question