ip route del default
redirect-gateway
Option einrichten:
Nein, das machst du auf dem Client. Auf dem Server hast du wenn das ein öffentlicher ist bei dem du ein Abo hast keinen Zugriff auf die Configs.Soweit ich das verstehe spielt das aber auf OpenVPN Server an, oder nicht? Ich bin in dem Fall Client.
Soweit ich das verstehe spielt das aber auf OpenVPN Server an, oder nicht? Ich bin in dem Fall Client.
-redirect-gateway flags
Automatically execute routing commands to cause all outgoing IP traffic to be redirected over the VPN. This is a client-side option.This option performs three steps:
(1) Create a static route for the –remote address which forwards to the pre-existing default gateway. This is done so that (3) will not create a routing loop.
(2) Delete the default gateway route.
(3) Set the new default gateway to be the VPN endpoint address (derived either from –route-gateway or the second parameter to –ifconfig when –dev tun is specified).
When the tunnel is torn down, all of the above steps are reversed so that the original default route is restored.
client
dev tun
proto udp
remote VPN IP 1194
resolv-retry infinite
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
reneg-sec 0
log /etc/openvpn/openvpn.log
remote-cert-tls server
auth-user-pass /etc/openvpn/password.conf
#comp-lzo
redirect-gateway local def1
verb 3
pull
fast-io
cipher AES-256-CBC
auth SHA512
<ca>
-----BEGIN CERTIFICATE-----
Sun Nov 8 15:35:41 2020 WARNING: file '/etc/openvpn/password.conf' is group or others accessible
Sun Nov 8 15:35:41 2020 OpenVPN 2.4.3 sh4-oe-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Jun 28 2019
Sun Nov 8 15:35:41 2020 library versions: OpenSSL 1.0.2m 2 Nov 2017, LZO 2.10
Sun Nov 8 15:35:41 2020 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Nov 8 15:35:41 2020 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sun Nov 8 15:35:41 2020 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sun Nov 8 15:35:41 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]VPN IP:1194
Sun Nov 8 15:35:41 2020 Socket Buffers: R=[105472->105472] S=[105472->105472]
Sun Nov 8 15:35:41 2020 UDP link local: (not bound)
Sun Nov 8 15:35:41 2020 UDP link remote: [AF_INET]VPN IP:1194
Sun Nov 8 15:35:41 2020 write UDP: Network is unreachable (code=101)
Sun Nov 8 15:35:41 2020 Network unreachable, restarting
Sun Nov 8 15:35:41 2020 SIGUSR1[soft,network-unreachable] received, process restarting
Sun Nov 8 15:35:41 2020 Restart pause, 5 second(s)
Sun Nov 8 15:35:46 2020 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Nov 8 15:35:46 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]VPN IP:1194
Sun Nov 8 15:35:46 2020 Socket Buffers: R=[105472->105472] S=[105472->105472]
Sun Nov 8 15:35:46 2020 UDP link local: (not bound)
Sun Nov 8 15:35:46 2020 UDP link remote: [AF_INET]VPN IP:1194
Sun Nov 8 15:35:46 2020 write UDP: Network is unreachable (code=101)
Sun Nov 8 15:35:46 2020 Network unreachable, restarting
Sun Nov 8 15:35:46 2020 SIGUSR1[soft,network-unreachable] received, process restarting
Sun Nov 8 15:35:46 2020 Restart pause, 5 second(s)
Sun Nov 8 15:35:51 2020 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Nov 8 15:35:51 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]VPN IP:1194
Sun Nov 8 15:35:51 2020 Socket Buffers: R=[105472->105472] S=[105472->105472]
Sun Nov 8 15:35:51 2020 UDP link local: (not bound)
Sun Nov 8 15:35:51 2020 UDP link remote: [AF_INET]VPN IP:1194
Sun Nov 8 15:35:51 2020 write UDP: Network is unreachable (code=101)
Sun Nov 8 15:35:51 2020 Network unreachable, restarting
Sun Nov 8 15:35:51 2020 SIGUSR1[soft,network-unreachable] received, process restarting
Sun Nov 8 15:35:51 2020 Restart pause, 5 second(s)
Sun Nov 8 15:35:56 2020 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Nov 8 15:35:56 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]VPN IP:1194
Sun Nov 8 15:35:56 2020 Socket Buffers: R=[105472->105472] S=[105472->105472]
Sun Nov 8 15:35:56 2020 UDP link local: (not bound)
Sun Nov 8 15:35:56 2020 UDP link remote: [AF_INET]VPN IP:1194
Sun Nov 8 15:35:56 2020 write UDP: Network is unreachable (code=101)
Sun Nov 8 15:35:56 2020 Network unreachable, restarting
Sun Nov 8 15:35:56 2020 SIGUSR1[soft,network-unreachable] received, process restarting
Sun Nov 8 15:35:56 2020 Restart pause, 5 second(s)
Sun Nov 8 15:36:01 2020 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Nov 8 15:36:01 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]VPN IP:1194
Sun Nov 8 15:36:01 2020 Socket Buffers: R=[105472->105472] S=[105472->105472]
Sun Nov 8 15:36:01 2020 UDP link local: (not bound)
Sun Nov 8 15:36:01 2020 UDP link remote: [AF_INET]VPN IP:1194
Sun Nov 8 15:36:01 2020 write UDP: Network is unreachable (code=101)
Sun Nov 8 15:36:01 2020 Network unreachable, restarting
Sun Nov 8 15:36:01 2020 SIGUSR1[soft,network-unreachable] received, process restarting
Sun Nov 8 15:36:01 2020 Restart pause, 10 second(s)
Sun Nov 8 15:36:11 2020 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Nov 8 15:36:11 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]VPN IP:1194
Sun Nov 8 15:36:11 2020 Socket Buffers: R=[105472->105472] S=[105472->105472]
Sun Nov 8 15:36:11 2020 UDP link local: (not bound)
Sun Nov 8 15:36:11 2020 UDP link remote: [AF_INET]VPN IP:1194
Sun Nov 8 15:36:11 2020 write UDP: Network is unreachable (code=101)
Sun Nov 8 15:36:11 2020 Network unreachable, restarting
Sun Nov 8 15:36:11 2020 SIGUSR1[soft,network-unreachable] received, process restarting
Sun Nov 8 15:36:11 2020 Restart pause, 20 second(s)
Sun Nov 8 15:36:31 2020 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Nov 8 15:36:31 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]VPN IP:1194
Sun Nov 8 15:36:31 2020 Socket Buffers: R=[105472->105472] S=[105472->105472]
Sun Nov 8 15:36:31 2020 UDP link local: (not bound)
Sun Nov 8 15:36:31 2020 UDP link remote: [AF_INET]VPN IP:1194
Sun Nov 8 15:36:31 2020 write UDP: Network is unreachable (code=101)
Sun Nov 8 15:36:31 2020 Network unreachable, restarting
Sun Nov 8 15:36:31 2020 SIGUSR1[soft,network-unreachable] received, process restarting
Sun Nov 8 15:36:31 2020 Restart pause, 40 second(s)
Sun Nov 8 15:37:11 2020 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Nov 8 15:37:11 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]VPN IP:1194
Sun Nov 8 15:37:11 2020 Socket Buffers: R=[105472->105472] S=[105472->105472]
Sun Nov 8 15:37:11 2020 UDP link local: (not bound)
Sun Nov 8 15:37:11 2020 UDP link remote: [AF_INET]VPN IP:1194
Sun Nov 8 15:37:11 2020 write UDP: Network is unreachable (code=101)
Sun Nov 8 15:37:11 2020 Network unreachable, restarting
Sun Nov 8 15:37:11 2020 SIGUSR1[soft,network-unreachable] received, process restarting
Sun Nov 8 15:37:11 2020 Restart pause, 80 second(s)
ip route add %VPN IP% via %IP deines Standard Gateway% dev eth0
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?