How to direct traffic of WireGuard VPN to access another network via 2nd NIC?


Recommended Posts

I am setting up a VPN using WireGuard, and the incoming connections will be coming from an Internet accessible NIC (eth0), but I do not want to have that LAN to be the network that is accessed over that VPN tunnel.


I want another LAN to be seen by the VPN Tunnel and its associated IP addresses (eth1).

My setup so far, is 2 NICs,  eth0  is the primary LAN and eth1 is the LAN I want to be seen by the VPN.

 

I am not sure what I need to configure and where ?

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.