Client
Client config
daemon
client
dev tun11
proto tcp
remote XXXXXXXX 1197
resolv-retry 30
nobind
persist-key
persist-tun
cipher AES-128-CBC
verb 3
<ca>...</ca>
<cert>... </cert>
<key> ... </key>
status-version 2
status status
sysctl
lubuntu@lubuntu:~$ sudo sysctl -a | grep ip_forward
net.ipv4.ip_forward = 1
net.ipv4.ip_forward_use_pmtu = 0
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.eno1.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
sysctl: reading key "net.ipv6.conf.wlp2s0.stable_secret"
route -
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 100 0 0 eno1
192.168.0.0 192.168.9.17 255.255.254.0 UG 0 0 0 tun11
192.168.9.0 192.168.9.17 255.255.255.0 UG 0 0 0 tun11
192.168.9.17 0.0.0.0 255.255.255.255 UH 0 0 0 tun11
192.168.23.0 0.0.0.0 255.255.255.0 U 100 0 0 eno1
lubuntu@lubuntu:~$
iptables
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
lubuntu@lubuntu:~$
log file
Thu Apr 27 05:48:52 2017 OpenVPN 2.4.0 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 10 2017
Thu Apr 27 05:48:52 2017 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Thu Apr 27 05:48:52 2017 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Thu Apr 27 05:48:52 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]2.XXx.XXX.181:1197
Thu Apr 27 05:48:52 2017 Socket Buffers: R=[87380->87380] S=[16384->16384]
Thu Apr 27 05:48:52 2017 Attempting to establish TCP connection with [AF_INET]2.XXX.XXX.181:1197 [nonblock]
Thu Apr 27 05:48:53 2017 TCP connection established with [AF_INET]2.XXX.201.181:1197
Thu Apr 27 05:48:53 2017 TCP_CLIENT link local: (not bound)
Thu Apr 27 05:48:53 2017 TCP_CLIENT link remote: [AF_INET]2.XXX.201.181:1197
Thu Apr 27 05:48:53 2017 TLS: Initial packet from [AF_INET]2.XXX.201.181:1197, sid=20eb3317 89cbbeb2
Thu Apr 27 05:48:54 2017 VERIFY OK: depth=1, C=ES, ST=CS, L=Burriana, O=Ayto-burriana, emailAddress=alertas@burriana.es
Thu Apr 27 05:48:54 2017 VERIFY OK: depth=0, C=ES, ST=CS, L=Burriana, O=Ayto-burriana, OU=SITIC, CN=ayto-key, emailAddress=alertas@burriana.es
Thu Apr 27 05:48:54 2017 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Apr 27 05:48:54 2017 [ayto-key] Peer Connection Initiated with [AF_INET]2.XXX.201.181:1197
Thu Apr 27 05:48:55 2017 SENT CONTROL [ayto-key]: 'PUSH_REQUEST' (status=1)
Thu Apr 27 05:48:55 2017 PUSH: Received control message: 'PUSH_REPLY,route 192.168.9.0 255.255.255.0,topology net30,ping 10,ping-restart 120,route 192.168.0.0 255.255.254.0 vpn_gateway,ifconfig 192.168.9.18 192.168.9.17'
Thu Apr 27 05:48:55 2017 OPTIONS IMPORT: timers and/or timeouts modified
Thu Apr 27 05:48:55 2017 OPTIONS IMPORT: --ifconfig/up options modified
Thu Apr 27 05:48:55 2017 OPTIONS IMPORT: route options modified
Thu Apr 27 05:48:55 2017 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Thu Apr 27 05:48:55 2017 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 27 05:48:55 2017 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Thu Apr 27 05:48:55 2017 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 27 05:48:55 2017 ROUTE_GATEWAY 192.168.23.1/255.255.255.0 IFACE=eno1 HWADDR=34:e6:d7:05:cc:54
Thu Apr 27 05:48:55 2017 TUN/TAP device tun11 opened
Thu Apr 27 05:48:55 2017 TUN/TAP TX queue length set to 100
Thu Apr 27 05:48:55 2017 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Thu Apr 27 05:48:55 2017 /sbin/ip link set dev tun11 up mtu 1500
Thu Apr 27 05:48:55 2017 /sbin/ip addr add dev tun11 local 192.168.9.18 peer 192.168.9.17
Thu Apr 27 05:48:55 2017 /sbin/ip route add 192.168.9.0/24 via 192.168.9.17
Thu Apr 27 05:48:55 2017 /sbin/ip route add 192.168.0.0/23 via 192.168.9.17
Thu Apr 27 05:48:55 2017 Initialization Sequence Completed