Senin, 24 September 2018

How to run open vpn client load configuration from command line

  Tidak ada komentar
Here i share how to run open vpn client load configuration from command line
[email protected]:~$ sudo openvpn --config '/home/jglerner/Desktop/vpnbook-us1-tcp443.ovpn'
After open vpn success fully connected, there will be a new interface tunnel as shown on following figure
[email protected]:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether dc:0e:a1:f8:c4:4a brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 74:e5:43:19:e1:8f brd ff:ff:ff:ff:ff:ff
    inet 172.16.221.186/24 brd 172.16.221.255 scope global dynamic wlp2s0
       valid_lft 518sec preferred_lft 518sec
    inet6 fe80::2f98:b071:f643:5663/64 scope link 
       valid_lft forever preferred_lft forever
4: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether ca:72:75:4e:90:fd brd ff:ff:ff:ff:ff:ff
    inet6 fe80::c872:75ff:fe4e:90fd/64 scope link 
       valid_lft forever preferred_lft forever
6: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
    link/none 
    inet 172.16.212.60/24 brd 172.16.212.255 scope global tun0
       valid_lft forever preferred_lft forever
[email protected]:~$ 

Tidak ada komentar :

Posting Komentar