80后的细娃儿

centos下隐射内网IP和端口

 

iptables -t nat -A PREROUTING -i venet0 -p tcp -d 205.188.1.1 –dport 8080 -j DNAT –to-destination 172.16.36.3:8080

 

service iptables save

service iptables restart

点赞