From: Vincenzo Agosto (netstat_at_email.it)
Date: Tue 21 Dec 2004 - 23:47:18 GMT
Liam Helmer wrote:
> 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)]
Is ok!!
I'm flushing the nat rules, re-apply the above rules and now work fine...
tnk very much
Vincenzo
-- ················································· · .--. _ · · |o_o | Vincenzo / \ · · |:_/ | | () | · · // \ \ | \_/ · · (| | ) \ · · /'\_ _/`\ \ · · \___)=(___/ debian · ················································· _______________________________________________ Vserver mailing list Vserver_at_list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver