Re: iptables Qu2: how to specify !dst:port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Die Optimisten a écrit :
> 
> Do I get a loop if I
> iptables -t nat -D PREROUTING  -p tcp -d 0.0.0.0:443  -j DNAT
> --to-destination 127.0.0.1:443

No. By the way, this rule may not have the intended effect.
Packets received from the outside will be seen with a loopback
destination address and discarded by the routing decision.
Packets sent over loopback skip the nat PREROUTING chain.

> Can I generally generate (kernel-hanging) loops with -nat , or is this
> recognized/inhibited ?

Not directly in the kernel, because, as I wrote above, packets sent over
loopback skip the nat PREROUTING chain.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux