iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -t nat -A PREROUTING -d 192.168.50.113/24 -i wlp0s20f3 -p tcp –dport 3389 -j DNAT –to-destination 192.168.122.215:3389
iptables -I FORWARD -p tcp -d 192.168.122.215/24 –dport 3389 -m state –state NEW,RELATED,ESTABLISHED -j ACCEPT
发表回复