tun_prop_error: route is not canonical

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
mattdeal
OpenVpn Newbie
Posts: 2
Joined: Fri Dec 12, 2014 9:55 pm
Location: Pennsylvania

tun_prop_error: route is not canonical

Post by mattdeal » Fri Dec 12, 2014 11:21 pm

Greetings!

I've been searching the forums for about two days to try to figure this out and found someone who seemed to have a similar issue here: topic15802.html Only problem is that I couldn't see any replies even though it seemed as though there were some based upon the posts. I would appreciate any help!

I've been working on creating a RPi VPN following the tutorial at: http://readwrite.com/2014/04/10/raspber ... b-browsing

Everything seemed to work very well, I installed OpenVPN Connect apps on my iPad and android phone, and then, even the apps both seemed to work well. Only trouble is, when I would input the LAN IP of one of my devices (router for instance) while using public wifi and VPN turned on with my iPad, I'd get the logon screen for the local (public) router instead of mine. Using my phone with cell data, not wifi, I could reach any of my devices on my LAN through their web based set ups.

Curious as to why, I began looking at the logs. Same OpenVPN Connect app logfile appeared on both iPad and my phone:

Code: Select all

2014-12-12 17:30:12 LZO-ASYM init swap=0 asym=0
2014-12-12 17:30:12 EVENT: ASSIGN_IP
2014-12-12 17:30:12 Error parsing IPv4 route: [route] [192.168.1.103] [255.255.255.0]  : tun_prop_error: route is not canonical
2014-12-12 17:30:12 Connected via tun
2014-12-12 17:30:12 EVENT: CONNECTED @xxx.xxx.xxx.xxx:1194 (xx.xxx.xxx.xxx) via /UDPv4 on tun/10.8.0.6/
2014-12-12 17:30:12 NET Internet:NotReachable/-R tc---l-
2014-12-12 17:30:12 SetStatus Connected
2014-12-12 17:30:12 NET Internet:ReachableViaWiFi/-R t----l-
Now, I'm assuming the error message stated above has something to do with it. But regardless, what is that error message and how can I fix it? Google is pretty lean on answering this. I'm happy to paste as much of the log as needed, if needed, but this is where I saw the error.

Here is my server config file

Code: Select all

local 192.168.1.103
dev tun 
proto udp
port 1194 
ca /etc/openvpn/easy-rsa/keys/ca.crt 
cert /etc/openvpn/easy-rsa/keys/DealVPNServer.crt
key /etc/openvpn/easy-rsa/keys/DealVPNServer.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0 
ifconfig 10.8.0.1 10.8.0.2 
push "route 10.8.0.1 255.255.255.255" 
push "route 10.8.0.0 255.255.255.0" 
push "route 192.168.1.103 255.255.255.0"
push "dhcp-option DNS 192.168.1.1"
push "redirect-gateway def1" 
client-to-client 
duplicate-cn 
keepalive 10 120 
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0 
cipher AES-128-CBC 
comp-lzo 
user nobody 
group nogroup 
persist-key 
persist-tun 
status /var/log/openvpn-status.log 20 
log /var/log/openvpn.log 
verb 1

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: tun_prop_error: route is not canonical

Post by Traffic » Sat Dec 13, 2014 1:38 pm

mattdeal wrote:Here is my server config file
Code:
local 192.168.1.103
...
push "route 192.168.1.103 255.255.255.0" ### mask 255.255.255.255
This is a route to host not network so the mask is /32 not /24

mattdeal
OpenVpn Newbie
Posts: 2
Joined: Fri Dec 12, 2014 9:55 pm
Location: Pennsylvania

Re: tun_prop_error: route is not canonical

Post by mattdeal » Sun Dec 14, 2014 2:47 pm

Thank you! Worked perfectly.

Post Reply