You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
I am not 100% sure I have this analyzed correctly. Anyway, I need to execute a script everytime my connection gets established, si I figured I would use the wireguard config for that and added a PostUp section. It seems to execute it and then do something with iptables and then crash.
ehwn I take the section out, it just runs and works.
qbittorrent | 2023-03-25 15:50:43.601395 [INFO] VPN_ENABLED defined as 'yes'
qbittorrent | 2023-03-25 15:50:43.730549 [INFO] LEGACY_IPTABLES is set to ''
qbittorrent | 2023-03-25 15:50:43.867190 [INFO] Not making any changes to iptables version
qbittorrent | 2023-03-25 15:50:44.041680 [INFO] The container is currently running iptables v1.8.7 (nf_tables).
qbittorrent | 2023-03-25 15:50:44.214972 [INFO] VPN_TYPE defined as 'wireguard'
qbittorrent | 2023-03-25 15:50:44.410959 [INFO] WireGuard config file is found at /config/wireguard/wg0.conf
qbittorrent | dos2unix: converting file /config/wireguard/wg0.conf to Unix format...
qbittorrent | 2023-03-25 15:50:44.602215 [INFO] VPN remote line defined as ' X.X.X.X:51820'
qbittorrent | 2023-03-25 15:50:44.788650 [INFO] VPN_REMOTE defined as ' X.X.X.X'
qbittorrent | 2023-03-25 15:50:44.961304 [INFO] VPN_PORT defined as '51820'
qbittorrent | 2023-03-25 15:50:45.123442 [INFO] VPN_PROTOCOL set as 'udp', since WireGuard is always udp.
qbittorrent | 2023-03-25 15:50:45.224800 [INFO] VPN_DEVICE_TYPE set as 'wg0', since WireGuard will always be wg0.
qbittorrent | 2023-03-25 15:50:45.389877 [INFO] LAN_NETWORK defined as ' X.X.X.X/24'
qbittorrent | 2023-03-25 15:50:45.578324 [INFO] NAME_SERVERS defined as ' X.X.X.X'
qbittorrent | 2023-03-25 15:50:45.692915 [INFO] Adding X.X.X.X to resolv.conf
qbittorrent | 2023-03-25 15:50:45.864911 [INFO] Starting WireGuard...
qbittorrent | Warning: `/config/wireguard/wg0.conf' is world accessible
qbittorrent | [#] ip link add wg0 type wireguard
qbittorrent | [#] wg setconf wg0 /dev/fd/63
qbittorrent | [#] ip -4 address add XX.XX.XX.XX/32 dev wg0
qbittorrent | [#] ip link set mtu 1420 up dev wg0
qbittorrent | [#] resolvconf -a wg0 -m 0 -x
qbittorrent | [#] wg set wg0 fwmark 51820
qbittorrent | [#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
qbittorrent | [#] ip -4 rule add not fwmark 51820 table 51820
qbittorrent | [#] ip -4 rule add table main suppress_prefixlength 0
qbittorrent | [#] iptables-restore -n
qbittorrent | [#] /config/wireguard/MYSCRIPT.sh
qbittorrent | [#] resolvconf -d wg0 -f
qbittorrent | [#] iptables-restore -n
qbittorrent | [#] ip -4 rule delete table 51820
qbittorrent | [#] ip -4 rule delete table main suppress_prefixlength 0
qbittorrent | [#] ip link delete dev wg0
qbittorrent exited with code 127
The text was updated successfully, but these errors were encountered:
Aha, immediately after I wrote the issue I figured it out.
python3 is not installed at this point apparently. So i need to start it properly, let it install itself and then restart it with the changed wireguard config.
I guess it makes sense to install python after the VPN connection ist established, so I dont know if there yould be a way for you to fix this..
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am not 100% sure I have this analyzed correctly. Anyway, I need to execute a script everytime my connection gets established, si I figured I would use the wireguard config for that and added a PostUp section. It seems to execute it and then do something with iptables and then crash.
ehwn I take the section out, it just runs and works.
The text was updated successfully, but these errors were encountered: