Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-15-2005, 01:00 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
iptables forwarding question

I have setup most of my iptable rules without a problem and they all seem to work fine, except one. The one I am having a problem with is forwarding local traffic heading for our external ip address back to an internal server (port 80). Whatever I do the connection just dies on me. However When connecting from an external location everything works fine and my request is forward to the internal web server. Any ideas?
Old 06-15-2005, 06:41 PM   #2
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Do you mean computers on the lan being able to access the web server?
Old 06-15-2005, 10:00 PM   #3
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Moved: This thread is more suitable in Linux - Security and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 06-16-2005, 02:04 AM   #4
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
This is likely due to the "local DNAT problem" where the reply from the webserver is coming from the local IP rather than the external IP that the client is expecting. Take a look at the following links that explain it in more detail and ways to solve it using iptables. You can also fix it using local DNS.



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
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 08:35 PM
Question about iptables port forwarding <Ol>Origy Linux - Networking 3 05-21-2005 05:29 PM
iptables port forwarding question burnt_toast Linux - Networking 9 03-15-2005 09:26 AM
iptables forwarding... AnalyticaL Linux - Networking 5 09-28-2004 09:55 AM
Iptables port forwarding question Renfro Linux - Security 1 10-11-2003 08:42 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration