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

From: Bastian Boday (bast_at_bast.li)
Date: Thu 23 Dec 2004 - 19:48:19 GMT


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
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 - 19:50:35 GMT by hypermail 2.1.3