Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a substantial Linux network at home. I'm currently in a dorm at college and want to connect to my home network using an IPsec VPN. I have no experience with VPNs, but have read all of the tutorials and docs I could find.
The setup is as follows:
My server (Netgear FVS318, or m0n0wall, or a SuSE box if need be) is on a fiber Internet connection with a dynamic IP. I have dynamic DNS setup through dyndns.org. My client is a desktop at school that is behind a NAT firewall and has no dedicated Internet IP.
Is there any way to still use OpenSWAN on the client? I looked through the docs, but the "left" and "right" parameters call for IP addresses. The server doesn't have a static IP, and the client doesn't have an IP that can be seen by anyone off the LAN.
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
I am not familiar with OpenSWAN, but have you looked at using OpenVPN or SSH tunneling?
To find your home IP address, you could ping the dynamic dns. To find your ip address at the college, you could go to whatismyip.com
I use OpenVPN, and even though I'm behind a NAT, I am still able to VPN into my remote network. As long as I have my destination IP address, I can get in. If for reason OpenSWAN requires your source IP address BEHIND the NAT, then you have to talk to the admin and have him/her forward ports. I doubt this is the case, though.
SSH tunneling won't work through NAT. I haven't looked into OpenVPN.
Forwarding ports through the University's NAT isn't an option.
I understand the part about the Internet IP with whatismyip.com. I was just assuming that it needed some IP to the client machine - assuming it will work with NAT, that's OK.
As to getting the IP of my DynamicDNS... that defeats the purpose of the dynamic DNS. The IP lease is for about 26 hours. This means that I'd need to re-edit my IPsec cilent configuration every day. Is there any way to do a one-time configuration and have it *work*?
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
If you use OpenVPN then you can just put your dynamic dns name into the OpenVPN configuration file. you don't have to use an IP address with OpenVPN. Other than that, I cannot help you unless it relates to OpenVPN as I am not familiar with OpenSWAN or other VPN tools in Linux, maybe besides PPTP, but that is to connect to a Windows machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.