$ sudo apt-get install openvpn
2. Connect by configuration file
$ sudo openvpn --config elendh2.ovpn
3. check ip
$ ifconfig -a
4. To disconnect press: Ctrl+C
It can shutdown by command line.
5. Detect the virtual network interface:
tap0      Link encap:Ethernet  HWaddr 32:28:a4:04:34:cc  
          inet addr:172.22.18.14  Bcast:172.22.18.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 
 
5. Shutdown this interface:$ sudo ifconfig tap0 down
No comments:
Post a Comment