FunWithElectronics.com
          - Collection of Information for those with Electronics as a Hobby
Up one level (Linux command line)

Forward TCP port

#!/bin/sh

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F
iptables -t nat -F
iptables -X

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.1.79:9593
iptables -t nat -A POSTROUTING -p tcp -d 192.168.1.79 --dport 9593 -j SNAT --to-source 192.168.1.72







Add a comment:

Fill in number
Name:
Title:
Text:
 


Privacy | Contact