Two computers, A uses WG-client, B doesn't.

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
thoase
DD-WRT Novice


Joined: 01 Dec 2021
Posts: 14
Location: Sweden

PostPosted: Tue Dec 14, 2021 4:51    Post subject: Two computers, A uses WG-client, B doesn't. Reply with quote
Hi!
Is it possible to have:
Computer_A, MAC-adress AA:BB:CC:11:22:33, is using a WireGuard-client to connect a WireGuard-server somewhere on the internet.

Computer_B, MAC-adress 11:22:33:AA:BB:CC, connects direct to the internet without using the WireGuard-client.

Both computers uses the same router.
Sponsor
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Dec 14, 2021 5:46    Post subject: Reply with quote
Is computer B in the PBR field? What router/build is this on?
_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware‽
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 9601
Location: Netherlands

PostPosted: Tue Dec 14, 2021 7:18    Post subject: Reply with quote
Like @kp69 already set we can give better support if you state router model and build number

See the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

To answer your question you probably need Policy Based Routing, from the WireGuard Client setup guide:
Quote:
Policy Based Routing (PBR) works by creating multiple routing tables and rules that specify which
routing table to use when certain criteria are met.
Criteria for routing decision can be source- and destination address, port, interface, fwmark etc. see:
ip rule man page


WireGuard guides and documentation see the link in my signature at the bottom but they are a sticky in this forum.

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), 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
thoase
DD-WRT Novice


Joined: 01 Dec 2021
Posts: 14
Location: Sweden

PostPosted: Tue Dec 14, 2021 7:20    Post subject: Reply with quote
Build: v3.0-r47745 giga (12/04/21), ASUS RT-AC66U

I'm quiet new to using dd-wrt and I haven't set up the router yet. My plan is(if it possible) set up the two or more computers. Computer_A is the only computer to use WireGuard client.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 9601
Location: Netherlands

PostPosted: Tue Dec 14, 2021 7:29    Post subject: Reply with quote
No problem give it a static lease (IP address), in the WG client choose Route "Selected sources via VPN" and put that IP address in the PBR box
_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), 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
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1328
Location: Appalachian mountains, USA

PostPosted: Wed Dec 15, 2021 1:01    Post subject: Reply with quote
Guys, I don't believe the OP involves a router.
_________________
Six Linksys WRT1900ACSv2 routers on 48141: VLANs, VAPs, NAS, client mode, OpenVPN client (AirVPN), DDNS, wireguard servers and clients (AzireVPN), three DNSCrypt DNS providers (incl Quad9) via VPN clients.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking 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