Solved

Unable to access Internet from LAN using Linux Gateway

Posted on 2003-10-30
4
266 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

840 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