0

I have a server connected to two network interfaces (via two different Internet services providers). The server runs Ubuntu OS. I want to use exactly one of the interfaces only for a virtualbox machine that runs on the server (dedicated interface to the virtualbox).

I want that all the incoming traffic to the server via that interface will be redirected to the virtualbox machine, and that any outgoing traffic will go through this interface.

I know that for the the first task, I need to do port-forwarding. However, I could not find a way to define rules that include all the ports.

I spent more than one day in searching for a solution, but without any success. Detailed answers or references to informative resources (examples are preferred) will be appreciated.

If you have partial answer, e.g., only about outgoing traffic, do not hesitate to send it!

Thanks in advance!

1 Answer 1

3

IF the host is never going to be using that interface, then you really shouldn't do anything on the host.

Instead setup virtual box to bridge the virtual interface for your VM directly to that physical interface. Then setup your VM as if it was physically connected to whatever that interface was connected to.

3
  • Can you please explain or give some reference to how can I do that?
    – Gari BN
    Mar 5, 2014 at 7:01
  • @GariBN The VirtualBox manual? Mar 5, 2014 at 10:27
  • @Michael Hampton I admit that I didn't read it all, but I searched there. I thought maybe someone can direct me. Anyway, I will go over the manual again.
    – Gari BN
    Mar 5, 2014 at 13:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .