Date/Time: 2006-04-25 22:28 (UTC)Posted by: [identity profile] drax0r.livejournal.com
# Parse the IP address for my public IP and put it into a variable.
# Since we use the external IP, the script needs to run when you get a new IP.
ADDR=`ifconfig eth0|grep 'inet addr'| awk '{print $2}'| awk -F ":" '{print $2}'`

# Incoming requests to port 5902 on the external IP redirect to port 5900 on 192.168.1.44
iptables -A PREROUTING -t nat -p tcp -d $ADDR --dport 5902 -j DNAT --to 192.168.1.44:5900
iptables -A OUTPUT -t nat -p tcp -d $ADDR --dport 5902 -j DNAT --to 192.168.1.44:5900
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

June 2025

S M T W T F S
1 2 3 4 5 6 7
8 9 1011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Expand Cut Tags

No cut tags