Initialization sequence completed but no connection to any resources

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
hellix
OpenVpn Newbie
Posts: 3
Joined: Thu Mar 15, 2018 2:32 pm

Initialization sequence completed but no connection to any resources

Post by hellix » Thu Mar 15, 2018 3:11 pm

I don't see any errors or warnings in server and client logs. You can see a traceroute to 8.8.8.8, so the problem is not in DNS.
I tried TCP also.

Client:
Thu Mar 15 07:07:12 2018 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Thu Mar 15 07:07:12 2018 [server] Peer Connection Initiated with [AF_INET]185.112.66.134:1194
Thu Mar 15 07:07:14 2018 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Mar 15 07:07:14 2018 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 208.67.222.222,dhcp-option
DNS 208.67.220.220,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5'
Thu Mar 15 07:07:14 2018 OPTIONS IMPORT: timers and/or timeouts modified
Thu Mar 15 07:07:14 2018 OPTIONS IMPORT: --ifconfig/up options modified
Thu Mar 15 07:07:14 2018 OPTIONS IMPORT: route options modified
Thu Mar 15 07:07:15 2018 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Mar 15 07:07:15 2018 ROUTE_GATEWAY 10.0.2.2/255.255.255.0 IFACE=enp0s3
Thu Mar 15 07:07:15 2018 TUN/TAP device tun0 opened
Thu Mar 15 07:07:15 2018 TUN/TAP TX queue length set to 100
Thu Mar 15 07:07:15 2018 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Mar 15 07:07:15 2018 /sbin/ip link set dev tun0 up mtu 1470
Thu Mar 15 07:07:15 2018 /sbin/ip addr add dev tun0 local 10.8.0.6 peer 10.8.0.5
Thu Mar 15 07:07:15 2018 /etc/openvpn/update-resolv-conf tun0 1470 1527 10.8.0.6 10.8.0.5 init
dhcp-option DNS 208.67.222.222
dhcp-option DNS 208.67.220.220
Thu Mar 15 07:07:15 2018 /sbin/ip route add 185.112.66.134/32 via 10.0.2.2
Thu Mar 15 07:07:15 2018 /sbin/ip route add 0.0.0.0/1 via 10.8.0.5
Thu Mar 15 07:07:15 2018 /sbin/ip route add 128.0.0.0/1 via 10.8.0.5
Thu Mar 15 07:07:15 2018 /sbin/ip route add 10.8.0.1/32 via 10.8.0.5
Thu Mar 15 07:07:15 2018 Initialization Sequence Completed
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 10.8.0.1 (10.8.0.1) 105.789 ms 151.509 ms 151.405 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
ifconfig eth0
eth0 Link encap:Ethernet HWaddr
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
ip link show dev tun0
11: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1470 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 100
link/none
Client config:
ca ca.crt
cert ruminia.crt
cipher AES-256-CBC
client
dev tun
down /etc/openvpn/update-resolv-conf
key ruminia.key
nobind
ns-cert-type server
persist-key
persist-tun
proto udp
remote 185.112.66.134 1194
resolv-retry infinite
script-security 2
tun-mtu 1470
up /etc/openvpn/update-resolv-conf
verb 3
Server ifconfig:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1470 Metric:1
RX packets:330 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:22120 (22.1 KB) TX bytes:264 (264.0 B)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:36448 errors:0 dropped:0 overruns:0 frame:0
TX packets:36129 errors:0 dropped:1406 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4199604 (4.1 MB) TX bytes:6782568 (6.7 MB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:185.112.66.134 P-t-P:185.112.66.134 Bcast:185.112.66.134 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
Server.conf
ca ca.crt
cert server.crt
cipher AES-256-CBC
dev tun
dh dh2048.pem
group nogroup
ifconfig-pool-persist ipp.txt
keepalive 10 120
key server.key # This file should be kept secret
log openvpn.log
persist-key
persist-tun
port 1194
proto udp
push "dhcp-option DNS 208.67.220.220"
push "dhcp-option DNS 208.67.222.222"
push "redirect-gateway def1 bypass-dhcp"
server 10.8.0.0 255.255.255.0
status openvpn-status.log
tun-mtu 1470
user nobody
verb 6


hellix
OpenVpn Newbie
Posts: 3
Joined: Thu Mar 15, 2018 2:32 pm

Re: Initialization sequence completed but no connection to any resources

Post by hellix » Thu Mar 15, 2018 3:44 pm

I'm using ufw:
/etc/ufw/before.rules
# START OPENVPN RULES
# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Allow traffic from OpenVPN client to eth0
-A POSTROUTING -s 10.8.0.0/8 -o eth0 -j MASQUERADE
COMMIT
# END OPENVPN RULES

hellix
OpenVpn Newbie
Posts: 3
Joined: Thu Mar 15, 2018 2:32 pm

Re: Initialization sequence completed but no connection to any resources

Post by hellix » Thu Mar 15, 2018 3:50 pm

Omg, I see a wrong interface name (eth0) in ufw config.

Remove this thread please.

Post Reply