LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can I be a VPN server if my IP is dynamic? (https://www.linuxquestions.org/questions/linux-networking-3/can-i-be-a-vpn-server-if-my-ip-is-dynamic-193783/)

Avatar 06-15-2004 11:15 AM

Can I be a VPN server if my IP is dynamic?
 
Didn't find this on Google so I thought I'd see if anyone here knew.

I have a LAN with Windows clients and a Linux 2.4.18 kernel (Mandrake MNF) server. My server is currently the router for the LAN also DHCP, firewall, proxy (squid) and squidGuard server.

I know that my distro came with freeswan, a VPN server.

My company has 2 other locations and we'd like to make a WAN so we can have a Intranet site and make files available to them.

The problem is that my LAN here, uses ADSL and only can have a dynamic IP address. So is it even possible to use this server as a VPN server? Before, I tried to use IPtables to open a port number to a internal Webserver, but all that did was make us lose our Internet connection. So that's why I thought maybe VPN would be good. Any thoughts?

Thanks in advance.

ricstirato 06-15-2004 01:44 PM

You need a public hostname for your VPN gateway.
To achieve this, register at a service like DynDNS and put a script for updating your IP address in /etc/ppp/ip-up.d/
That script can call any of the dynamic DNS clients; I use ez_ipupdate. Have a look at the DynDNS website for these.

There is also a pretty good documentation on how to set up VPNs with FreeS/WAN and Windows clients:

http://www.jacco2.dds.nl/networking/freeswan-l2tp.html


However, beside this you must configure your firewall to accept IPsec protocols and the tunneled connections.

Avatar 06-21-2004 08:47 PM

... so it IS possible. Thank you for the excellent and detailed answer, ricstirato. I will try that.

ricstirato 06-22-2004 11:42 AM

Dont' call it excellent until you tried ;-)


All times are GMT -5. The time now is 07:18 AM.