Ubuntu Linux
 
 
 
 
Home      vpn server and client setup in ubuntu -2
<
ubuntu linux
Ubuntu Technical Documentation
Ubuntu 7.10 to 9.04 Documentation
 
OpenVpn Server and Client set-up in Ubuntu
In VPN setting contains following informations
 
VPN IP Network

Specify the addresses and netmasks for the virtual networks created for VPN clients

Dynamic IP Address Network

When a user does not have a specific VPN IP address configured on the User Permissions page, the user's VPN client is assigned an address from this network.

Network Address        Number of Bits in Netmask
192.168.0.0                    24


Static IP Address Network (Optional)
    
Any st
atic VPN IP addresses specified for particular users on the User Permissions page must be within this network. It must be different than the Dynamic IP Address Network above.

Routing

Should VPN clients have access to private subnets (non-public networks on the server side)?
No
Yes, using NATYes,
using routing (advanced)

Should client Internet traffic be routed through the VPN?
No
Yes

Should clients be allowed to access network services on the VPN gateway IP address?
No
Yes

DNS Settings

Pushing DNS servers to clients is optional, unless clients' Internet traffic is to be routed through the VPN

Do not alter clients' DNS server settings
Have clients use the same DNS servers as the Access Server host
Have clients use these DNS servers

Default Domain Suffix (optional)
 
VPN Client Setup
 
Linux
To connect to Access Server from a Linux client computer, you need to follow these steps:

   1. Install an OpenVPN client for Linux

   2. Login to the Access Server's Client Web Server and download the desired client config file (typically called "client.ovpn"

   3. Run the OpenVPN client with the downloaded client config file

Installing an OpenVPN client:

Usually, the easiest way to install an OpenVPN client is to use the package management system for your particular Linux distribution.  Run one of the following commands (as root):

apt-get install openvpn

Usually, the easiest way to install an OpenVPN client is to use the --config argument to specify the location of the downloaded client config file:

openvpn --config client.ovpn
Windows
 
Login to the Access Server's Client Web Server and download the desired client of vpnclient.exe
 
Then install that client s/w after the successful installation it will ask username and password.

Save the username and password with OpenVPN Windows

 I have followed some steps found in Internet, But not suceeded. Here I am giving one trick for save the username and password.
 
1)Install the windows client configuration file
 
2)Find out the config directory using log file 
 
3)Copy the .ovpn file and move to another folder
 
4) Then un install the client 
 
5)Download and instalhttp://s6n.org/dl/openvpn-2.1_rc19-passwordsave-install.exe . The official releases from openvpn.net will refuse to save passwords.
6)Then open the OpenVPN configuration directory (Start -> Programs -> OpenVPN -> Shortcuts -> OpenVPN configuration file directory) and create a new text file named "password_pass.txt" .

Open this file with Notepad. Enter your username on the first line and your password on the second line. Save and close the file.

7)Open the config file ".ovpn" file we have already copies with Notepad and look for the line "auth-user-pass" near the end.
Add arethusa_pass.txt at the end of this line, so that it looks like:
auth-user-pass password_pass.txt

Save and close the config file.
 
Then moved it into the  config directory

Next time you connect to the VPN, you won't be asked any username or password.

Be sure that nobody else than you can use this computer.
 
Note: You have surely noticed that the Windows version of OpenVPN doesn't offer you the possibility to save your username and password. Not saving passwords is best for security, but quite annoying.