Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-18-2006, 10:44 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0

dear dhcp server is running and internet access available for server redhat linux 9 only. LAN do detect the connection but internet access cannot get through...can anybody show me how to do bypass for LAN internet?
Old 04-19-2006, 03:37 AM   #2
LQ Newbie
Registered: Apr 2006
Location: Finland
Distribution: Tukaani / Slackware
Posts: 16

Rep: Reputation: 0
Is the server machine also router / firewall machine?
If so, and the server / router / firewall box is linux I think it's firewall problem.

I had allmost similar problems maybe two weeks ago.
My two computers, Scourge (windows / linux machine) and Misery (server, router, firewall, linux) did see their eatch other and I could connect with ssh to misery using but can't access the internet. And misery had access to internet.
Sounds familiar?

Solution for my problem was to add my /etc/rc.d/rc.firewall (which is my friend's made firewall script)
this line:
iptables -t nat -A PREROUTING -i $wan_if -p tcp --dport 80 -j DNAT --to
iptables -A FORWARD -i $wan_if -o $lan_if -p tcp --syn -m state --state NEW --dport 80 -j ACCEPT

That's my line, you may have to change it a bit.
But that's the idea, shoot a hole to iptables (assuming you use iptables) to open port 80 to first computer of my local network.
and then tell iptables to redirect packages coming from internet from Misery to Scourge.

Tell me if this helps, it would atleast help me if you tell what kind of server you have. Is it running routers and so ong.
And your firewall configuration would help.
Old 04-19-2006, 03:42 AM   #3
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You need to set up MASQUERADE or SNAT on the interface connected to the internet.

This should be part of your firewall setup.
Have a look at
Old 04-19-2006, 03:12 PM   #4
LQ Newbie
Registered: Apr 2006
Location: Finland
Distribution: Tukaani / Slackware
Posts: 16

Rep: Reputation: 0
Duh.. Yea, i forgotted to mention about that :P


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
connect to the internet over LAN harikari Linux - Networking 7 08-29-2005 08:51 AM
not able to connect to the internet or LAN tuxtamer Linux - Newbie 1 03-18-2005 03:11 AM
Can't Connect to Internet through LAN synfate Linux - Newbie 1 02-19-2005 02:46 PM
Connect to the internet through my LAN ALInux Linux - Networking 15 08-15-2004 01:40 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration