Access Wireguard from console?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Fri Feb 16, 2018 19:39    Post subject: Access Wireguard from console? Reply with quote
Wireguard is implemented in recent builds but how to access from command line? Running "wg" doesn't work.
Would like to setup my own script

_________________
Netgear R7000 on Build 55109
Asus AC-AC68U rev. C1 (AP) on Build 55109
Asus AC-68U rev. A1 on Build 54604
Asus AC-68U rev. A1 on Build 53339
Sponsor
liverpoolatnight
DD-WRT User


Joined: 29 May 2008
Posts: 243
Location: United Kingdom

PostPosted: Thu Jul 12, 2018 13:10    Post subject: Re: Access Wireguard from console? Reply with quote
wabe wrote:
Wireguard is implemented in recent builds but how to access from command line? Running "wg" doesn't work.
Would like to setup my own script

see this (type into SSH)

wg --help

Code:
wg set
Usage: wg set <interface> [listen-port <port>] [fwmark <mark>] [private-key <file path>] [peer <base64 public key> [remove] [preshared-key <file path>] [endpoint <ip>:<port>] [persistent-keepalive <interval seconds>] [allowed-ips <ip1>/<cidr1>[,<ip2>/<cidr2>]...] ]...

_________________
TP-Link TL-WDR3600 v1 [EU]: r36330 (07/16/18 )
D-Link DIR-615 D2 [EU]: r36330 (07/16/18 )
Mikrotik RB750r2 (OpenWrt 17.01.4)
EE BrightBox 1 aka A4001N (OpenWrt 17.01.4)
Sagemcom FAST@5364 (VDSL2,FTTC (Fibre to the Cabinet) Synced 65/17

Twitter: @francisuk1989
---------------------------------
Found a bug? Report it http://svn.dd-wrt.com
DD-WRT Official FB Group: https://www.facebook.com/groups/493762527744455
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Thu Jul 12, 2018 15:03    Post subject: Re: Access Wireguard from console? Reply with quote
liverpoolatnight wrote:
wabe wrote:
Wireguard is implemented in recent builds but how to access from command line? Running "wg" doesn't work.
Would like to setup my own script

see this (type into SSH)

wg --help

Code:
wg set
Usage: wg set <interface> [listen-port <port>] [fwmark <mark>] [private-key <file path>] [peer <base64 public key> [remove] [preshared-key <file path>] [endpoint <ip>:<port>] [persistent-keepalive <interval seconds>] [allowed-ips <ip1>/<cidr1>[,<ip2>/<cidr2>]...] ]...


Unfortunately not.

Running wg --help yields "wg: not found" on latest Kong build (36070)

_________________
Netgear R7000 on Build 55109
Asus AC-AC68U rev. C1 (AP) on Build 55109
Asus AC-68U rev. A1 on Build 54604
Asus AC-68U rev. A1 on Build 53339
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Thu Jul 12, 2018 15:55    Post subject: Reply with quote
Not all DD-WRT builds are identical. E4200 v1, build 36168 mega K3x

Code:
root@DD-WRT:~# wg --help
-sh: wg: not found


I'm still waiting for the next BS build to post since I am not in the inner circle nor do I have a build environment to play with yet.
liverpoolatnight
DD-WRT User


Joined: 29 May 2008
Posts: 243
Location: United Kingdom

PostPosted: Thu Jul 12, 2018 16:22    Post subject: Reply with quote
ahhh it could be in the new update https://svn.dd-wrt.com/changeset/36279 as BS made a test release on build 36301 last night for my WDR3600 v1 but it seems like its having issues either a startup or not enabled in someway Rolling Eyes seems like broadcom devices are ok by looking at the WG thread.
_________________
TP-Link TL-WDR3600 v1 [EU]: r36330 (07/16/18 )
D-Link DIR-615 D2 [EU]: r36330 (07/16/18 )
Mikrotik RB750r2 (OpenWrt 17.01.4)
EE BrightBox 1 aka A4001N (OpenWrt 17.01.4)
Sagemcom FAST@5364 (VDSL2,FTTC (Fibre to the Cabinet) Synced 65/17

Twitter: @francisuk1989
---------------------------------
Found a bug? Report it http://svn.dd-wrt.com
DD-WRT Official FB Group: https://www.facebook.com/groups/493762527744455


Last edited by liverpoolatnight on Thu Jul 12, 2018 17:42; edited 1 time in total
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Thu Jul 12, 2018 16:46    Post subject: Reply with quote
Wireguard was added to the repository 6 months ago. Not all builds are configured to include it for all devices. There's features that some devices get, others do not. This is a given.
liverpoolatnight
DD-WRT User


Joined: 29 May 2008
Posts: 243
Location: United Kingdom

PostPosted: Fri Jul 13, 2018 23:21    Post subject: Reply with quote
kernel-panic69 wrote:
Not all builds are configured to include it for all devices

You could ask nicely if BS will include it on the device however They will only do devices that have 8MB or more flash.

_________________
TP-Link TL-WDR3600 v1 [EU]: r36330 (07/16/18 )
D-Link DIR-615 D2 [EU]: r36330 (07/16/18 )
Mikrotik RB750r2 (OpenWrt 17.01.4)
EE BrightBox 1 aka A4001N (OpenWrt 17.01.4)
Sagemcom FAST@5364 (VDSL2,FTTC (Fibre to the Cabinet) Synced 65/17

Twitter: @francisuk1989
---------------------------------
Found a bug? Report it http://svn.dd-wrt.com
DD-WRT Official FB Group: https://www.facebook.com/groups/493762527744455
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Sat Jul 14, 2018 2:18    Post subject: Reply with quote
liverpoolatnight wrote:
kernel-panic69 wrote:
Not all builds are configured to include it for all devices

You could ask nicely if BS will include it on the device however They will only do devices that have 8MB or more flash.


E4200 v1 has a 16MB flash. Still, not included in r36168 mega k3x. Have not ventured into flashing the big builds to see if it's included in them. Also, have not reverted to the k2.6 builds to see if it's included in them, either. I'm sure I could ask nicely....
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum