Tried to setup VPN bridging as my TV provider blocks some streaming services while I'm not 'at home' .
Ran into an error after following the steps as provided in the wiki, which ended by attempting to restart the open-vpn service.
note: the guide suggested I stop the VPN before starting, but couldn't find the method to do this? Is it related to this error?
So it refers to amahi.conf line 4, 'mode server', see below for the config file:[root@hda system]# service openvpn\@amahi.service restart
Redirecting to /bin/systemctl restart openvpn@amahi.service.service
Job for openvpn@amahi.service failed because the control process exited with error code.
See "systemctl status openvpn@amahi.service" and "journalctl -xe" for details.
[root@hda system]# systemctl status openvpn@amahi.service
● openvpn@amahi.service - OpenVPN Robust And Highly Flexible Tunneling Application On amahi
Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-08-15 17:37:49 EDT; 5s ago
Process: 24348 ExecStart=/usr/sbin/openvpn --cd /etc/openvpn/ --config %i.conf --writepid /run/openvpn/amahi.pid (code=exited, status=1/FAILURE)
Process: 24345 ExecStartPre=/usr/bin/chmod -R 755 /run/openvpn/ (code=exited, status=0/SUCCESS)
Process: 24342 ExecStartPre=/usr/bin/mkdir -p /run/openvpn/ (code=exited, status=0/SUCCESS)
Main PID: 24348 (code=exited, status=1/FAILURE)
Aug 15 17:37:49 hda.hidde.nl systemd[1]: Starting OpenVPN Robust And Highly Flexible Tunneling Application On amahi...
Aug 15 17:37:49 hda.hidde.nl openvpn[24348]: Options error: Unrecognized option or missing or extra parameter(s) in amahi.conf:4: <U+200B>mode (2.4.3)
Aug 15 17:37:49 hda.hidde.nl openvpn[24348]: Use --help for more information.
Aug 15 17:37:49 hda.hidde.nl systemd[1]: openvpn@amahi.service: Main process exited, code=exited, status=1/FAILURE
Aug 15 17:37:49 hda.hidde.nl systemd[1]: Failed to start OpenVPN Robust And Highly Flexible Tunneling Application On amahi.
Aug 15 17:37:49 hda.hidde.nl systemd[1]: openvpn@amahi.service: Unit entered failed state.
Aug 15 17:37:49 hda.hidde.nl systemd[1]: openvpn@amahi.service: Failed with result 'exit-code'.
Anyone has an idea what's going wrong? Would like to have it all working.port 1194
proto udp
;dev tap
mode server tls-server dev tap0
ca /etc/openvpn/amahi/ca.crt
cert /etc/openvpn/amahi/Amahi-Server-OpenVPN.crt
# This file should be kept secret
key /etc/openvpn/amahi/Amahi-Server-OpenVPN.key
dh /etc/openvpn/amahi/dh.pem
# server 10.8.0.0 255.255.255.0
# ifconfig-pool-persist /var/run/openvpn-ipp.cache
push "route 192.168.0.0 255.255.255.0"
push "dhcp-option DNS 192.168.0.10"
push "dhcp-option DOMAIN hidde.nl"
keepalive 10 220
comp-lzo
persist-key
persist-tun
status /var/log/openvpn-status.log
verb 3
;mute 20
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so "login login USERNAME password PASSWORD"
script-security 2
up ./amahi.up
down ./amahi.down
Thanks