Test users wanted to test upgraded and reworked WireGuard

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2  Next
Author Message
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sat Dec 12, 2020 12:24    Post subject: Test users wanted to test upgraded and reworked WireGuard Reply with quote
I am looking for test users who want to test build 44980.

This build has an upgraded and reworked WireGuard.

It has among other things:
• Interface with Advanced option to hide advanced options and make it cleaner.
• Set DNS server with routing via tunnel
• Use CIDR notation for address/netmask so it could also work IPv6 (not tested and no routing rules)
• Upgraded PBR so to also allow things like "iif" and "from to" and if we get Kernel 4.17 or later port routing
• Firewall settings the same as for OpenVPN i.e. no extra rules for normal client behaviour (the client can initiate outbound traffic by default) and accepting new inbound traffic for server'
• Added possibilities for route-up, route down scripts and Firewall mark settings
• Added detection if there is no WAN (like in a Wireless Access Point) to set default route via the LAN
• Instead of setting a fixed wait time (35 seconds) variable wait time waiting for time server to come up
• If a route up script is present wait for usb /jffs to be accessible with is-mounted.sh utility (usr/bin/is-mounted.sh)

If the test is successful some or all of these upgrades can be incorporated in the next public Beta build, but I need your help to test.

The build is an official build by BS and I have it running on Broadcom R6400 Linksys EA8500 and Netgear R7800, which runs fine (The Qualcomm Atheros have improved WiFi throughput and Samba is working 😊 )

Your WireGuard settings are retained except for the IP address and Net mask of the WG tunnel.
Old builds have e.g. 10.4.0.5 with netmask 255.255.255.0, new builds will use CIDR notation e.g. 10.4.0.5/24 (this as a preparation for IPv6, and normally your provider will also use this notation)
You have to refresh your browser cache with CTRL+F5 and enable the tunnel, but as said settings should be retained except for the IP address/netmask.

Builds can be found at:
https://www.dropbox.com/sh/q2sf1kzqba57gz9/AABFmrUQ3xhbL20DWBB9pNJda?dl=0

If you are missing a build let me know, you can PM me: https://forum.dd-wrt.com/phpBB2/privmsg.php?mode=post&u=342338
I will put it in my dropbox see link above (BS did not give me all builds though).

Warning, although I have it running and it runs fine, it is an alpha build.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Sponsor
burgess85
DD-WRT User


Joined: 22 Sep 2012
Posts: 78

PostPosted: Sat Dec 12, 2020 14:25    Post subject: Reply with quote
Will it be released soon as a beta?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sat Dec 12, 2020 14:32    Post subject: Reply with quote
No only if feedback from users is positive.

So test it Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
James Greystone
DD-WRT User


Joined: 20 Nov 2011
Posts: 194

PostPosted: Sat Dec 12, 2020 15:55    Post subject: Reply with quote
Excellent, since you helped me get Wireguard running in March, I will definitely, try this out for you and BS.

My credentials do use CIDR which I had to convert so I like this change 100%

Cheers
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1058
Location: WV, USA

PostPosted: Sat Dec 12, 2020 23:35    Post subject: Reply with quote
Just upgraded to 44980 with the new WG. Working well so far, but it's only been up about 10 minutes.
_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55779

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
tatsuya46
DD-WRT Guru


Joined: 03 Jan 2010
Posts: 7568
Location: YWG, Canada

PostPosted: Sun Dec 13, 2020 0:21    Post subject: Reply with quote
whats the difference between the dns server setting on wireguard page vs using forced dns redirection for wireguard interface on the networking page im currently using?
_________________
LATEST FIRMWARE(S)

BrainSlayer wrote:
we just do it since we do not like any restrictions enforced by stupid cocaine snorting managers

[x86_64] Haswell i3-4150/QCA9984/QCA9882 ------> r55797 std
[QUALCOMM] DIR-862L --------------------------------> r55797 std
▲ ACTIVE / INACTIVE ▼
[QUALCOMM] WNDR4300 v1 --------------------------> r50485 std
[BROADCOM] DIR-860L A1 ----------------------------> r50485 std


Sigh.. why do i exist anyway.. | I love you Anthony.. never forget that.. my other 99% that ill never see again..

Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6865
Location: Romerike, Norway

PostPosted: Sun Dec 13, 2020 8:35    Post subject: Reply with quote
I'm running a Site-Site WG between a R7800 and a RT-AC66U. Couldn't find the file for the latter.

I have made IPv6 work through manual configuration.

1) The oet interface does not have a Link Local Address (FE80::). Probably because it does not have a MAC either.

2) DHCP6C does not assign a PD when one interface that is given a SLA ID is not up when run.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sun Dec 13, 2020 10:12    Post subject: Reply with quote
tatsuya46 wrote:
whats the difference between the dns server setting on wireguard page vs using forced dns redirection for wireguard interface on the networking page im currently using?


That is a very good question.

