From: "John A. Sullivan III" <john.sullivan@nexusmgmt.com>
To: Jan Kanty Palus <atler@poczta.onet.pl>
Cc: netfilter@lists.netfilter.org
Subject: Re: DNAT + user defined chains
Date: Fri, 05 Mar 2004 14:15:11 -0500 [thread overview]
Message-ID: <1078514111.2057.4.camel@localhost> (raw)
In-Reply-To: <20040305170028.GA7730@palus>
On Fri, 2004-03-05 at 12:00, Jan Kanty Palus wrote:
> My firewall configuration consist of many rules which redirect some ports
> on my server to particular hosts in lan. I wanted to reduce them so I tried
> to do something like this:
>
> iptables -t nat -N new
> iptables -t -A PREROUTING -i ethX -p tcp --dport <port>:<port> -j new
>
> and in chain 'new' redirect port to right machine. The problem is that in
> chain 'new' i have no option '--to-destination'. Is it possible to do
> this or where can i find some info about it?
Hmmm . . . I just tried creating such a chain and adding a bogus DNAT
rule to it and it worked fine. I haven't tested it with real traffic
but I assume you are getting some kind of error when you try to add a
rule. What error are you getting? Are you remembering the preface the
-A or -I with -t nat?
--
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
prev parent reply other threads:[~2004-03-05 19:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-05 17:00 DNAT + user defined chains Jan Kanty Palus
2004-03-05 19:15 ` John A. Sullivan III [this message]
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=1078514111.2057.4.camel@localhost \
--to=john.sullivan@nexusmgmt.com \
--cc=atler@poczta.onet.pl \
--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