OpenWrt Forum Archive

Topic: OpenVPN bridging

The content of this topic has been archived on 27 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm trying to set up a VPN as follows:

Remote linux server, acting as OpenVPN server and samba server

local OpenWRT on an Asus 500G Premium, with OpenVPN client.  The openWRT box is sitting behind a DSL router.  The WAN port is plugged into the DSL router and gets IP and routing info from it.

I'd like to set up a laptop that connects to the OpenWRT box either by wifi or copper, and is bridged to the remote linux server.

Ideally I'd like for the default gateway to be the local DSL router so traffic not bound for the bridged network is sent out the local DSL router.

Is this possible?  Can anyone provide some hints/guidance?

Thanks,

--Yan

It's possible, though routed VPN would probably work a little better (OpenVPN does support bridged).

Install the server and client, get a simple connection going between the two.

Make the DHCP servers on the linux box and the OpenWRT box have non-overlapping ranges.  You probably don't want the remote VPN serving DHCP leases locally.  Block outgoing DHCP traffic sourced on LAN or WIFI and destined for the VPN interface.

Add the VPN interface to the bridge.

Basically, do it in small steps that are easy to verify.

exobyte wrote:

Make the DHCP servers on the linux box and the OpenWRT box have non-overlapping ranges.  You probably don't want the remote VPN serving DHCP leases locally.  Block outgoing DHCP traffic sourced on LAN or WIFI and destined for the VPN interface.

That's a great idea.... I kept trying to figure out how to do it with routing tables, all on the assumption that the remote DHCP server would manage the leases....

exobyte wrote:

Add the VPN interface to the bridge.

Great, thanks.  :-)

--Yan

The discussion might have continued from here.