LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 06-15-2005, 01:00 PM   #1
kloppster
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
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

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

Rep: Reputation: 66
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
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
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.

http://iptables-tutorial.frozentux.n...tml#DNATTARGET
http://www.netfilter.org/documentati...-HOWTO-10.html
 
  


Reply


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


All times are GMT -5. The time now is 03:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration