Error OpenVPN


Recommended Posts

Hi all,

 

I am new to the forum, so hi everyone and please tell me if the topic is posted in the wrong place.

 

So, I am trying to connect my unraid server to a openVPN server. So far I have installed the openVPN client in the unraid. I am 100% sure that the openVPN server is working, because I am accesing it with both windows and linux machines and everything works just fine. I need the unraid server to be connected to the VPN which network is 10.8.0.0/8 (or /16, I am not sure) and to be able to connect to internet.

 

Now when I connect to the server with the unraid, I lose internet connection and I can't even reach the openVPN server (by pinging 10.8.0.1, which is the VPN server IP) but I can reach to the other hosts in my home lan i.e 192.168.1.1

 

The DNS are set 8.8.8.8 and 8.8.4.4

 

 

The logs for the OpenVPN are :

 

Thu Jul 21 12:07:09 2016 OpenVPN 2.3.11 x86_64-slackware-linux-gnu [sSL (OpenSSL)] [LZO] [EPOLL] [MH] [iPv6] built on May 10 2016
Thu Jul 21 12:07:09 2016 library versions: OpenSSL 1.0.2h  3 May 2016, LZO 2.09
Thu Jul 21 12:07:09 2016 Socket Buffers: R=[212992->212992] S=[212992->212992]
Thu Jul 21 12:07:09 2016 UDPv4 link local: [undef]
Thu Jul 21 12:07:09 2016 UDPv4 link remote: [AF_INET]"My VPN server public IP":1194
Thu Jul 21 12:07:09 2016 TLS: Initial packet from [AF_INET]"My VPN server public IP":1194, sid=acbb60aa ffe2219f
Thu Jul 21 12:07:10 2016 VERIFY OK: depth=1, C=ES, ST=MA, L=Madrid, OU=server, CN=Server, name=server
Thu Jul 21 12:07:10 2016 VERIFY OK: nsCertType=SERVER
Thu Jul 21 12:07:10 2016 VERIFY OK: depth=0, C=ES, ST=MA, L=Madrid, OU=server, CN=server, name=server
Thu Jul 21 12:07:10 2016 WARNING: 'dev-type' is used inconsistently, local='dev-type tap', remote='dev-type tun'
Thu Jul 21 12:07:10 2016 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1574', remote='link-mtu 1542'
Thu Jul 21 12:07:10 2016 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Thu Jul 21 12:07:10 2016 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jul 21 12:07:10 2016 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 21 12:07:10 2016 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jul 21 12:07:10 2016 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 21 12:07:10 2016 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Thu Jul 21 12:07:10 2016 [server] Peer Connection Initiated with [AF_INET]"My VPN server public IP":1194
Thu Jul 21 12:07:13 2016 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu Jul 21 12:07:13 2016 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.22 10.8.0.21'
Thu Jul 21 12:07:13 2016 OPTIONS IMPORT: timers and/or timeouts modified
Thu Jul 21 12:07:13 2016 OPTIONS IMPORT: --ifconfig/up options modified
Thu Jul 21 12:07:13 2016 OPTIONS IMPORT: route options modified
Thu Jul 21 12:07:13 2016 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Jul 21 12:07:13 2016 WARNING: Since you are using --dev tap, the second argument to --ifconfig must be a netmask, for example something like 255.255.255.0. (silence this warning with --ifconfig-nowarn)
Thu Jul 21 12:07:13 2016 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=eth0 HWADDR=f4:ce:46:7f:ac:6a
Thu Jul 21 12:07:13 2016 OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
Thu Jul 21 12:07:13 2016 OpenVPN ROUTE: failed to parse/resolve route for host/network: 10.8.0.1
Thu Jul 21 12:07:13 2016 TUN/TAP device tap5 opened
Thu Jul 21 12:07:13 2016 TUN/TAP TX queue length set to 100
Thu Jul 21 12:07:13 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Jul 21 12:07:13 2016 /usr/sbin/ip link set dev tap5 up mtu 1500
Thu Jul 21 12:07:13 2016 /usr/sbin/ip addr add dev tap5 10.8.0.22/6 broadcast 255.255.255.254
Thu Jul 21 12:07:13 2016 NOTE: unable to redirect default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing
Thu Jul 21 12:07:13 2016 Initialization Sequence Completed

 

The ifconfig post are :

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.5  netmask 255.255.255.0  broadcast 0.0.0.0
        ether f4:ce:46:7f:ac:6a  txqueuelen 1000  (Ethernet)
        RX packets 12467  bytes 5432129 (5.1 MiB)
        RX errors 0  dropped 634  overruns 0  frame 0
        TX packets 8265  bytes 1457324 (1.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xc0400000-c041ffff

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.255.255.255
        loop  txqueuelen 1  (Local Loopback)
        RX packets 47  bytes 4026 (3.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 47  bytes 4026 (3.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.8.0.22  netmask 252.0.0.0  broadcast 255.255.255.254
        ether 36:41:3e:34:70:85  txqueuelen 100  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 181  bytes 15444 (15.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

and the post for route -n

 

root@alex:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
8.0.0.0         0.0.0.0         252.0.0.0       U     0      0        0 tap5
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

 

Thank you very much for your help  :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.