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

From: Liam Helmer (linuxlists_at_thevenue.org)
Date: Tue 21 Dec 2004 - 23:16:59 GMT


You must have another postrouting rule in there. You should flush your
tables and try again, or use -I POSTROUTING to put the new rule first.
These are very standard things that work well, and are unaffected by
linux-vserver.

Run iptables -L -n -t nat -v and you'll see all the rules that are in
there now.

Cheers,
Liam

On Tue, 2004-12-21 at 23:26 +0100, Vincenzo Agosto wrote:
> Then.... I add this iptables rules
> iptables -I INPUT -i ppp0 -m state --state established,related -j
> ACCEPT
> iptables -I OUTPUT -o ppp0 -s 192.168.1.250 -j ACCEPT
> iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.1.0/24 -d !
> 192.168.1.0/24 -j SNAT --to-source <MY IP>
> next enter in my vserver:
> <VSERVER> apt-get update
> 0% [Connecting to ftp2.it.debian.org (213.156.32.111)]
> 0% [Connecting to ftp2.it.debian.org (213.156.32.111)]

-- 
Liam Helmer <linuxlists_at_thevenue.org>

_______________________________________________ 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 Tue 21 Dec 2004 - 23:17:32 GMT by hypermail 2.1.3