Hi!

I wanted to add to this topic that it also possible to make world see your caches' src ip aadresses separately adding couple of nat rules this doest conflict with other things in your setup

nat on $ext_if inet proto tcp from 192.168.3.105 to any port 80 -> y.y.y.y
nat on $ext_if inet proto tcp from 192.168.3.106 to any port 80 -> x.x.x.x


Imre

Monah Baki wrote:
Hi all,

I have a soekris box and I configured sis0 with 2 public IP addresses (one
of them an alias)
I have 2 squid servers internally with private IP's (192.168.3.105 &
192.168.3.106).

My pf.conf is

ext_if="sis0"

rdr pass on $ext_if proto tcp to port 8080 -> 192.168.3.105 port 8080
rdr pass on x.x.x.x proto tcp to port 8080 -> 192.168.3.106 port 8080

From outside my network if I enter in my browser "proxy setting" x.x.x.x
8080 which is the alias, I get redirected to the proxy 192.168.3.105 not
the 106.
If I comment "rdr pass on $ext_if proto tcp to port 8080 -> 192.168.3.105
port 8080" then it works fine, my rdr rule works.


Thanks

BSD Networking, Microsoft Notworking

Reply via email to