hi guys,
I'm new here and I need help for a problem with virtualbox. I mean I created a virtual server with 2 ethernet, one of these is configurated as nat (eth0) and the other one as internal network with ip 192.168.0.1. the rest, the virtual clients, have 192.168.0.2 and 192.168.0.3's ip. In virtual server eth0 goes to internet, while the clients no. I'd like the clients go to internet too, using the virtual server. There is someone that can help me, please.thank you
virtual server with 2 ethernet and 2 client
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
You don't specify which OS you run in the VM, so we can't help you with specific instructions. The general idea is to use some kind of Internet Connection Sharing. Windows has this build in, other systems need special routing programs to do that.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
richardsith
- Posts: 3
- Joined: 8. Jan 2009, 23:08
ok sorry, I've forgotten to specify them. I'm using Ubuntu as Virtual Server and as Clients. I've already edited /etc/sysctl.conf and put 1 for the ip forwarding and used the rule
> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
but nothing.
To go to internet I pass through my router netgear for the ADSL connection.
thank you
> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
but nothing.
To go to internet I pass through my router netgear for the ADSL connection.
thank you
-
richardsith
- Posts: 3
- Joined: 8. Jan 2009, 23:08