Linux Netfilter discussions
 help / color / mirror / Atom feed
* DNAT + user defined chains
@ 2004-03-05 17:00 Jan Kanty Palus
  2004-03-05 19:15 ` John A. Sullivan III
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kanty Palus @ 2004-03-05 17:00 UTC (permalink / raw)
  To: netfilter

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?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DNAT + user defined chains
  2004-03-05 17:00 DNAT + user defined chains Jan Kanty Palus
@ 2004-03-05 19:15 ` John A. Sullivan III
  0 siblings, 0 replies; 2+ messages in thread
From: John A. Sullivan III @ 2004-03-05 19:15 UTC (permalink / raw)
  To: Jan Kanty Palus; +Cc: netfilter

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 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-05 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 17:00 DNAT + user defined chains Jan Kanty Palus
2004-03-05 19:15 ` John A. Sullivan III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox