0

I have an application that needs to communication with two external hosts. For various reasons the host has now become a dynamic IP address. Since iptables communications via IP, simply using a straight DNAT won't do. I can change the hostname/IP address for the two external connection hosts in the application. So for one of the hosts I could set a bogus IP, 1.1.1.1. It seems ipset may help.

What I need to do is something like

iptables -t nat -A OUTPUT -p tcp -d 1.1.1.1 --dport 80 -j DNAT --to-destination -m set --set externalhostip_port

0 Answers0