About this list Date view Thread view Subject view Author view Attachment view

From: Benedikt Böhm (bb_at_xnull.de)
Date: Thu 23 Dec 2004 - 18:03:45 GMT


On Thursday 23 December 2004 18:27, Bastian Boday wrote:
> from the vserver I can connect to eth0 but not to the internet. From my
> local net everything works fine.

You need to do SNAT in order to get your vservers connecting to the internet
when you're using different IPs on the root dev and the alias...

it looks like this:
/sbin/iptables -t nat -A POSTROUTING -s 192.168.50.0/255.255.255.0 -d !
192.168.50.0/255.255.255.0 -j SNAT --to-source 192.168.2.x (this should be
the ip of eth1)

Bene

-- 
Benedikt Boehm          www.croup.de
bb_at_xnull.de       GPG-ID: 0x32585A3D

"If it moves, compile it." -- Gentoo


_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 23 Dec 2004 - 18:04:13 GMT by hypermail 2.1.3