Hi all,
First of all, i need to say that i do not have a lot of knowledge of linux. Just enough to understand most of the stuff which happens in the guides.
I am using the following guide to install split tunneling op a Raspberry Pi 2.
https://www.htpcguides.com/force-torrent...ntu-16-04/
I want to configure this with IPvanish so instead of creating an own *.conf file i have downloaded the *.ovpn file from the ipvanish website and updated it with some records. It now looks as follows.
When i test the connection at the end of the guide i get the following feedback
Also i have changed the systemd service file to use the *.ovpn file instead of the *.conf so this looks like follows
I have the feeling that somehow it cannot find the *.ovpn file or something. But that is based most on the fact that i do not know what the %i does. Is this some kind of variable that needs to be set first?
I hope someone is able to understand what is happening here and can tell me what i am doing wrong and get this working. Thanks in advance.
Regards.
First of all, i need to say that i do not have a lot of knowledge of linux. Just enough to understand most of the stuff which happens in the guides.
I am using the following guide to install split tunneling op a Raspberry Pi 2.
https://www.htpcguides.com/force-torrent...ntu-16-04/
I want to configure this with IPvanish so instead of creating an own *.conf file i have downloaded the *.ovpn file from the ipvanish website and updated it with some records. It now looks as follows.
Code:
client
dev tun
proto udp
remote rkv-c01.ipvanish.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
persist-remote-ip
ca ca.ipvanish.com.crt
verify-x509-name rkv-c01.ipvanish.com name
auth-user-pass /etc/openvpn/login.txt
auth-nocache
comp-lzo
verb 3
auth SHA256
cipher AES-256-CBC
keysize 256
tls-cipher TLS-DHE-RSA-WITH-AES-256-CBC-SHA:TLS-DHE-DSS-WITH-AES-256-CBC-SHA:TLS-RSA-WITH-AES-256-CBC-SHA
script-security 2
route-noexec
#up and down scripts to be executed when VPN starts or stops
up /etc/openvpn/iptables.sh
down /etc/openvpn/update-resolv-conf
Code:
● openvpn@openvpn.service - OpenVPN connection to openvpn
Loaded: loaded (/etc/systemd/system/openvpn@openvpn.service; enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2017-08-20 10:28:52 CEST; 1s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 890 ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/%i.ovpn --writepid /run/openvpn/%i.pid (code=exited, status=1/FAILURE)
Aug 20 10:28:52 RPiDownload systemd[1]: Failed to start OpenVPN connection to openvpn.
Aug 20 10:28:52 RPiDownload systemd[1]: Unit openvpn@openvpn.service entered failed state.
Code:
[Unit]
# HTPC Guides - www.htpcguides.com
Description=OpenVPN connection to %i
Documentation=man:openvpn(8)
Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
After=network.target
[Service]
RuntimeDirectory=openvpn
PrivateTmp=true
KillMode=mixed
Type=forking
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/%i.ovpn --writepid /run/openvpn/%i.pid
PIDFile=/run/openvpn/%i.pid
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/etc/openvpn
Restart=on-failure
RestartSec=3
ProtectSystem=yes
LimitNPROC=10
DeviceAllow=/dev/null rw
DeviceAllow=/dev/net/tun rw
[Install]
WantedBy=multi-user.target
I hope someone is able to understand what is happening here and can tell me what i am doing wrong and get this working. Thanks in advance.
Regards.