LinuxQuestions.org
Visit Jeremy's Blog.
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 08-23-2013, 06:42 PM   #1
pranix
LQ Newbie
 
Registered: Aug 2013
Posts: 5

Rep: Reputation: Disabled
virtualbox hostonly network - source IP


I've set up 2 physical virtualbox hosts with multiple guests on each. Both are networked over physical LAN (eth0 - 1.1.1.1 and 1.1.1.2) and both have hostonlyif (vboxnet0) configured - 10.0.1.0/24 and 10.0.2.0/24. Guests have NAT set up (along with host only), thus providing traffic both way. It's working fine as expected.
I've got OpenVPN server running on 1.1.1.1, so all guests can be part of one subnet 192.168.100.0/24.

Given a guest 10.0.2.100 (on 1.1.1.2) is connecting to 1.1.1.1, OpenVPN is seeing 1.1.1.2 as the client's IP (as expected, guest's outbound traffic not within same host will go through NAT'ed interface, so everything is working as designed). But I want a script on VPN server that runs during the connection to see 10.0.2.100.

I added an IP route on 10.0.2.100 to send connection traffic via 10.0.2.1/1.1.1.2 (allowing ip_forward on 10.0.2.1/1.1.1.2). The traffic doesn't seem to get past 10.0.2.1/1.1.1.2.

Also another approach I'm thinking is to let traffic through NAT'ed interface, but modify source IP when it leaves 1.1.1.2 - but am quite new to networking/firewall/virtualisation, so getting nowhere.

Last edited by pranix; 08-23-2013 at 06:43 PM.
 
  


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
Need to ping Guest hostonly adapter from Host bala150985 Linux - Virtualization and Cloud 2 11-24-2011 11:38 AM
network configuration with Virtualbox 3.2.4 tonyymf Linux - Newbie 2 06-09-2010 08:08 PM
Need network drivers of VIrtualbox mandrakeBren Linux - Newbie 1 08-08-2009 02:56 AM
VirtualBox Bridged Network help bourne Linux - Software 4 07-21-2009 05:06 PM
Network Bridging With VirtualBox Woodsman Slackware 5 04-21-2008 03:06 PM

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

All times are GMT -5. The time now is 06:35 PM.

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