Linux Netfilter discussions
 help / color / mirror / Atom feed
* DNAT problem
@ 2004-05-29 15:25 Patrick Leslie Polzer
  2004-05-29 15:36 ` Alexis
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Leslie Polzer @ 2004-05-29 15:25 UTC (permalink / raw)
  To: netfilter


Hello again,

a DNAT problem is coming up.
My firewall setup (simplified for testing) is currently as follows:


### <snip> ###

##### FILTER table #####
# policies
$ipt -P FORWARD ACCEPT
$ipt -P   INPUT ACCEPT
$ipt -P  OUTPUT ACCEPT

$ipt -F
$ipt -F FORWARD
$ipt -F   INPUT
$ipt -F  OUTPUT


##### NAT table #####
# flush chains
$ipt -t nat -F  PREROUTING
$ipt -t nat -F POSTROUTING
$ipt -t nat -F      OUTPUT

# masquerading on ppp0 and vortex
$ipt -t nat -A POSTROUTING -o   ppp0 -j MASQUERADE
$ipt -t nat -A POSTROUTING -o vortex -j MASQUERADE

# dnat
$ipt -t nat -A PREROUTING -i ppp0 -p tcp --dport 80 -j DNAT --to-destination 192.168.35.191:80

### </snip> ###


The last line is working with

--dport 8080

but isn't with

--dport 80

What's going on there?


Kind regards,

Leslie


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

end of thread, other threads:[~2004-05-30  7:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-29 15:25 DNAT problem Patrick Leslie Polzer
2004-05-29 15:36 ` Alexis
2004-05-29 16:03   ` Patrick Leslie Polzer
2004-05-30  1:00     ` Alexis
2004-05-30  7:56       ` OT: ISP Port filters (was: Re: DNAT problem) Patrick Leslie Polzer

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