
동일한 도메인을 사용하여 server1에서 server2로 모든 트래픽을 전달하고 싶습니다.
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