We help IT Professionals succeed at work.

Java, Create VPN for Linux Server

hgolov
hgolov asked
on
Medium Priority
2,449 Views
Last Modified: 2010-04-21
I would like to create a vpn for remote access on a linux server using Java. Can anyone recommend a good package?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2014

Commented:
I am confused as what you want to do.

A VPN, is a virtual private network.  Most people today consider a VPN an encrypted tunnel between two end points (host to host, host to LAN, LAN to LAN) over the Internet.

Do you want to write VPN code in Java?

Or do you just want to setup a VPN connection between two computers so that you can access Java code?

If all you want to do is access a remote server in a secure and encrypted manner I would suggest setting up a ssh server on the remote box an use a ssh client on your computer to access the remote server.

Author

Commented:
What I want is to set up a VPN server on linux, preferably using Java, for multiple clients to access. The clients will have a java interface to connect to the VPN server so I thought it would be nice if the server part could also be written in Java.
While waiting for an answer, I have done a lot of research. It seems like openVPN is the way to go, and it does not seem that there is a java package for this.
If you do know of anything, please let me know!
Thanks!
CERTIFIED EXPERT
Top Expert 2014
Commented:
Do you want the client VPN code to actually be written in Java, or do you just want the interface to connect to the VPN to be Java based?

I personally would STRONGLY suggest that you do NOT have the actual VPN code be Java.  VPN is a LOT of encryption/decryption.  This is CPU intensive to start with, then you stick the CPU overhead of Java and you will bring a 4Ghz processor down to it knees.

Writing Java code to start the real VPN client seems a bit overkill to me, but if that is the programing language you know, then that is fine.

If you are looking for free VPN software, OpenVPN is a good choice.

Author

Commented:
Thank you so much for closing this up for me! I appreciate your informative reply.