VPN commands
root@kali:~# service tor start
[ ok ] Starting tor daemon...done.
root@kali:~# cd Desktop/OpenVPN
root@kali:~/Desktop/OpenVPN# ls -l
total 24
-rw-r--r-- 1 root root 37 Jul 4 10:28 password
-rw-r--r-- 1 root root 36 Jun 27 03:37 password~
-rw-r--r-- 1 root root 4029 Nov 26 2014 vpnbook-euro1-tcp443.ovpn
-rw-r--r-- 1 root root 4027 Nov 26 2014 vpnbook-euro1-tcp80.ovpn
-rw-r--r-- 1 root root 4033 Nov 26 2014 vpnbook-euro1-udp25000.ovpn
-rw-r--r-- 1 root root 4027 Nov 26 2014 vpnbook-euro1-udp53.ovpn
root@kali:~/Desktop/OpenVPN# openvpn --vpnconfig vpnbook-euro1-tcp443.ovpn
Options error: Unrecognized option or missing parameter(s) in [CMD-LINE]:1: vpnconfig (2.2.1)
Use --help for more information.
root@kali:~/Desktop/OpenVPN# openvpn --config vpnbook-euro1-tcp443.ovpn
Sat Jul 4 10:31:21 2015 OpenVPN 2.2.1 i486-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014
Enter Auth Username:vpnbook
Enter Auth Password:
Sat Jul 4 10:31:42 2015 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sat Jul 4 10:31:42 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Jul 4 10:31:42 2015 NOTE: --fast-io is disabled since we are not using UDP
Sat Jul 4 10:31:42 2015 LZO compression initialized
Sat Jul 4 10:31:42 2015 Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Sat Jul 4 10:31:42 2015 Socket Buffers: R=[87380->131072] S=[16384->131072]
Sat Jul 4 10:31:42 2015 Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Jul 4 10:31:42 2015 Local Options hash (VER=V4): 'bc07730e'
Sat Jul 4 10:31:42 2015 Expected Remote Options hash (VER=V4): 'b695cb4a'
Sat Jul 4 10:31:42 2015 Attempting to establish TCP connection with [AF_INET]176.126.237.217:443 [nonblock]
Sat Jul 4 10:31:43 2015 TCP connection established with [AF_INET]176.126.237.217:443
Sat Jul 4 10:31:43 2015 TCPv4_CLIENT link local: [undef]
Sat Jul 4 10:31:43 2015 TCPv4_CLIENT link remote: [AF_INET]176.126.237.217:443
Sat Jul 4 10:31:44 2015 TLS: Initial packet from [AF_INET]176.126.237.217:443, sid=313a6e98 a5fbc4bf
Sat Jul 4 10:31:44 2015 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Jul 4 10:31:51 2015 VERIFY OK: depth=1, /C=CH/ST=Zurich/L=Zurich/O=vpnbook.com/OU=IT/CN=vpnbook.com/name=vpnbook.com/emailAddress=admin@vpnbook.com
Sat Jul 4 10:31:51 2015 VERIFY OK: depth=0, /C=CH/ST=Zurich/L=Zurich/O=vpnbook.com/OU=IT/CN=vpnbook.com/name=vpnbook.com/emailAddress=admin@vpnbook.com
Sat Jul 4 10:31:54 2015 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sat Jul 4 10:31:54 2015 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jul 4 10:31:54 2015 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sat Jul 4 10:31:54 2015 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jul 4 10:31:54 2015 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Jul 4 10:31:54 2015 [vpnbook.com] Peer Connection Initiated with [AF_INET]176.126.237.217:443
Sat Jul 4 10:31:56 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Sat Jul 4 10:32:01 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Sat Jul 4 10:32:06 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Sat Jul 4 10:32:11 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Sat Jul 4 10:32:11 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 89.233.43.71,dhcp-option DNS 91.239.100.100,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.0.142 10.9.0.141'
Sat Jul 4 10:32:11 2015 OPTIONS IMPORT: timers and/or timeouts modified
Sat Jul 4 10:32:11 2015 OPTIONS IMPORT: --ifconfig/up options modified
Sat Jul 4 10:32:11 2015 OPTIONS IMPORT: route options modified
Sat Jul 4 10:32:11 2015 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Jul 4 10:32:11 2015 ROUTE default_gateway=10.0.2.2
Sat Jul 4 10:32:11 2015 TUN/TAP device tun1 opened
Sat Jul 4 10:32:11 2015 TUN/TAP TX queue length set to 100
Sat Jul 4 10:32:11 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Jul 4 10:32:11 2015 /sbin/ifconfig tun1 10.9.0.142 pointopoint 10.9.0.141 mtu 1500
Sat Jul 4 10:32:11 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 89.233.43.71,dhcp-option DNS 91.239.100.100,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.0.142 10.9.0.141'
Sat Jul 4 10:32:12 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 89.233.43.71,dhcp-option DNS 91.239.100.100,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.0.142 10.9.0.141'
Sat Jul 4 10:32:12 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 89.233.43.71,dhcp-option DNS 91.239.100.100,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.0.142 10.9.0.141'
Sat Jul 4 10:32:13 2015 /sbin/route add -net 176.126.237.217 netmask 255.255.255.255 gw 10.0.2.2
Sat Jul 4 10:32:13 2015 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.9.0.141
Sat Jul 4 10:32:13 2015 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.9.0.141
Sat Jul 4 10:32:13 2015 /sbin/route add -net 10.9.0.1 netmask 255.255.255.255 gw 10.9.0.141
Sat Jul 4 10:32:13 2015 Initialization Sequence Completed
root@kali:~# service tor start
[ ok ] Starting tor daemon...done.
root@kali:~# cd Desktop/OpenVPN
root@kali:~/Desktop/OpenVPN# ls -l
total 24
-rw-r--r-- 1 root root 37 Jul 4 10:28 password
-rw-r--r-- 1 root root 36 Jun 27 03:37 password~
-rw-r--r-- 1 root root 4029 Nov 26 2014 vpnbook-euro1-tcp443.ovpn
-rw-r--r-- 1 root root 4027 Nov 26 2014 vpnbook-euro1-tcp80.ovpn
-rw-r--r-- 1 root root 4033 Nov 26 2014 vpnbook-euro1-udp25000.ovpn
-rw-r--r-- 1 root root 4027 Nov 26 2014 vpnbook-euro1-udp53.ovpn
root@kali:~/Desktop/OpenVPN# openvpn --vpnconfig vpnbook-euro1-tcp443.ovpn
Options error: Unrecognized option or missing parameter(s) in [CMD-LINE]:1: vpnconfig (2.2.1)
Use --help for more information.
root@kali:~/Desktop/OpenVPN# openvpn --config vpnbook-euro1-tcp443.ovpn
Sat Jul 4 10:31:21 2015 OpenVPN 2.2.1 i486-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014
Enter Auth Username:vpnbook
Enter Auth Password:
Sat Jul 4 10:31:42 2015 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sat Jul 4 10:31:42 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Jul 4 10:31:42 2015 NOTE: --fast-io is disabled since we are not using UDP
Sat Jul 4 10:31:42 2015 LZO compression initialized
Sat Jul 4 10:31:42 2015 Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Sat Jul 4 10:31:42 2015 Socket Buffers: R=[87380->131072] S=[16384->131072]
Sat Jul 4 10:31:42 2015 Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Jul 4 10:31:42 2015 Local Options hash (VER=V4): 'bc07730e'
Sat Jul 4 10:31:42 2015 Expected Remote Options hash (VER=V4): 'b695cb4a'
Sat Jul 4 10:31:42 2015 Attempting to establish TCP connection with [AF_INET]176.126.237.217:443 [nonblock]
Sat Jul 4 10:31:43 2015 TCP connection established with [AF_INET]176.126.237.217:443
Sat Jul 4 10:31:43 2015 TCPv4_CLIENT link local: [undef]
Sat Jul 4 10:31:43 2015 TCPv4_CLIENT link remote: [AF_INET]176.126.237.217:443
Sat Jul 4 10:31:44 2015 TLS: Initial packet from [AF_INET]176.126.237.217:443, sid=313a6e98 a5fbc4bf
Sat Jul 4 10:31:44 2015 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Jul 4 10:31:51 2015 VERIFY OK: depth=1, /C=CH/ST=Zurich/L=Zurich/O=vpnbook.com/OU=IT/CN=vpnbook.com/name=vpnbook.com/emailAddress=admin@vpnbook.com
Sat Jul 4 10:31:51 2015 VERIFY OK: depth=0, /C=CH/ST=Zurich/L=Zurich/O=vpnbook.com/OU=IT/CN=vpnbook.com/name=vpnbook.com/emailAddress=admin@vpnbook.com
Sat Jul 4 10:31:54 2015 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sat Jul 4 10:31:54 2015 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jul 4 10:31:54 2015 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sat Jul 4 10:31:54 2015 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jul 4 10:31:54 2015 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Jul 4 10:31:54 2015 [vpnbook.com] Peer Connection Initiated with [AF_INET]176.126.237.217:443
Sat Jul 4 10:31:56 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Sat Jul 4 10:32:01 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Sat Jul 4 10:32:06 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Sat Jul 4 10:32:11 2015 SENT CONTROL [vpnbook.com]: 'PUSH_REQUEST' (status=1)
Sat Jul 4 10:32:11 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 89.233.43.71,dhcp-option DNS 91.239.100.100,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.0.142 10.9.0.141'
Sat Jul 4 10:32:11 2015 OPTIONS IMPORT: timers and/or timeouts modified
Sat Jul 4 10:32:11 2015 OPTIONS IMPORT: --ifconfig/up options modified
Sat Jul 4 10:32:11 2015 OPTIONS IMPORT: route options modified
Sat Jul 4 10:32:11 2015 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Jul 4 10:32:11 2015 ROUTE default_gateway=10.0.2.2
Sat Jul 4 10:32:11 2015 TUN/TAP device tun1 opened
Sat Jul 4 10:32:11 2015 TUN/TAP TX queue length set to 100
Sat Jul 4 10:32:11 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Jul 4 10:32:11 2015 /sbin/ifconfig tun1 10.9.0.142 pointopoint 10.9.0.141 mtu 1500
Sat Jul 4 10:32:11 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 89.233.43.71,dhcp-option DNS 91.239.100.100,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.0.142 10.9.0.141'
Sat Jul 4 10:32:12 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 89.233.43.71,dhcp-option DNS 91.239.100.100,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.0.142 10.9.0.141'
Sat Jul 4 10:32:12 2015 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 89.233.43.71,dhcp-option DNS 91.239.100.100,route 10.9.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.9.0.142 10.9.0.141'
Sat Jul 4 10:32:13 2015 /sbin/route add -net 176.126.237.217 netmask 255.255.255.255 gw 10.0.2.2
Sat Jul 4 10:32:13 2015 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.9.0.141
Sat Jul 4 10:32:13 2015 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.9.0.141
Sat Jul 4 10:32:13 2015 /sbin/route add -net 10.9.0.1 netmask 255.255.255.255 gw 10.9.0.141
Sat Jul 4 10:32:13 2015 Initialization Sequence Completed
No comments:
Post a Comment