如何将本地80端口的請求轉發到8080端口,目前主機IP為192.168.1.80
iptables -t nat -A PREROUTING -d 192.168.1.80 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.80:8080
如何将本地80端口的請求轉發到8080端口,目前主機IP為192.168.1.80
iptables -t nat -A PREROUTING -d 192.168.1.80 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.80:8080