LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2008, 10:54 PM   #1
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Buster Stable, Windoze 7
Posts: 684

Rep: Reputation: 56
Unhappy VPN bridging (two interfaces) question with OpenVPN


Hi all

I have a problem that I cannot get my mind around:

I basically want to create a VPN into my local network at home from outside.
I got server Atlas in my local net that also gives out IPs over DHCP.
If I set up OpenVPN in bridging mode, I should be able to take a client out into the internet and get it connected through the VPN as though I would be in the internal net, right? I could even get an internal address ouver DHCP and the DHCP server would not even know that I am outside.

Now there thing I don't understand:
Where will the bridge be on the network? where are two nets merged?

Server Atlas has two interfaces: eth0, which is internal and eth1 that is connected to the internet. Eth0 has a DHCP server running that serves out addresses to my local net. Eth1 is getting dynamic inet addresses itself from my ISP.
Then I got an interface on the client (laptop) that is outside (naturally). OpenVPN then creates a new device (tun or tap, don't remember which one right now) and that is then bridged with the physical one.
Something that boggles my mind, and there I guess I lack the bridging knowhow, is how can two interfaces be bridged with eachother without the former interface loosing its IP address (which it does, I tried it) and still be able to pass the data through the network.

Example: I open up the VPN on the client, got two interfaces, that VPN and the physical. The VPN communicates through the physical. If I bridge them both, I pull the carpet from underneath me and the VPN collapses, since it cannot access the physical NIC anymore.

If I don't do that, the laptop (client, outside) will become a multi homed host. Is that how VPNs usually are setup? With proper routing, I should be able to still decide where the standard traffic should pass through (through the vpn naturally).

Which interface do I need to bridge?

thanks for any pointers

Markus
 
Old 03-28-2008, 12:43 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
A bridge uses MAC addresses rather than the IP addresses to join network segments. IMHO it would be better to use subnetting instead and treat the respective VPN devices as gateway devices.

Last edited by jschiwal; 03-28-2008 at 06:31 AM.
 
Old 04-01-2008, 10:51 AM   #3
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu, Debian Buster Stable, Windoze 7
Posts: 684

Original Poster
Rep: Reputation: 56
Unfortunately, that does not do the trick for me. When you depend on broadcasts to go through both ways routing fails.

I would be grateful for ANY account of somebody that is using bridging with VPN. So far, nobody seems to be using it that way, which I can somehow not believe, considering the advantages it offers.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bridging interfaces (eth0 + eth1 = br0) Mithrilhall Linux - Networking 1 10-27-2007 05:35 AM
[SOLVED] iptables 'bridging/routing' two interfaces for VPN PelliX Linux - Networking 10 10-27-2007 04:57 AM
OpenVPN Bridging Connectivity Issue (possible TAP problem?) SquishyMarbles Linux - Networking 2 09-28-2006 10:28 PM
Problen with broadcasts in OpenVPN/bridging ValidiusMaximus Linux - Software 0 06-11-2005 08:08 AM
Bridging interfaces + ip address Soma Linux - Networking 2 10-27-2003 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration