No need for that I think,

People are using 10.136.58.7:80 as the default proxy server 
i have setup a new proxy server this new blade server but the IP is
10.136.57.7:80

I would just like to transfer (REDIRECT) proxy request from 58.7:80 to 57.7:80

i know changing the IP easier but I have a web server running on that
58.7 and I can't change the server totally to the new one.


Anyway, I found this in the man pages:
-----------------------------------------------------------------------------------------------------------------------------------
REDIRECT
This target is only valid in the nat table, in the PREROUTING and
OUTPUT chains, and user-defined chains which are only called from
those chains. It alters the destination IP address to send the packet
to the machine itself (locally-generated packets are mapped to the
127.0.0.1 address). It takes one option:

--to-ports <port>[-<port>]
    This specifies a destination port or range or ports to use:
without this, the destination port is never altered. This is only
valid with if the rule also specifies -p tcp or -p udp).
-----------------------------------------------------------------------------------------------------------------------------------
Tried it but it didn't work, enable ip_forward also, althou I doubt it
would do anything since the packet is being redirected and not really
coming in (PREROUTING).

On 6/3/05, Mike Liguit <[EMAIL PROTECTED]> wrote:
> Hi Junix,
> 
> Can you be a bit more clear on what you really want to accomplish? I
> diagram, perhaps?
> 
> regards,
> Mike
> 
> On 6/4/05, Mike Liguit <[EMAIL PROTECTED]> wrote:
> > 10.136.58.7 and 10.136.57.7 is on a different subnet. It won't work.
> >
> > On 6/3/05, Junix Gaspar <[EMAIL PROTECTED]> wrote:
> > > > pre,
> > > >
> > > > iptables -t nat -A PREROUTING -i ethx -p tcp --dport 80 -j DNAT --to
> > > > yung.ip.mo.pre:80
> > > >
> > > > --
> > > > Glenn G Remot
> > >
> > > Di gumana eh. Ok here's the thing, I want to forward all proxy request
> > > to my server to the other server, coz we are trying out that new
> > > server without going to all computers nationwide to use the new IP of
> > > the new proxy server,
> > >
> > > 10.136.58.7:80   -----> 10.136.57.7:80
> > >
> > > usig iptables
> > >
> > > I know there is going to ba a performance lag but I still want to do it.
> > >
> > > Thanks
> > > _________________________________________________
> > > Philippine Linux Users' Group (PLUG) Mailing List
> > > [email protected] (#PLUG @ irc.free.net.ph)
> > > Read the Guidelines: http://linux.org.ph/lists
> > > Searchable Archives: http://archives.free.net.ph
> > >
> >
>
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to