YunoHost-Apps / wireguard_client_ynh

WireGuard Client configuration app, for YunoHost
MIT License
4 stars 1 forks source link

Mount VPN over wlan0 interface ? #8

Open Gredin67 opened 8 months ago

Gredin67 commented 8 months ago

My raspberry 3B+ is connecting to the internet over wifi wlan0 interface. The vpn interface is mounted, but I have no internet.

févr. 29 10:53:52 systemd[1]: Starting WireGuard Client on vpn ...
févr. 29 10:53:53 wg-quick[1070]: [#] ip link add vpn type wireguard
févr. 29 10:53:53 wg-quick[1070]: [#] wg setconf vpn /dev/fd/63
févr. 29 10:53:53 wg-quick[1070]: [#] ip -4 address add a.b.c.d/32 dev vpn 
févr. 29 10:53:53 wg-quick[1070]: [#] ip link set mtu 1450 up dev vpn 
févr. 29 10:53:53 wg-quick[1134]: [#] resolvconf -a tun.vpn -m 0 -x
févr. 29 10:53:54 wg-quick[1070]: [#] wg set vpn fwmark xxxxx
févr. 29 10:53:54 wg-quick[1070]: [#] ip -4 route add 0.0.0.0/0 dev vpn table xxxxx
févr. 29 10:53:54 wg-quick[1070]: [#] ip -4 rule add not fwmark xxxxx table xxxxx
févr. 29 10:53:54 wg-quick[1070]: [#] ip -4 rule add table main suppress_prefixlength 0
févr. 29 10:53:54 wg-quick[1070]: [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
févr. 29 10:53:54 wg-quick[1070]: [#] nft -f /dev/fd/63
févr. 29 10:53:55 systemd[1]: Finished WireGuard Client on vpn .