LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: IPROUTE & NAT

To: "Joseph Mack" <mack@xxxxxxxxxxx>, <SYLVAIN.COUTANT@xxxxxxxxxxx>
Subject: Re: IPROUTE & NAT
Cc: "Receipt Notification Requested" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: "Ted Pavlic" <tpavlic@xxxxxxxxxxx>
Date: Tue, 8 Aug 2000 15:38:38 -0400
You'll need ipchains (or ipfwadm depending on how old things are) to
actually do the masquerading.

i.e.

/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.16.0/24 -d 0.0.0.0/0 -j MASQ

Where 192.168.16.0/24 would be your local network.

Be sure that forwarding is turned on on your router:

echo 1 >/proc/sys/net/ipv4/ip_forward

or...

sysctl -w net.ipv4.ip_forward = 1

And you'll be set... at least with the NAT. Then use the ipvsadm, route, and
ifconfig (like Joe said) to setup your LVS.

All the best --
Ted

----- Original Message -----
From: "Joseph Mack" <mack@xxxxxxxxxxx>
To: <SYLVAIN.COUTANT@xxxxxxxxxxx>
Cc: "Receipt Notification Requested" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, August 08, 2000 12:19 PM
Subject: Re: IPROUTE & NAT


> On Tue, 8 Aug 2000 SYLVAIN.COUTANT@xxxxxxxxxxx wrote:
>
> > Hello,
> >
> > I know it's not a specific LVS question but I have to set up an outgoing
> > adress mapping (NAT) for one of my servers through the firewall.
> >
> > I was told that iproute2 is the way to do it but there really no
>
> you just need ipvsadm, and the standard old route and ifconfig
>
> Joe
> --
> Joseph Mack mack@xxxxxxxxxxx
>
>
>
>



<Prev in Thread] Current Thread [Next in Thread>