Welcome to the Linux Foundation Forum!

how to reach beyond NAT

hi,

I have two public IP machines(PU-IP1 and PU-IP2). One in home and other in remote location.

The other public IP (PU-IP2) shares Internet to a local area network(3 machines). They are assigned private IP's.

Will it be possible to reach the private address of the machines with public IP (PU-IP1) from home?

All machines are linux ubuntu.

Thanks in advance,

Br,

boys21

Comments

  • Hi There,

    there are a couple of options for this to works:

    If you want to use your public IP Address, you could use port forwarding. You could forward specific ports on the public host IP to one of your internal/private machines on the LAN.

    http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-6.html

    The above way of using NAT exposes your private machines to the internet, so it might not be what you want.

    Another way would be to establish a VPN (Virtual Private Network) tunnel between the two public hosts. OpenVPN is one product that can establish VPN's between two or more hosts. What it does is, create a tunnel through the internet between your two public hosts and extends your private network. You can encrypt the tunnel and your private hosts would not directly be exposed to the internet.

    have a look at the following guides:
    http://en.wikipedia.org/wiki/Virtual_private_network
    http://openvpn.net/index.php/open-source/documentation/howto.html

    Hope this helps a bit to get started...

Categories

Upcoming Training