openvpn server service not starting

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
jjoseph01
OpenVpn Newbie
Posts: 2
Joined: Sun Oct 06, 2019 8:42 pm

openvpn server service not starting

Post by jjoseph01 » Sun Oct 06, 2019 8:49 pm

Guys, Im trying to setup openvpn for the first time, on a Ubuntu 18.04 system. Im completely new to both Ubuntu and openvpn. However, I have been able to walk through some instructions mostly well. What I have found is that when I do a "sudo systemctl status openvpn@server", it gives me the following:
envpn@wrsopenvpnserver.service - OpenVPN connection to server
Loaded: loaded (/lib/systemd/system/openvpn@.service; indirect; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2019-10-06 15:24:04 CDT; 620ms ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/w ... n24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 5034 ExecStart=/usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --sc
Main PID: 5034 (code=exited, status=1/FAILURE)
Status: "Pre-connection initialization successful"
lines 1-9/9 (END)

I have gone through as many forums as I can to figure this out, with no success. I do get more detail shown below in the logs:
Oct 06 15:23:21 server[4881]: /sbin/ip addr add dev tun1 local 10.8.0.1 peer 10.8.0.2
Oct 06 15:23:21 server[4881]: /sbin/ip route add 10.8.0.0/24 via 10.8.0.2
Oct 06 15:23:21 server[4881]: ERROR: Linux route add command failed: external program exited wi
Oct 06 15:23:21 server[4881]: Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
Oct 06 15:23:21 server[4881]: Could not determine IPv4/IPv6 protocol. Using AF_INET
Oct 06 15:23:21 server[4881]: Socket Buffers: R=[212992->212992] S=[212992->212992]
Oct 06 15:23:21 server[4881]: TCP/UDP: Socket bind failed on local address [AF_INET][undef]:119
Oct 06 15:23:21 server[4881]: Exiting due to fatal error
Oct 06 15:23:21 server[4881]: Closing TUN/TAP interface
Oct 06 15:23:21 server[4881]: /sbin/ip addr del dev tun1 local 10.8.0.1 peer 10.8.0.2

I tried to ping the tunnel interface on the server, with success:
ping 10.8.0.1
PING 10.8.0.1 (10.8.0.1) 56(84) bytes of data.
64 bytes from 10.8.0.1: icmp_seq=1 ttl=64 time=0.122 ms
64 bytes from 10.8.0.1: icmp_seq=2 ttl=64 time=0.088 ms
I tired to make sure the interface shows up, but it says "unknown". But it pings, so I thought it was ok.
ip addr show tun0
4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100
link/none
inet 10.8.0.1/24 brd 10.8.0.255 scope global tun0
valid_lft forever preferred_lft forever
inet6 fe80::4843:6bde:79cb:516/64 scope link stable-privacy
valid_lft forever preferred_lft forever

Any help or guidance would be appreciated.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: openvpn server service not starting

Post by TinCanTech » Sun Oct 06, 2019 9:40 pm

OpenVPN uses its own logs which you can configure by using --log /path/filename.log

You may want to start with the HOWTO:
https://community.openvpn.net/openvpn/wiki/HOWTO

jjoseph01
OpenVpn Newbie
Posts: 2
Joined: Sun Oct 06, 2019 8:42 pm

Re: openvpn server service not starting

Post by jjoseph01 » Tue Oct 08, 2019 7:43 am

I guess that response was pretty much useless. I DID go through the HOW-TO. I did spend a lot of time researching forums and other people's experiences and trying to figure out why it won't start. I thought the purpose of these forums was to actually help people, not be a smart@$$. This is why computer people have a terrible reputation among normal people.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: openvpn server service not starting

Post by TinCanTech » Tue Oct 08, 2019 1:11 pm

jjoseph01 wrote:
Tue Oct 08, 2019 7:43 am
I thought the purpose of these forums was to actually help people, not be a smart@$$
You think this is bad .. try this:
viewtopic.php?f=30&t=22603

Post Reply