OpenVPN - pfsense - add route problem

This forum is for general conversation and user-user networking.

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

Post Reply
mvrk
OpenVpn Newbie
Posts: 2
Joined: Fri Jul 19, 2013 9:56 pm

OpenVPN - pfsense - add route problem

Post by mvrk » Fri Jul 19, 2013 10:03 pm

Hi,

I'm having problems connecting using windows client to a pfsense openvpn server, it seems it can't add the routes.

The linux client can connect without problems.

And i can connect to my old linux openvpn server using windows and linux.

Log from the connection to Linux server:

Fri Jul 19 20:38:51 2013 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DOMAIN xxx.pt,dhcp-option DNS 192.168.2.254,route 192.168.3.0 255.255.255.0,topology net30,ping 10,ping-restart 120,route-metric 10,route 192.168.2.0 255.255.255.0,ifconfig 192.168.3.77 192.168.3.78'
Fri Jul 19 20:38:51 2013 OPTIONS IMPORT: timers and/or timeouts modified
Fri Jul 19 20:38:51 2013 OPTIONS IMPORT: --ifconfig/up options modified
Fri Jul 19 20:38:51 2013 OPTIONS IMPORT: route options modified
Fri Jul 19 20:38:51 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Jul 19 20:38:51 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Jul 19 20:38:51 2013 MANAGEMENT: >STATE:1374262731,ASSIGN_IP,,192.168.3.77,
Fri Jul 19 20:38:51 2013 open_tun, tt->ipv6=0
Fri Jul 19 20:38:51 2013 TAP-WIN32 device [Local Area Connection] opened: \\.\Global\{CF733835-7862-4E3D-9D9A-C2A32D85AC19}.tap
Fri Jul 19 20:38:51 2013 TAP-Windows Driver Version 9.9
Fri Jul 19 20:38:51 2013 Notified TAP-Windows driver to set a DHCP IP/netmask of 192.168.3.77/255.255.255.252 on interface {CF733835-7862-4E3D-9D9A-C2A32D85AC19} [DHCP-serv: 192.168.3.78, lease-time: 31536000]
Fri Jul 19 20:38:51 2013 Successful ARP Flush on interface [28] {CF733835-7862-4E3D-9D9A-C2A32D85AC19}
Fri Jul 19 20:38:56 2013 TEST ROUTES: 12/12 succeeded len=12 ret=1 a=0 u/d=up
Fri Jul 19 20:38:56 2013 MANAGEMENT: >STATE:1374262736,ADD_ROUTES,,,
Fri Jul 19 20:38:56 2013 C:\Windows\system32\route.exe ADD 192.168.3.0 MASK 255.255.255.0 192.168.3.78 METRIC 10
Fri Jul 19 20:38:56 2013 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Jul 19 20:38:56 2013 Route addition via IPAPI succeeded [adaptive]
Fri Jul 19 20:38:56 2013 C:\Windows\system32\route.exe ADD 192.168.2.0 MASK 255.255.255.0 192.168.3.78 METRIC 10
Fri Jul 19 20:38:56 2013 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Fri Jul 19 20:38:56 2013 Route addition via IPAPI succeeded [adaptive]
Fri Jul 19 20:38:56 2013 Initialization Sequence Completed

Log from the connection to pfSense server:

Fri Jul 19 20:42:36 2013 PUSH: Received control message: 'PUSH_REPLY,route 192.168.2.0 255.255.255.0,dhcp-option DOMAIN xxx.pt,dhcp-option DNS 192.168.2.254,dhcp-option NTP 192.168.2.254,dhcp-option WINS 192.168.2.21,dhcp-option WINS 192.168.2.22,route 192.168.5.0 255.255.255.0,topology net30,ping 10,ping-restart 60,route-metric 10,route 192.168.2.0 255.255.255.0,ifconfig 192.168.5.69 192.168.5.79'
Fri Jul 19 20:42:36 2013 OPTIONS IMPORT: timers and/or timeouts modified
Fri Jul 19 20:42:36 2013 OPTIONS IMPORT: --ifconfig/up options modified
Fri Jul 19 20:42:36 2013 OPTIONS IMPORT: route options modified
Fri Jul 19 20:42:36 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Jul 19 20:42:36 2013 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)
Fri Jul 19 20:42:36 2013 OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
Fri Jul 19 20:42:36 2013 OpenVPN ROUTE: failed to parse/resolve route for host/network: 192.168.2.0
Fri Jul 19 20:42:36 2013 OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
Fri Jul 19 20:42:36 2013 OpenVPN ROUTE: failed to parse/resolve route for host/network: 192.168.5.0
Fri Jul 19 20:42:36 2013 OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
Fri Jul 19 20:42:36 2013 OpenVPN ROUTE: failed to parse/resolve route for host/network: 192.168.2.0
Fri Jul 19 20:42:36 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Fri Jul 19 20:42:36 2013 MANAGEMENT: >STATE:1374262956,ASSIGN_IP,,192.168.5.69,
Fri Jul 19 20:42:36 2013 open_tun, tt->ipv6=0
Fri Jul 19 20:42:36 2013 TAP-WIN32 device [Local Area Connection] opened: \\.\Global\{CF733835-7862-4E3D-9D9A-C2A32D85AC19}.tap
Fri Jul 19 20:42:36 2013 TAP-Windows Driver Version 9.9

mvrk
OpenVpn Newbie
Posts: 2
Joined: Fri Jul 19, 2013 9:56 pm

Re: OpenVPN - pfsense - add route problem

Post by mvrk » Sat Jul 20, 2013 6:10 pm

Sorry, i just found the problem.

I had "dev tap0" on my configuration file, my linux server was configured with dev tap, i copied the configuration file and forget to change it to dev tun. :(

Post Reply