VNC and IPForwarding
I have a linux router/firewall and I am trying to set up VNC so that clients with computer problems can connect to my Windows computer.
I have the following firewall setup:
echo 1 > /proc/sys/net/ipv4/ip_forward
chkconfig --level 345 iptables on
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -P INPUT DROP
iptables -A INPUT -i ! eth0 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p TCP -i eth0 --dport 80 -j ACCEPT
# Port redirect
# VNC Listens for tech support
iptables -t nat -A PREROUTING -p tcp -i eth1 -d 22.214.171.124 --dport 5900 -j DNAT --to 10.0.0.2:5900
iptables -t nat -A PREROUTING -p tcp -i eth1 -d 126.96.36.199 --dport 5901 -j DNAT --to 10.0.0.2:5901
service iptables save
Clients are complaining that they cannot connect to my computer using the "Add New Client" option when they put in my external IP address.
I would try connecting to them, but most of them are behind routers and dont have a clue how to find the IP address of the router.
If anybody could help, it would be appreciated.