1

I want to forward all traffic from server1 to server2 with domain same:

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

but output: Bad IP address iptables -t nat

vidarlo
  • 11,723

0 Answers0