LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Accessing a machine in my subnet from an external source (https://www.linuxquestions.org/questions/linux-networking-3/accessing-a-machine-in-my-subnet-from-an-external-source-139990/)

bigian79 01-29-2004 10:34 AM

Accessing a machine in my subnet from an external source
 
I'm a newbie on this, but I have researched it some and can't find any help.

I have set up a subnet at my home, and I wanted to be able to access the machines within that subnet from an external source. (VNC for instance). Any help would be appreciated.

mchanea 01-29-2004 11:38 AM

You must open the 5900 port on your server to grant vnc access to your local net.
look at this example:
iptables -t nat -A PREROUTING -p tcp --dport 5900 -i eth0 -j DNAT --to 192.168.1.3
where you must replace eth0 with your ethernet card connected to the internet and the 192.168.1.3 with the ip of the internal machine running vnc server.
Good luck!

bigian79 01-29-2004 12:11 PM

And what if I wanted to be able to VNC to multiple machines in my subnet, including my server? Is there a way to differentiate between the machines?


All times are GMT -5. The time now is 11:37 PM.