All of lore.kernel.org
 help / color / mirror / Atom feed
* need assistence for PREROUTING
@ 2006-07-10 23:43 Jochen Kaechelin
  2006-07-10 23:49 ` Seferovic Edvin
  0 siblings, 1 reply; 3+ messages in thread
From: Jochen Kaechelin @ 2006-07-10 23:43 UTC (permalink / raw)
  To: netfilter

I have a webserver/firewall behind a dsl-router.
The router opens port 80,...,...,4444.

machine 1:  192.168.178.112 + Firewall + Webserver Port 80, 1 Nic
machine 2:  192.168.178.32  + Webserver Port 80, 1 Nic

Now i want machine 1 to redirect all requests on Port 4444 to Port 
80 machine 2.


The following does not work:

$IPTABLES -t nat -A PREROUTING -i $ETH -p tcp --sport 
$UNPRIVPORTS --dport 4444 -d xxx.xxx.xxx.xxx -j DNAT --t
o-destination 192.168.178.32

$IPTABLES -A FORWARD -i $ETH -o $ETH --p tcp --sport $UNPRIVPORTS -d 
192.168.178.32 --dport 80 -m state --state NEW -j
 ACCEPT

$IPTABLES -A FORWARD -i $ETH -o $ETH -m state --state 
ETABLISHED,RELATED -j ACCEPT

Any hints?

Thanx.

-- 
Jochen Kaechelin, fvgi242ss, wlanhacking.de
http://mail.wlanhacking.de/cgi-bin/mailman/listinfo
http://www.gissmoh.de - Mein sonstiges Leben!!


^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <20060710235021.235F178@brinstar.nerim.net>]

end of thread, other threads:[~2006-07-11  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-10 23:43 need assistence for PREROUTING Jochen Kaechelin
2006-07-10 23:49 ` Seferovic Edvin
     [not found] <20060710235021.235F178@brinstar.nerim.net>
2006-07-11  9:36 ` Pascal Hambourg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.