LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 0

dear friends...my 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
pslave
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 10.0.0.1 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 10.0.0.2
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
peter_robb
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 http://wiki.linuxquestions.org/wiki/Network_Setup
 
Old 04-19-2006, 03:12 PM   #4
pslave
LQ Newbie
 
Registered: Apr 2006
Location: Finland
Distribution: Tukaani / Slackware
Posts: 16

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:06 PM.

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