Benedikt Böhm wrote:
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)
  

I tried it, but no success.
now I changed the ip back to a normal ip from "loc" zone 
(loc is 192.168.2.0/24 with interface 192.168.2.1, vserver alias eth1:0 192.168.2.50)
can ping the loc interface but not to the internet

Could it have something to do with this ? 
http://lists.shorewall.net/pipermail/shorewall-users/2002-December/003900.html

thanx

  Bast



_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to