Home > OS >  Dnat in the iptables rules with sport=0 and sport?
Dnat in the iptables rules with sport=0 and sport?

Time:09-26

Excuse me:
Iptables -t NAT - A PREROUTING - d 192.168.0.1 -p TCP -- dport 80 - j DNAT - to - destination 10.0.0.2
And
Iptables -t NAT - A PREROUTING - d 192.168.0.1 -p TCP -- sport 0 -- dport 80 - j DNAT - to - destination 10.0.0.2

The same? (the first rule is not to bring sport parameter, stripe but sport=0. 2)

I personally understand the sport=0 and DNAT rules without sport parameter, forward flow is not the same,
  • Related