Some lovely wholesome developer has included: connmanctl.
Which really makes it easy to setup a wireguard vpn.
connmanctl watches: /storage/.config/wireguard
And has its own config system, just create a: nano myvpn.config in that directory.
[provider_wireguard]
Type = WireGuard
Name = VPNNAME
Host = (The IP of the VPN Server. Ping its hostname)
Domain = ThisMustHaveANameAndByGawdANYNAME
WireGuard.Address = The VPN internal server IP (ends with 24 or 32 usually)/32
WireGuard.PrivateKey = yourPrivateKeyHere
WireGuard.PublicKey = yourPublickeyThere
WireGuard.DNS = DNS_IP1, DNS_IP2
WireGuard.AllowedIPs = 0.0.0.0/0
WireGuard.EndpointPort = TheServerPort
WireGuard.PersistentKeepalive = 25
(There shall be no () in the config!)
Then you save it.
Type connmanctl whack enter.
Now you should be able to see it by typing: services (and whack enter)
If everything is ok, it should be listed.
Now you can type: connect (first letter of config & press TAB) autocompletedConfigname
Likewise, you type disconnect to disconnect.
And then it should say: Connected
Type: quit to Quit.
You can check your external ip by: nslookup myip.opendns.com resolver1.opendns.com
If you wish, you can setup so that it starts on boot by: connmanctl config VPNNAMEByTAB autoconnect yes exit
Enable the service: systemctl enable connman
Now, I hope to use my N2 as a gateway (see thread), so that the local network can use wireguard at the same time. Seems to be iptables that’s missing.
There is no “right” value for AllowedIPs parameter.
This parameter defines which addesses should route through wireguard.
0.0.0.0/0 means everything should come through wireguard.
But if you want to setup Wireguard, but use it for specific situations or bind some applications to this network interface only, you will fail.
Because connman is always routing everything through wireguard interface.
This bug is reported long time ago, but still no changes with that.
hi thank you for your reply, i just manage to install putty on windows and connect to my device. quick question, how can i got all the information required from subscription vpn. im using vyprvpn.