Re: [load balancing] redirection

From: Sherwin T <sherwintIZZATgmail.com>
Date: Fri Apr 01 2005 - 21:42:32 EST

Hi Adilson,

This was already tried but no success. Do I need to put a filter on
the squid proxy for a redirection to 8080 such like this?

# /sbin/ipchains -A input -s 0.0.0.0/0 -d 0.0.0.0/0 80 -p tcp -i eth0
-j REDIRECT 8080

pls advise.

Thanks,
sherwin

On Mar 31, 2005 5:40 AM, Adilson Lemos <adilsonl@corp.globo.com> wrote:
> As you are using port 1 as client, try to put filter 100 and 101 on this
> port and remove the filter 110 of this port because the filter is disable,
> though.
>
> Adilson Lemos.
>
> -----Original Message-----
> From: owner-lb-l@vegan.net [mailto:owner-lb-l@vegan.net] On Behalf Of
> Sherwin T
> Sent: Wednesday, March 30, 2005 1:34 AM
> To: lb-l@vegan.net
> Subject: [load balancing] redirection
>
> Hi!
>
> I am trying to set up the AD3 web switch so that users connected into
> it will redirect to our squid proxy but when I'm trying to grep the
> test IP that I am using
> no logs appear.
>
> here is my config:
>
> >> Server Load Balancing Information# dump
> Real server state:
> 1:proxy1, 00:02:55:8c:77:0d, vlan 1, port 8, health 3, up
> 2:proxy2, 00:02:55:8c:74:8d, vlan 1, port 8, health 3, up
>
> Virtual server state:
>
> Redirect filter state:
> 100: dport 8080, rport 8080, group 1, health icmp, backup none
> url parsing: enabled
> real servers:
> 1: proxy1, backup none, 1 ms, up
> 2: proxy2, backup none, 0 ms, up
> 101: dport http, rport 8080, group 1, health icmp, backup none
> url parsing: enabled
> real servers:
> 1: proxy1, backup none, 1 ms, up
> 2: proxy2, backup none, 0 ms, up
>
> Port state:
> 1: xxx.xxx.xxx.1, proxy, client, server
> filt enabled, filters: 110
> 2: xxx.xxx.xxx.xx2, proxy
> filt disabled, filters: 100 101 224
> 3: xxx.xxx.xxx.xx3, proxy
> filt disabled, filters: empty
>
> ----------------------------------------
> //c/ip/if 8
> ena
> addr 211.24.11.50
> /c/ip/gw 1
> ena
> addr 211.24.11.1
> /c/ip/dns
> prima
> secon
> dname
> /c/slb
> on
> /c/slb/adv
> direct ena
> mnet 211.24.11.51
> mmask 255.255.255.0
> /c/slb/real 1
> ena
> rip 211.24.11.66
> weight 2
> name "proxy1"
> /c/slb/real 2
> ena
> rip 211.24.11.65
> name "proxy2"
> /c/slb/group 1
> metric roundrobin
> health icmp
> add 1
> add 2
> /c/slb/group 2
> metric hash
> health http
> /c/slb/port 1
> client ena
> server ena
> proxy ena
> pip xxx.xxx.xxx.xx1
> /c/slb/port 2
> proxy ena
> pip xxx.xxx.xxx.xx2
> /c/slb/port 3
> proxy ena
> pip xxx.xxx.xxx.xx3
> /c/slb/filt 1
> ena
> action allow
> /c/slb/filt 100
> ena
> action redir
> proto tcp
> dport 8080
> group 1
> rport 8080
> /c/slb/filt 100/adv
> tos 1
> log ena
> urlp ena
> /c/slb/filt 101
> ena
> action redir
> proto tcp
> dport http
> group 1
> rport 8080
> /c/slb/filt 101/adv
> log ena
> urlp ena
> option enabled
> /c/slb/filt 110
> dis
> action redir
> proto tcp
> sport http
> dport http
> group 1
> rport 8080
> /c/slb/filt 110/adv
> log ena
> ack ena
> /c/slb/filt 224
> ena
> action allow
> /c/slb/port 1
> filt ena
> add 100
> add 101
> add 110
> add 224
> /c/slb/port 2
> filt dis
> add 100
> add 101
> add 224
> /c/slb/port 8
> filt ena
> add 100
> add 224
> /
> script end /**** DO NOT EDIT THIS LINE!
>
> BTW, I'm using port 1 attached with 1 computer for testing purposes.
>
> Thanks,
> ____________________
> The Load Balancing Mailing List
> Unsubscribe: mailto:majordomo@vegan.net?body=unsubscribe%20lb-l
> Archive: http://vegan.net/lb/archive
> LBDigest: http://lbdigest.com
> MRTG with SLB: http://vegan.net/MRTG
> Hosted by: http://www.tokkisystems.com
>
> ____________________
> The Load Balancing Mailing List
> Unsubscribe: mailto:majordomo@vegan.net?body=unsubscribe%20lb-l
> Archive: http://vegan.net/lb/archive
> LBDigest: http://lbdigest.com
> MRTG with SLB: http://vegan.net/MRTG
> Hosted by: http://www.tokkisystems.com
>
>
____________________
The Load Balancing Mailing List
Unsubscribe: mailto:majordomo@vegan.net?body=unsubscribe%20lb-l
Archive: http://vegan.net/lb/archive
LBDigest: http://lbdigest.com
MRTG with SLB: http://vegan.net/MRTG
Hosted by: http://www.tokkisystems.com
Received on Fri Apr 1 22:48:20 2005

This archive was generated by hypermail 2.1.8 : Fri Apr 01 2005 - 23:12:27 EST