Bridge Viscosity TAP adapter with 2nd ethernet

Got a problem with Viscosity or need help? Ask here!

live4ever

Posts: 4
Joined: Thu Jun 03, 2021 1:42 am

Post by live4ever » Thu Aug 24, 2023 5:00 am
How do you setup a bridge so a device (where I can't install OVPN software) connected to Windows 10 2nd ethernet adapter gets DHCP, IP etc. over OpenVPN (TAP) tunnel?

Currently have a TAP Viscosity connection working on ethernet port #1 (gets IP from DHCP of router on remote network and sends all traffic) - remote printers are visible, other PCs etc show up in Windows Explorer>Network.

Thanks

Aaron

Posts: 32
Joined: Wed Nov 30, 2022 2:53 pm

Post by Aaron » Thu Aug 24, 2023 4:36 pm
Hi,

I'm afraid bridging the VPN network adapter with another network adapter isn't something that is officially supported by Viscosity.

It's possible it may work, but you may run into issues if the VPN server/connection isn't configured to handle the traffic from additional machines. Viscosity itself also isn't designed to handle things like multiple DHCP assignments through the VPN connection, which could potentially cause issues with routing or DNS assignment. You could potentially try using Windows in-built network bridging support and see what happens.

Generally if you need to share a VPN connection, a better way of doing it is to use NAT (e.g. via Windows's Internet Connection Sharing feature).

Regards,
Aaron
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs

live4ever

Posts: 4
Joined: Thu Jun 03, 2021 1:42 am

Post by live4ever » Wed Sep 06, 2023 11:34 pm
Ok I’ve played around with a 2nd USB ethernet adapter as part of the bridge (with Visc TAP adapter) - and everything almost works.

On the device attached to the bridged USB ethernet it gets an IP via the far site router and it can access the LAN no problem however the gateway does not come across the bridge.

live4ever

Posts: 4
Joined: Thu Jun 03, 2021 1:42 am

Post by live4ever » Sat Sep 09, 2023 4:19 am
After doing some Wireshark captures and seeing the gateway getting stripped when a client on the Windows network bridge requests a DHCP lease on the remote site I finally found some threads through search.

OpenVpn 2.3.2 removing DHCP default gateway in tap mode
https://forums.openvpn.net/viewtopic.php?t=13494

Gateway gets stripped from DHCP Reply through OpenVPN tunnel
https://serverfault.com/questions/61559 ... vpn-tunnel

So adding to server.ovpn config:
Code: Select all
server-bridge nogw
Allows the remote site gateway to come through with the DHCP request.

Bridging Viscosity TAP adapter with 2nd ethernet is a success and works great for devices that can't run any form of VPN that require L2 (mDNS etc).

Aaron

Posts: 32
Joined: Wed Nov 30, 2022 2:53 pm

Post by Aaron » Wed Sep 13, 2023 3:08 pm
Thanks for posting your solution - I'm sure it'll be of interest to others who wish to attempt something similar.

Regards,
Aaron
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
5 posts Page 1 of 1