TEXT   52

remote.txt

Guest on 11th May 2022 01:49:00 AM

  1. iptables -t nat -A PREROUTING -i eth0 -p tcp -d 140.112.30.101 --dport 3389 -j DNAT --to-destination 172.16.1.42:3389
  2. iptables -A FORWARD -i eth0 -p tcp -d 172.16.1.0/24 --dport 3389 -j ACCEPT
  3. iptables -t nat -A PREROUTING -i eth0 -p tcp -d 140.112.30.101 --dport 5900 -j DNAT --to-destination 172.16.1.42:5900
  4. iptables -A FORWARD -i eth0 -p tcp -d 172.16.1.0/24 --dport 5900 -j ACCEPT
  5. #/etc/init.d/networking restart

Raw Paste


Login or Register to edit or fork this paste. It's free.