From: "John A. Sullivan III" <john.sullivan@nexusmgmt.com>
To: stu@gateway10.homeip.net
Cc: netfilter@lists.netfilter.org
Subject: Re: DNAT not working
Date: Thu, 18 Mar 2004 15:49:49 -0500 [thread overview]
Message-ID: <1079642989.2006.35.camel@localhost> (raw)
In-Reply-To: <000101c40d27$5ce6ed20$0464a8c0@stu>
On Thu, 2004-03-18 at 15:26, Stuart Lamble wrote:
> Hello netfilter lists
>
> Can any one help me here. I have the following rule...
>
> iptables -t nat -A PREROUTING -i ppp0 -p tcp -d $FW-EXT-IP --dport 22
> -j DNAT --to 192.168.100.6:22
>
> Simply put I want to allow ssh from the internet to a server on my
> LAN, 192.168.100.6
> My FORWARD rule is default accept.
>
> I understand that a packet comes into the firewall on an interface and
> then gets PREROUTED as above the gets passed to FORWARD = accept then
> to the destination???
>
> Why is it not working? Do i need to do any special kernel, modprobe
> things?
<snip>
Perhaps you were just saving typing but isn't the correct syntax -j DNAT
--to-destination 192.168.100.6:22
--
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan@nexusmgmt.com
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net
next prev parent reply other threads:[~2004-03-18 20:49 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-18 20:26 DNAT not working Stuart Lamble
2004-03-18 20:49 ` John A. Sullivan III [this message]
2004-03-18 21:58 ` Antony Stone
2004-03-18 20:50 ` Antony Stone
2004-03-20 17:47 ` Stuart Lamble
-- strict thread matches above, loose matches on Subject: below --
2007-04-18 16:26 Payal Rathod
2007-04-18 17:34 ` Martijn Lievaart
2007-04-19 3:31 ` Payal Rathod
2007-04-19 11:15 ` Gáspár Lajos
2007-04-19 17:18 ` Payal Rathod
2006-12-22 15:03 Balazs Fulop
2006-12-22 20:38 ` Grant Taylor
2006-12-22 21:14 ` Pascal Hambourg
2006-12-26 20:54 ` Balazs Fulop
2004-07-12 15:12 DNAT Not working Nicolas Ross
2004-07-12 15:59 ` Antony Stone
2004-07-12 16:13 ` Nicolas Ross
2004-07-12 16:33 ` Antony Stone
[not found] <20031224052809.18657.42710.Mailman@netfilter-sponsored-by.noris.net>
2003-12-24 10:24 ` DNAT NOT WORKING madhav bhasin
2003-12-24 10:33 ` Antony Stone
2003-12-25 18:31 ` Thomas Scheffczyk
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=1079642989.2006.35.camel@localhost \
--to=john.sullivan@nexusmgmt.com \
--cc=netfilter@lists.netfilter.org \
--cc=stu@gateway10.homeip.net \
/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