Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: IP forwarding
Date: Thu, 4 Aug 2005 15:33:02 -0400	[thread overview]
Message-ID: <20050804193302.GA6965@bender.817west.com> (raw)
In-Reply-To: <286cf082050803183749d1f514@mail.gmail.com>

On Wed, Aug 03, 2005 at 07:37:43PM -0600, Ricardo J. Méndez wrote:
> Hi,
> 
> I've got a network setup where the internal router is a Linux box
> running iptables.  External interface is eth0, internal eth1.  I'm
> attempting to forward an external IP address (say, 1.2.3.4) to an
> internal machine.
> 
> The rule I added is:
> 
> iptables -t nat -A PREROUTING -d 1.2.3.4 -p tcp --dport 80 -j DNAT
> --to 192.168.1.202
> 
> However, attempting to 
> 
> telnet 1.2.3.4 80
> 
> does not work.  It's clear that the rule is being applied, because the
> web server running on the external machine is not responding unless I
> telnet from the router itself, but unfortunately I'm not getting into
> 192.168.1.202 either.  Attempting to
> 
> telnet 192.168.1.202 80
> 
> does work as expected.
> 
> What am I missing?  Any pointers are welcome.  Thanks,

http://marc.theaimsgroup.com/?l=netfilter&m=112110769302639&w=2

-j

-- 
Jason Opperisano <opie@817west.com>


  parent reply	other threads:[~2005-08-04 19:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-04  1:37 IP forwarding Ricardo J. Méndez
2005-08-04  4:15 ` Gömöri Zoltán
2005-08-04  5:02   ` curby .
2005-08-04 18:42     ` Ricardo J. Méndez
2005-08-04 21:33       ` curby .
2005-08-04 22:20         ` Ricardo J. Méndez
2005-08-04  7:55   ` Jan Engelhardt
2005-08-04 16:22 ` Patrick Nelson
2005-08-04 18:19   ` Ricardo J. Méndez
2005-08-04 19:54     ` Patrick Nelson
2005-08-04 19:33 ` Jason Opperisano [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-21 21:22 IP Forwarding Jerry Alexander
2005-10-22 12:53 ` Henrik Nordstrom
2005-10-22 13:11 ` Aseem Rastogi
     [not found] <20041028172521.3B3CB672@mail.817west.com>
2004-10-28 18:26 ` Ip Forwarding Jason Opperisano
2004-10-30 10:55   ` Nick Drage
2004-10-30 15:25     ` Jason Opperisano
2004-10-30 17:29       ` Nick Drage
2004-10-28 17:23 Joe Wright
2003-02-21 23:46 William Olbrys
2003-02-22  0:28 ` Willi Dyck
2003-02-22  0:47   ` William Olbrys
2003-02-22 14:57     ` William Olbrys
2003-02-23  3:43       ` Bjorn Ruberg
2003-02-23 21:38         ` Willi Dyck
2002-09-28  4:22 IP forwarding SB CH
2002-09-28  7:27 ` Antony Stone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050804193302.GA6965@bender.817west.com \
    --to=opie@817west.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox