LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2004, 11:15 AM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Rep: Reputation: 33
Question 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.
 
Old 06-15-2004, 01:44 PM   #2
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
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.
 
Old 06-21-2004, 08:47 PM   #3
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
... so it IS possible. Thank you for the excellent and detailed answer, ricstirato. I will try that.
 
Old 06-22-2004, 11:42 AM   #4
ricstirato
Member
 
Registered: Jan 2004
Location: Gießen, Germany
Distribution: Xubuntu 12.04, Mythbuntu, Ubuntu Server 12.04
Posts: 174

Rep: Reputation: 24
Dont' call it excellent until you tried ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic DNS Server. NickCoons Linux - Networking 6 10-20-2005 04:17 AM
VPN: linux VPN server behind Linksys router hamish Linux - Networking 14 08-25-2005 08:42 PM
VPN Question Win98->internet->Router->Linux VPN Server->Win2k Server patrickrea Linux - Networking 1 08-10-2004 02:09 AM
How do i connect Ciscos VPN client to Checkpoint VPN server Klas Linux - Networking 1 11-29-2003 08:00 AM
Web server with dynamic IP bripage Linux - Networking 2 01-19-2003 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration