Koozali.org: home of the SME Server

Can not start OpenVPN

Offline peterphi

  • *
  • 17
  • +0/-0
Can not start OpenVPN
« on: July 20, 2008, 12:20:42 PM »
Hi, I have installed OpenVPN on SME7 but when i start open have error.

Starting openvpn: SIOCDELRT: No such process
SIOCDELRT: No such process
                                                           [FAILED]


Here is my server.conf
port 1194
dev tap
tls-server
dh dh1024.pem
ca ca.crt
cert server.crt
key server.key
auth-user-pass-verify ./validate.sh via-env
client-disconnect ./logoff.sh
up ./openvpn.up
mode server
duplicate-cn
ifconfig 192.168.100.1 255.255.255.0
ifconfig-pool 192.168.100.100 192.168.100.200 255.255.255.0 # IP range for openvpn client
mtu-test
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ping 10
ping-restart 120
push "ping 10"
push "ping-restart 60"
push "dhcp-option DOMAIN xxxxxxxxx.com"             # push the DNS domain suffix
push "dhcp-option DNS 192.168.0.200"                   # push DNS entries to openvpn client
push "route 192.168.1.20 255.255.255.0 192.168.100.1" # add route to to protected network
comp-lzo
status-version 2
status openvpn-status.log
verb 3

Here is my openvpn.up

#!/bin/sh
route del -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.1.20
route del -net 192.168.100.0 netmask 255.255.255.0 dev tap0
route add -net 192.168.100.0 netmask 255.255.255.0 gw 192.168.100.1

My SME is in server + routing mode
# LAN address: 192.168.1.0/24
# Server public address: 1.2.3.4
# Server private address: 192.168.1.20

Thanks
Best Regard,





Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Can not start OpenVPN
« Reply #1 on: July 22, 2008, 03:14:40 PM »
Code: [Select]
push "route 192.168.1.20 255.255.255.0 192.168.100.1" # add route to to protected networkThis is the first thing I find it wrong.
You need to check the logs.