* ebtables iptables DNAT something missing
@ 2005-12-14 14:43 Randy Grimshaw
2005-12-14 16:21 ` Jörg Harmuth
0 siblings, 1 reply; 4+ messages in thread
From: Randy Grimshaw @ 2005-12-14 14:43 UTC (permalink / raw)
To: netfilter
I thought I followed the recipe for DNAT on a transparent firewall correctly with the statement below, and sniffing shows that the traffic is redirected. But although the client receives the return responses from the server at the dnat destination - the client basically ignores it. (possibly as unexpected noise). What am I missing?
iptables -t nat -D PREROUTING -p tcp --dport 80 -m physdev --physdev-in eth1 -m mark --mark 9 -j DNAT --to-destination 192.168.12.12:80
Thank you
<><Randy
<><Randall Grimshaw
Room 203 Machinery Hall
Syracuse University
Syracuse, NY 13244
315-443-5779
rgrimsha@syr.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ebtables iptables DNAT something missing
2005-12-14 14:43 ebtables iptables DNAT something missing Randy Grimshaw
@ 2005-12-14 16:21 ` Jörg Harmuth
2006-01-03 7:21 ` Jan Engelhardt
0 siblings, 1 reply; 4+ messages in thread
From: Jörg Harmuth @ 2005-12-14 16:21 UTC (permalink / raw)
To: netfilter
Randy Grimshaw schrieb:
> I thought I followed the recipe for DNAT on a transparent firewall correctly with the statement below, and sniffing shows that the traffic is redirected. But although the client receives the return responses from the server at the dnat destination - the client basically ignores it. (possibly as unexpected noise). What am I missing?
>
> iptables -t nat -D PREROUTING -p tcp --dport 80 -m physdev --physdev-in eth1 -m mark --mark 9 -j DNAT --to-destination 192.168.12.12:80
Are you sure ? -D means delete. Given that this is a typo, maybe you are
missing a SNAT rule ? Also maybe, that a tcpdump helps.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ebtables iptables DNAT something missing
2005-12-14 16:21 ` Jörg Harmuth
@ 2006-01-03 7:21 ` Jan Engelhardt
0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2006-01-03 7:21 UTC (permalink / raw)
To: Jörg Harmuth; +Cc: netfilter
>> I thought I followed the recipe for DNAT on a transparent firewall
>> correctly with the statement below, and sniffing shows that the traffic
>> is redirected. But although the client receives the return responses
>> from the server at the dnat destination - the client basically ignores
>> it. (possibly as unexpected noise). What am I missing?
>>
>> iptables -t nat -D PREROUTING -p tcp --dport 80 -m physdev
>> --physdev-in eth1 -m mark --mark 9 -j DNAT --to-destination
>> 192.168.12.12:80
>
>Are you sure ? -D means delete. Given that this is a typo, maybe you are
>missing a SNAT rule ? Also maybe, that a tcpdump helps.
You cannot use Layer3-DNAT on a bridge (which is Layer2).
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ebtables iptables DNAT something missing
@ 2005-12-15 16:10 Randy Grimshaw
0 siblings, 0 replies; 4+ messages in thread
From: Randy Grimshaw @ 2005-12-15 16:10 UTC (permalink / raw)
To: netfilter, harmuth
Thank you for your assistance.
The recipes I have do not describe a SNAT rule? Some describe adding an ebtables dnat for the MAC address, others say not required.
To my embarassment I did copy the wrong line from my screen, please substitute -A for the -D, but the problem persists. Here is another recipe that has the same problem:
iptables -t nat -A PREROUTING -p tcp -m physdev --physdev-in eth1 -m mark --mark 4 --dport 80 -j REDIRECT.
The problem is that the packets are redirected, and the bridge/web service responds, but the client silently ignores the redirected server.
The tcpdump and ethereal traces show:
client.highport -> origtarget.80
bridge.80 -> client.highport ack
this repeats several times and the client complains with a timeout.
<><Randy
<><Randall Grimshaw
Room 203 Machinery Hall
Syracuse University
Syracuse, NY 13244
315-443-5779
rgrimsha@syr.edu
>>> Jörg Harmuth <harmuth@mnemon.de> 12/14/05 11:21 AM >>>
Randy Grimshaw schrieb:
> I thought I followed the recipe for DNAT on a transparent firewall correctly with the statement below, and sniffing shows that the traffic is redirected. But although the client receives the return responses from the server at the dnat destination - the client basically ignores it. (possibly as unexpected noise). What am I missing?
>
> iptables -t nat -D PREROUTING -p tcp --dport 80 -m physdev --physdev-in eth1 -m mark --mark 9 -j DNAT --to-destination 192.168.12.12:80
Are you sure ? -D means delete. Given that this is a typo, maybe you are
missing a SNAT rule ? Also maybe, that a tcpdump helps.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-01-03 7:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-14 14:43 ebtables iptables DNAT something missing Randy Grimshaw
2005-12-14 16:21 ` Jörg Harmuth
2006-01-03 7:21 ` Jan Engelhardt
-- strict thread matches above, loose matches on Subject: below --
2005-12-15 16:10 Randy Grimshaw
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.