openvpn mit debian 10.3: was ist anders?
-
- Beiträge: 45
- Registriert: 19.04.2017 17:59:36
openvpn mit debian 10.3: was ist anders?
Hallo,
ich nutze seit Jahren den vpn von Perfect Privacy. Hat immer problemlos funktioniert. Nach einer Neuinstallation mit debian 10.3 tut es nicht mehr.
root@srv:/etc/openvpn# service openvpn status
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2020-05-01 11:01:30 CEST; 12min ago
Process: 1354 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1354 (code=exited, status=0/SUCCESS)
Im syslog steht:
May 1 11:01:30 srv ovpn-home[1353]: config = '/etc/openvpn/home.conf'
May 1 11:01:30 srv ovpn-home[1353]: cd_dir = '/etc/openvpn'
May 1 11:01:30 srv ovpn-home[1353]: writepid = '/run/openvpn/home.pid'
May 1 11:01:30 srv ovpn-home[1353]: up_script = '/etc/openvpn/update-resolv-conf'
May 1 11:01:30 srv ovpn-home[1353]: down_script = '/etc/openvpn/update-resolv-conf'
May 1 11:01:30 srv ovpn-home[1353]: status_file = '/run/openvpn/home.status'
May 1 11:01:34 srv systemd[1]: openvpn@home.service: Succeeded.
Das mit dem Succeeded stimmt halt nicht, meine IP Adresse ist nicht wie gewünscht aus Frankfurt sondern immer noch die alte.
Im Config steht verb 4, ich habe das mal auf verb 8 geändert, konnte aber keinen Unterschied feststellen.
Weiß jemand was sich da in debian 10.3 geändert hat oder kann mir jemand einen Tipp geben, wie ich openvpn gesprächiger mache?
ich nutze seit Jahren den vpn von Perfect Privacy. Hat immer problemlos funktioniert. Nach einer Neuinstallation mit debian 10.3 tut es nicht mehr.
root@srv:/etc/openvpn# service openvpn status
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2020-05-01 11:01:30 CEST; 12min ago
Process: 1354 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1354 (code=exited, status=0/SUCCESS)
Im syslog steht:
May 1 11:01:30 srv ovpn-home[1353]: config = '/etc/openvpn/home.conf'
May 1 11:01:30 srv ovpn-home[1353]: cd_dir = '/etc/openvpn'
May 1 11:01:30 srv ovpn-home[1353]: writepid = '/run/openvpn/home.pid'
May 1 11:01:30 srv ovpn-home[1353]: up_script = '/etc/openvpn/update-resolv-conf'
May 1 11:01:30 srv ovpn-home[1353]: down_script = '/etc/openvpn/update-resolv-conf'
May 1 11:01:30 srv ovpn-home[1353]: status_file = '/run/openvpn/home.status'
May 1 11:01:34 srv systemd[1]: openvpn@home.service: Succeeded.
Das mit dem Succeeded stimmt halt nicht, meine IP Adresse ist nicht wie gewünscht aus Frankfurt sondern immer noch die alte.
Im Config steht verb 4, ich habe das mal auf verb 8 geändert, konnte aber keinen Unterschied feststellen.
Weiß jemand was sich da in debian 10.3 geändert hat oder kann mir jemand einen Tipp geben, wie ich openvpn gesprächiger mache?
Re: openvpn mit debian 10.3: was ist anders?
Wie ist z. Zt. die Ausgabe von:rumpumpel1 hat geschrieben:01.05.2020 11:20:01Nach einer Neuinstallation mit debian 10.3 tut es nicht mehr.
...., meine IP Adresse ist nicht wie gewünscht aus Frankfurt sondern immer noch die alte.
Code: Alles auswählen
route -n
Debian 12.9 mit LXDE, OpenBSD 7.6 mit i3wm, FreeBSD 14.1 mit Xfce
-
- Beiträge: 45
- Registriert: 19.04.2017 17:59:36
Re: openvpn mit debian 10.3: was ist anders?
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp34s0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp34s0
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp34s0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp34s0
Re: openvpn mit debian 10.3: was ist anders?
Wie sind die Ausgaben von:rumpumpel1 hat geschrieben:01.05.2020 12:13:17Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp34s0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp34s0
Code: Alles auswählen
systemctl list-units --all | grep -i openvpn
ps aux | grep -i [o]penvpn
Debian 12.9 mit LXDE, OpenBSD 7.6 mit i3wm, FreeBSD 14.1 mit Xfce
-
- Beiträge: 45
- Registriert: 19.04.2017 17:59:36
Re: openvpn mit debian 10.3: was ist anders?
root@srv:~# systemctl list-units --all | grep -i openvpn
openvpn.service loaded active exited OpenVPN service
openvpn@home.service loaded inactive dead OpenVPN connection to home
system-openvpn.slice loaded active active system-openvpn.slice
root@srv:~# ps aux | grep -i [o]penvpn
root@srv:~#
openvpn.service loaded active exited OpenVPN service
openvpn@home.service loaded inactive dead OpenVPN connection to home
system-openvpn.slice loaded active active system-openvpn.slice
root@srv:~# ps aux | grep -i [o]penvpn
root@srv:~#
Re: openvpn mit debian 10.3: was ist anders?
Siehe die Ausgaben von:rumpumpel1 hat geschrieben:01.05.2020 12:26:37
openvpn@home.service loaded inactive dead OpenVPN connection to home
Code: Alles auswählen
systemctl status openvpn@home
systemctl cat openvpn@home
Debian 12.9 mit LXDE, OpenBSD 7.6 mit i3wm, FreeBSD 14.1 mit Xfce
-
- Beiträge: 45
- Registriert: 19.04.2017 17:59:36
Re: openvpn mit debian 10.3: was ist anders?
root@srv:~# systemctl status openvpn@home
● openvpn@home.service - OpenVPN connection to home
Loaded: loaded (/lib/systemd/system/openvpn@.service; enabled-runtime; vendor preset: enabled)
Active: inactive (dead) since Fri 2020-05-01 11:01:34 CEST; 1h 32min ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/w ... n24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 1353 ExecStart=/usr/sbin/openvpn --daemon ovpn-home --status /run/openvpn/home.status 10 --cd /etc/openvpn --config /etc/openvpn/home.conf --writepid /run/openvpn/home.pid (code=e
Main PID: 1353 (code=exited, status=0/SUCCESS)
Status: "Pre-connection initialization successful"
May 01 11:01:34 srv ovpn-home[1353]: PID packet_id_free
May 01 11:01:34 srv ovpn-home[1353]: TCP/UDP: Closing socket
May 01 11:01:34 srv ovpn-home[1353]: PID packet_id_free
May 01 11:01:34 srv ovpn-home[1353]: SIGTERM[soft,auth-failure] received, process exiting
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Terminating openssl
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Removing providers
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Releasing sessions
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Terminating slotevent
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Marking as uninitialized
May 01 11:01:34 srv systemd[1]: openvpn@home.service: Succeeded.
root@srv:~# systemctl cat openvpn@home
# /lib/systemd/system/openvpn@.service
[Unit]
Description=OpenVPN connection to %i
PartOf=openvpn.service
ReloadPropagatedFrom=openvpn.service
Before=systemd-user-sessions.service
After=network-online.target
Wants=network-online.target
Documentation=man:openvpn(8)
Documentation=https://community.openvpn.net/openvpn/w ... n24ManPage
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
[Service]
Type=notify
PrivateTmp=true
WorkingDirectory=/etc/openvpn
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid
PIDFile=/run/openvpn/%i.pid
KillMode=process
ExecReload=/bin/kill -HUP $MAINPID
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE CAP_AUDIT_WRITE
LimitNPROC=100
DeviceAllow=/dev/null rw
DeviceAllow=/dev/net/tun rw
ProtectSystem=true
ProtectHome=true
RestartSec=5s
Restart=on-failure
[Install]
WantedBy=multi-user.target
● openvpn@home.service - OpenVPN connection to home
Loaded: loaded (/lib/systemd/system/openvpn@.service; enabled-runtime; vendor preset: enabled)
Active: inactive (dead) since Fri 2020-05-01 11:01:34 CEST; 1h 32min ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/w ... n24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 1353 ExecStart=/usr/sbin/openvpn --daemon ovpn-home --status /run/openvpn/home.status 10 --cd /etc/openvpn --config /etc/openvpn/home.conf --writepid /run/openvpn/home.pid (code=e
Main PID: 1353 (code=exited, status=0/SUCCESS)
Status: "Pre-connection initialization successful"
May 01 11:01:34 srv ovpn-home[1353]: PID packet_id_free
May 01 11:01:34 srv ovpn-home[1353]: TCP/UDP: Closing socket
May 01 11:01:34 srv ovpn-home[1353]: PID packet_id_free
May 01 11:01:34 srv ovpn-home[1353]: SIGTERM[soft,auth-failure] received, process exiting
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Terminating openssl
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Removing providers
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Releasing sessions
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Terminating slotevent
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Marking as uninitialized
May 01 11:01:34 srv systemd[1]: openvpn@home.service: Succeeded.
root@srv:~# systemctl cat openvpn@home
# /lib/systemd/system/openvpn@.service
[Unit]
Description=OpenVPN connection to %i
PartOf=openvpn.service
ReloadPropagatedFrom=openvpn.service
Before=systemd-user-sessions.service
After=network-online.target
Wants=network-online.target
Documentation=man:openvpn(8)
Documentation=https://community.openvpn.net/openvpn/w ... n24ManPage
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
[Service]
Type=notify
PrivateTmp=true
WorkingDirectory=/etc/openvpn
ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid
PIDFile=/run/openvpn/%i.pid
KillMode=process
ExecReload=/bin/kill -HUP $MAINPID
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE CAP_AUDIT_WRITE
LimitNPROC=100
DeviceAllow=/dev/null rw
DeviceAllow=/dev/net/tun rw
ProtectSystem=true
ProtectHome=true
RestartSec=5s
Restart=on-failure
[Install]
WantedBy=multi-user.target
-
- Beiträge: 45
- Registriert: 19.04.2017 17:59:36
Re: openvpn mit debian 10.3: was ist anders?
das war es, danke.
In password.txt muss es heißen:
meine-userid
mein-passwort
und ich hatte drinstehen:
userid meine-userid
password mein-passwort
In password.txt muss es heißen:
meine-userid
mein-passwort
und ich hatte drinstehen:
userid meine-userid
password mein-passwort
Re: openvpn mit debian 10.3: was ist anders?
Evtl. musst Du Änderungen an der Konfiguration deines openvpn-Clienten machen.rumpumpel1 hat geschrieben:01.05.2020 12:36:08Active: inactive (dead) since Fri 2020-05-01 11:01:34 CEST; 1h 32min ago
...
Status: "Pre-connection initialization successful"
May 01 11:01:34 srv ovpn-home[1353]: PID packet_id_free
May 01 11:01:34 srv ovpn-home[1353]: TCP/UDP: Closing socket
May 01 11:01:34 srv ovpn-home[1353]: PID packet_id_free
May 01 11:01:34 srv ovpn-home[1353]: SIGTERM[soft,auth-failure] received, process exiting
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Terminating openssl
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Removing providers
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Releasing sessions
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Terminating slotevent
May 01 11:01:34 srv ovpn-home[1353]: PKCS#11: Marking as uninitialized
EDIT:
OK, erledigt.
Debian 12.9 mit LXDE, OpenBSD 7.6 mit i3wm, FreeBSD 14.1 mit Xfce