The Optional DNS target uses iptables rules to redirect queries on port 53.
I assumed that it would not work as the interface is not unbridged.

Your question led me to actually try it Smile

I set an optional DNS target to 11.0.0.0 (non existent so it should stop DNS) and nothing happened and the rules are not hit either:
Code:
root@R7800-2:~# iptables -vnL PREROUTING -t nat
Chain PREROUTING (policy ACCEPT 1927 packets, 184K bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 DNAT       udp  --  oet2   *       0.0.0.0/0            0.0.0.0/0            udp dpt:53 to:11.0.0.0
    0     0 DNAT       tcp  --  oet2   *       0.0.0.0/0            0.0.0.0/0            tcp dpt:53 to:11.0.0.0
  140  7280 DNAT       tcp  --  *      *       0.0.0.0/0            192.168.0.5          tcp dpt:8080 to:192.168.5.1:80
    1    52 DNAT       tcp  --  *      *       0.0.0.0/0            192.168.0.5          tcp dpt:22 to:192.168.5.1:22
    0     0 DNAT       tcp  --  *      *       0.0.0.0/0            192.168.0.5          tcp dpt:23 to:192.168.5.1:23
    0     0 DNAT       icmp --  *      *       0.0.0.0/0            192.168.0.5          to:192.168.5.1
    2   104 TRIGGER    all  --  *      *       0.0.0.0/0            192.168.0.5         TRIGGER type:dnat match:0 relate:0


So in my hands it does not seem to work

When the DNS server (or servers you can set more than one) are set in the WG GUI those are placed in resolv.dnsmasq to use by DNSMasq but only after the connection is made and the route is setup so that when a DNS server is not publicly available you will not get in a dead lock situation where DNSMasq tries to resolve the time server and endpoint URL but cannot.
Furthermore a static route is made so that the DNS server is always routed via the tunnel.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sun Dec 13, 2020 10:19    Post subject: Reply with quote
Per Yngve Berg wrote:
I'm running a Site-Site WG between a R7800 and a RT-AC66U. Couldn't find the file for the latter.

I have made IPv6 work through manual configuration.

1) The oet interface does not have a Link Local Address (FE80:Smile. Probably because it does not have a MAC either.

2) DHCP6C does not assign a PD when one interface that is given a SLA ID is not up when run.


Per Yngve, thanks for testing, BS decided to go forward and have the build publicly available already (a bit to soon for my liking as I wanted more time to test)

I do not have IPv6 (and only have basic knowledge about it) so could not test/try anything.

Can you give some instruction how to setup IPv6 for other users?

Perhaps you can use the route-up script to setup IPv6 routes ?
The route-up script kicks in after the connection is made.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sun Dec 13, 2020 11:10    Post subject: Reply with quote
All your suggestions or errors you spotted or ideas for improvement are very welcome I cannot do it alone Smile

A special note for a small utility I added /usr/bin/is-mounted.sh
It waits for a maximum of 35 seconds for a directory to be available and writable, can probably also be used in startup to wait for the usb stick.

usage:
Code:
sh /usr/bin/is-mounted.sh /[mydir]

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6435
Location: UK, London, just across the river..

PostPosted: Sun Dec 13, 2020 11:34    Post subject: Reply with quote
Hi egc,
I would like to try WG, but im unaware, how its going to work with DoT...im using...last time i tried WG i messed up with PIA settings and was not working.
Ill give it a go again...

Any tips...?? Will it work with stubb resolver...??? or any resolver that works on loopback interface...
I guess, it must not be an issue...???

So, far the advantage of Open VPN prior WG is only in terms of options and configuration, but speed could be a major 'plus' for WG, that outcomes the cons of it...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55779 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sun Dec 13, 2020 11:39    Post subject: Reply with quote
All good questions, but I have never tried it.

Will put it on my list to research, a DNS query out in the open is of course not very safe, however if you are using a provider with its own DNS server internally the query will go encrypted via the tunnel to the provider and resolved there Smile

But otherwise you might need the route-up script to do some routing for your own DNS resolver ?

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
James Greystone
DD-WRT User


Joined: 20 Nov 2011
Posts: 194

PostPosted: Sun Dec 13, 2020 15:40    Post subject: Reply with quote
Up 20 hours and working great so far.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sun Dec 13, 2020 16:10    Post subject: Reply with quote
Thanks James good to hear Smile
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
pupeto
DD-WRT Novice


Joined: 28 Sep 2018
Posts: 29
Location: Buenos Aires, Argentina

PostPosted: Sun Dec 13, 2020 20:34    Post subject: Reply with quote
Router Model Netgear Nighthawk X10
Firmware Version DD-WRT v3.0-r44980 std (12/12/20)
Kernel Version Linux 4.9.247 #519 SMP Sun Dec 6 19:24:53 +07 2020 armv7l

Wireguard (Torguard) OK after update. Settings retained. Everything works OK.

Anyway I manually added IP Address/Netmask(CIDR notation)


I apologize for my English
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum