Marco,
On Sat, Jun 01, 2013 at 02:07:39PM +0000, Morning Star wrote: > thanks Nuyt for the fast response. > > i am following your guide. i created ppp0 connection on the host OS. i > can't see a ppp0 drop down list on the vbox setting when i tried to > choose bridged mode. based on your suggestion, i should try with NAT > mode. This is to be expected. It's not possible to bridge a ppp connection in gnu/linux or windows. > > let's say i want to forward all the data from / to the ppp0 interface > (it's IP in this case : 10.12.12.12) to / from the guest ip address > (in this case: 192.168.1.7). also, i have vboxnet0 interface > (host-only connection) on the host OS with IP: 192.168.1.5. on the > guest OS, i also have a NAT network connection with IP: 10.0.0.2 > > how can i make this connection work? i'm new with all the routing or > NAT. please guide me more. > As far as I know, you should simply be good to go through your guest's NAT connection. Since you're asking what to do, I assume this didn't work for you for some reason. In that case, what you want to do is to use the iptables program on your host. Typing: man iptables will give you the available options for iptables. I seem to recall there is also an iptables how-to in the linux howtos collection. There are as well various other unofficial how-tos on the web explaining how to do various things using iptables. Briefly, as root, you need to type the following on your host: echo 1 > /proc/sys/net/ipv4/ip_forward iptables -A FORWARD -i vboxnet0 -o ppp0 -j ACCEPT iptables -A FORWARD -i ppp0 -o vboxnet0 -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE This should be on four lines, so make sure it doesn't wrap. This doesn't last across reboots, so you'll want to put this in a boot script such as /etc/rc.local or some such. If you install one of any number of firewall packages on your host, nat should be taken care of by such a package. HTH. Greg -- web site: http://www.gregn.net gpg public key: http://www.gregn.net/pubkey.asc skype: gregn1 (authorization required, add me to your contacts list first) -- Free domains: http://www.eu.org/ or mail dns-mana...@eu.org ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ VBox-users-community mailing list VBox-users-community@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vbox-users-community _______________________________________________ Unsubscribe: mailto:vbox-users-community-requ...@lists.sourceforge.net?subject=unsubscribe