What's new

Openvpn Server problem 38-1

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ozgurcnbyz

Regular Contributor
I am trying to setup openvpn server on my ac66u but i get an error when i activate it . it reads Error when starting the OpenVPN server! Check your configuration and try again. (Error code: 0)

Checked the syslog and this is what i get.

P.S my asus router has a private ip set on its wan if

Jan 14 19:45:54 rc_service: httpd 325:notify_rc start_vpnserver1
Jan 14 19:45:54 kernel: tun: Universal TUN/TAP device driver, 1.6
Jan 14 19:45:54 kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Jan 14 19:45:54 kernel: device tun21 entered promiscuous mode
Jan 14 19:45:57 openvpn[1179]: OpenVPN 2.3.2 mipsel-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Jan 12 2014
Jan 14 19:45:57 openvpn[1179]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jan 14 19:45:57 openvpn[1179]: PLUGIN_INIT: POST /usr/lib/openvpn-plugin-auth-pam.so '[/usr/lib/openvpn-plugin-auth-pam.so] [openvpn]' intercepted=PLUGIN_AUTH_USER_PASS_VERIFY
Jan 14 19:45:57 openvpn[1179]: Diffie-Hellman initialized with 512 bit key
Jan 14 19:45:57 openvpn[1179]: Socket Buffers: R=[118784->131072] S=[118784->131072]
Jan 14 19:45:57 openvpn[1179]: TUN/TAP device tun21 opened
Jan 14 19:45:57 openvpn[1179]: TUN/TAP TX queue length set to 100
Jan 14 19:45:57 openvpn[1179]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Jan 14 19:45:57 openvpn[1179]: /usr/sbin/ip link set dev tun21 up mtu 1500
Jan 14 19:45:57 openvpn[1179]: /usr/sbin/ip addr add dev tun21 local 10.8.0.1 peer 10.8.0.2
Jan 14 19:45:57 openvpn[1179]: updown.sh tun21 1500 1542 10.8.0.1 10.8.0.2 init
Jan 14 19:45:57 openvpn[1179]: WARNING: Failed running command (--up/--down): could not execute external program
Jan 14 19:45:57 openvpn[1179]: Exiting due to fatal error
 
i know you said your eth0 has a lan ip, safe to assume the router is actually set to be in router mode?

also, i've noticed sometimes the tun interfaces get borked. have you tried rebooting the router after setting this up?
 
can you post a screenshot of the server config page? thanks
 
Code:
fragment 1379
mssfix 1379
tun-mtu 1383

these settings are based on a wan mtu of 1456. if you have a wan mtu of 1500, add 44 to each of the above

or for pppoe dsl with 1492, add 36
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top