On Thu, Oct 24, 2002 at 12:08:20PM +0200, Romeo Benzoni wrote:
> hi
>
> >>setup of client and realserver should be obvious.
> >>
> >>on the director the commands (for telnet) would be:
> >>
> >># ipvsadm -A -t 192.168.0.2:23 -s rr
> >># ipvsadm -a -t 192.168.0.2:23 -r 172.16.0.2 -m
> >># echo "1" >/proc/sys/net/ipv4/ip_forward
> >
> >
> >I think that you also need to add an iptables rule so that return
> >packets from the realservers are demasqueraded.
> >
> >iptables -t nat -A POSTROUTING -j MASQUERADE -s 172.16.0.2/24
> >
>
> as of 2.4 you don't need that
> for 2.2 I don't know.
Ok that makes sense. I am almost certain you need it for 2.2.
Using ipchains it would be:
ipchains -A forward -j MASQ -s 172.16.0.2/24
--
Horms
|