Делаю все как по мануалам из инета и манов из самой фри. Но! на squid ничего не идет (
может я что то упустил, посмотрите плз.
Код: Выделить всё
uname -a
FreeBSD xxx.ru 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Wed Jul 28 18:26:18 UTC 2010
Код: Выделить всё
# ================ Enable pf & altq ==============
device pf
device pflog
device pfsync
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_CDNR
options ALTQ_PRIQ
Код: Выделить всё
cat /usr/local/etc/squid/squid.conf | grep -v ^# | grep -v ^$
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl localnet src 192.168.0.0/24 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 192.168.0.1:3128 transparent
hierarchy_stoplist cgi-bin ?
coredump_dir /var/squid/cache
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
visible_hostname = squid.internal
Код: Выделить всё
cat /etc/pf.conf | grep -v ^# | grep -v ^$
ext_if="rl0"
int_if="re0"
vpn_if="ng0" # vpn interface always ng0 - NetGraph interface
mcast_ll="224.0.0.0/24"
mcast_as="233.32.240.0/24"
mcast_ssm="239.255.255.0/24"
ftp_proxy="127.0.0.1" # ftp proxy IP
ftp_proxyport="8021" # ftp proxy port
tcp_serv="ssh, www, smtp, smtps, imap, imaps, ftp, ftp-data"
set optimization aggressive
set block-policy drop
set skip on lo0
set skip on $int_if
scrub in all fragment reassemble
scrub out all random-id max-mss 1460
nat on $ext_if proto { tcp udp icmp } from $int_if:network to any -> ($ext_if)
nat on $vpn_if proto { tcp udp icmp } from $int_if:network to any -> ($vpn_if)
nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
rdr pass on $int_if proto tcp from any to any port ftp -> $ftp_proxy port $ftp_proxyport
rdr on $int_if proto tcp from $int_if:network to any port 80 -> 192.168.0.1 port 3128
pass quick on { $int_if $ext_if } proto { igmp udp } to { $mcast_ll $mcast_as $mcast_ssm } allow-opts modulate state
pass quick on { $ext_if $vpn_if } proto { tcp udp } from any to { $ext_if $vpn_if } port { $tcp_serv }
pass in quick on {$ext_if $vpn_if} proto tcp from any to any port 21 flags S/SA synproxy state
anchor "ftp-proxy/*"
block in all
pass out all keep state