iptables change destination IP without DNAT
Solution 1:
Never mind this question - seems I was doing something wrong. It works with DNAT:
iptables -t nat -A OUTPUT -p tcp -d 192.168.251.3 -j DNAT --to-destination 1.2.3.4
Never mind this question - seems I was doing something wrong. It works with DNAT:
iptables -t nat -A OUTPUT -p tcp -d 192.168.251.3 -j DNAT --to-destination 1.2.3.4