LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-03-2015, 08:31 PM   #1
OklahomaDave
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Rep: Reputation: Disabled
Connecting physical host to virtual bridge?!?


Hi, all.

I have what may be an unusual setup I'm trying to finish off, and I"m a bit stuck. I'm close, but need a push.

Intent: Create a machine with two NICS (one to an internal net, one to the world) hosting a *virtual* firewall, and configure the networking such that the host is protected by the firewall, and gains Internet access only through the firewall, not directly through the NICS.

Where I am:
I have a Ubuntu 14.04 host box with two physical NICS running a VirtualBox Smoothwall firewall. I've created two virtual bridges on the host, one for each NIC. In the VM, I've installed the Smoothwall firewall and connected the "outside" link to one of the virtual bridges via its tap, and it's working perfectly. I've attached the other "private" network virtual NIC to the other bridge. So far, so good.

The problem:
As noted, I want the Ubuntu host to gain its connectivity to the outside world through the VM firewall via the "private" bridge, not by direct-connecting to the ethernet interface that is slaved to that bridge. In effect, I need to connect a physical host to a virtual bridge tap. Is that even possible? Or have I created for myself a mousetrap from which I cannot escape...
 
Old 03-03-2015, 09:56 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,029

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Not sure I understand this.

A normal user would install a virtual machine. The client OS in that vm can be used as a firewall or router. That client needs to be connected to one of the nics in no uncertain terms to work. It can be bridged or natted. Now to protect the host you don't use then nic. You use the virtual machine's address and port.
 
Old 03-04-2015, 09:48 AM   #3
OklahomaDave
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
I have resolved this issue. It was borne of a misinterpreted situation between my host and the virtual bridge I had created, combined with a misconfigured server. I now have my host talking to the vBridge as I intended.

Thank you for taking the time to answer.
 
Old 03-04-2015, 05:56 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,029

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Thanks for the update and solution. I didn't quite fully get the question it seems. Not the first time.
 
Old 03-04-2015, 07:58 PM   #5
OklahomaDave
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Thanks for the update and solution. I didn't quite fully get the question it seems. Not the first time.
Well, the question wasn't ideally phrased. I had misconfigured a DHCP server such that it wouldn't hand out addresses on my private net, and I took that to mean my host wasn't talking to the vBridge. When I ran tcpdump on the server and saw it was getting the DHCP requests, I realized something was afoot. Alas.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CentOS 6 - KVM - Physical host losing network connectivity after Bridge configuration gkulkarni Linux - Virtualization and Cloud 10 10-27-2013 04:41 PM
IPtables to map Virtual Host IP Port 22 on same physical host to alternate port edi_corey Linux - Networking 1 05-04-2012 11:08 AM
bridge two NIC's in virtual OS with NIC's in physical machine m4rtin Linux - Networking 0 01-24-2012 05:58 PM
bonding + bridge + lxc = virtual host routing problem rysic Linux - Networking 0 08-07-2011 02:18 PM
Ethernet Bridge with Wireless and Physical LAN [half works] danfiggolfer Linux - Security 1 07-24-2007 02:33 PM

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

All times are GMT -5. The time now is 09:34 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