Problem number1
* I cant seem to use squid in transparent mode. (It works if I set the client browser to 192.168.0.1 port 80.)
Problem number 2
* I can NOT access https sites using squid (accessed via client pc and browser set to use the proxy server: 192.168.0.1:80, i tried 80 so as to see if the redirection from 80 to 3128 works. And worked it did.) but HTTP, I can browse and it works
----Details.----
Setup.
1 PC (gateway)----------------1 switch(4ports) ------1 pc(client)
I have followed a lot of tutorials and i have also viewed threads about squid + pf + transparent proxy here at the forum. Here is what I did
- installed squid (checked transparent pf option)
- recompiled kernel to inlude (ALTQ all entries and device pf, pflog, pfsync)
- got the squid.conf http_access to 127.0.0.1:3128 transparent
- created /etc/pf.conf followed DutchDaemon's advice pf.conf
- i have also this on my /etc/rc.conf
I don't know where I got wrong... Is there something missing?
Regards,
* I cant seem to use squid in transparent mode. (It works if I set the client browser to 192.168.0.1 port 80.)
Problem number 2
* I can NOT access https sites using squid (accessed via client pc and browser set to use the proxy server: 192.168.0.1:80, i tried 80 so as to see if the redirection from 80 to 3128 works. And worked it did.) but HTTP, I can browse and it works
----Details.----
Setup.
1 PC (gateway)----------------1 switch(4ports) ------1 pc(client)
I have followed a lot of tutorials and i have also viewed threads about squid + pf + transparent proxy here at the forum. Here is what I did
- installed squid (checked transparent pf option)
- recompiled kernel to inlude (ALTQ all entries and device pf, pflog, pfsync)
- got the squid.conf http_access to 127.0.0.1:3128 transparent
- created /etc/pf.conf followed DutchDaemon's advice pf.conf
Code:
www="{80:83 1080 8080:8081 8088 11523}"
int_if="em1" #private
ext_if="em0" #public
#squid transparent
rdr on $int_if inet proto tcp from any to any port $www -> 127.0.0.1 port 3128
#### Squid Proxy
pass in on $int_if inet proto tcp from any to 127.0.0.1 port 3128 keep state
pass out on $ext_if inet proto tcp from any to any port $www keep state
- i have also this on my /etc/rc.conf
Code:
pf=enable="YES"
pf_rules="/etc/rc.conf"
squid_enable="YES"
gateway_enable="YES"
I don't know where I got wrong... Is there something missing?
Regards,