
Я хочу перенаправить весь трафик с сервера 1 на сервер 2 с тем же доменом:
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination IpServer1
iptables -t nat -A PREROUTING -j DNAT --to-destination DomainServer2
iptables -t nat -A POSTROUTING -j MASQUERADE
но выводится: Неверный IP-адрес iptables -t nat