[ale] Help with OpenVPN

Chuck Payne terrorpup at gmail.com
Mon Apr 4 11:49:55 EDT 2011


Hi Guys,


I am trying to set up openvpn on my home server. I am able to connect
and get ip, but I can't access anything on my home network, I am
seeing this error message when connection

Non Apr  4 11:35:09 2011 us=820554 PUSH: Received control message:
'PUSH_REPLY,ping 10,ping-restart 60,route 192.168.0.0
255.255.255.0,dhcp-option DOMAIN magidesign.com,dhcp-option DNS
192.168.0.3 192.168.0.2,route 192.168.0.2,ifconfig 192.168.0.201
255.255.255.0'
Mon Apr  4 11:35:09 2011 us=820682 OPTIONS IMPORT: timers and/or
timeouts modified
Mon Apr  4 11:35:09 2011 us=820692 OPTIONS IMPORT: --ifconfig/up
options modified
Mon Apr  4 11:35:09 2011 us=820697 OPTIONS IMPORT: route options modified
Mon Apr  4 11:35:09 2011 us=820703 OPTIONS IMPORT: --ip-win32 and/or
--dhcp-option options modified
Mon Apr  4 11:35:09 2011 us=820858 ROUTE default_gateway=192.168.20.1
Mon Apr  4 11:35:09 2011 us=820870 OpenVPN ROUTE: OpenVPN needs a
gateway parameter for a --route option and no default was specified by
either --route-gateway or --ifconfig options
Mon Apr  4 11:35:09 2011 us=820876 OpenVPN ROUTE: failed to
parse/resolve route for host/network: 192.168.0.0
Mon Apr  4 11:35:09 2011 us=820883 OpenVPN ROUTE: OpenVPN needs a
gateway parameter for a --route option and no default was specified by
either --route-gateway or --ifconfig options
Mon Apr  4 11:35:09 2011 us=820889 OpenVPN ROUTE: failed to
parse/resolve route for host/network: 192.168.0.2


This is my router set up in my server config

# server config
port 443
dev tap
tls-server
mode server
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/bcat.crt
key /etc/openvpn/easy-rsa/2.0/keys/bcat.key
duplicate-cn
ifconfig 192.168.0.1 255.255.255.0
ifconfig-pool 192.168.0.200 192.168.0.225 # IP range clients
#mtu-test
#tap-mtu 1500
#tap-mtu-extra 32
#mssfix 1450
#keep tunnel open by ping
push "ping 10"
push "ping-restart 60"
ping 10
ping-restart 120
#route to be established on the server
route-up "route delete -net 192.168.0.0/24"
route-up "route add -net 192.168.0.0/24 eth1"
#route to push to clients
push "route 192.168.0.0 255.255.255.0 " #route to company network
push "dhcp-option DOMAIN magidesign.com"  #push the DNS domain suffix
push "dhcp-option DNS 192.168.0.3"  #push DNS entries to client
push "route 192.168.0.2" # add route to protected network
comp-lzo
status-version 2
status openvpn-status.log
verb 3


This is my route table on my laptop trying to connect

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.20.0    *               255.255.255.0   U     1      0        0 eth1
192.168.0.0   *               255.255.255.0   U     0      0        0 tap0
192.168.10.0    *               255.255.255.0   U     2      0        0 wlan1
default         192.168.20.1    0.0.0.0         UG    0      0        0 eth1



Any clues to what I am doing wrong?


-- 
(678) 636-9678
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- en.opensuse.org/User:Terrorpup
openSUSE Ambassador/openSUSE Member
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

Have you tried SUSE Studio? Need to create a Live CD,  an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.



More information about the Ale mailing list