Tag: output
-
What is use case of OUTPUT DNAT in iptables?
In iptables there are PREROUTING, INPUT, FORWARD, OUTPUT and POSTROUTING chains. Mostly people do DNAT on PREROUTING. In case of PREROUTING packet comes in firewall before routing decision. iptables OUTPUT DNAT allows us to redirect outgoing packet from internal process from machine. While in PREROUTING use for before any decision on routing. Command is iptables…