?
Solved

Unable to access Internet from LAN using Linux Gateway

Posted on 2003-10-30
4
Medium Priority
?
283 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
2 Comments
 
LVL 9

Accepted Solution

by:
svenkarlsen earned 80 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

850 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