iptables for local connections
iptables -t nat -A OUTPUT -d www.kunde.de -p tcp -m tcp --dport 445 -j REDIRECT --to-ports 1445
Because locally originated packets go through OUTPUT, rather than through PREROUTING.
iptables -t nat -A OUTPUT -d www.kunde.de -p tcp -m tcp --dport 445 -j REDIRECT --to-ports 1445
Because locally originated packets go through OUTPUT, rather than through PREROUTING.