W innej kategorii wypłynął temat anonimowego, niewykrywalnego proxy. Wrzucałem tam konfig Squida, który w większości to zadanie wypełnia, ale jako, że nie każdy musi się we wszystkie tematy zagłębiać, postanowiłem wrzucić to do osobnego, czytelniejszego tematu.
Zawartość przykładowego pliku squid.conf. Przy takiej konfiguracji Squid działa jako anonimizer, jest w 99,9% przypadków niewykrywalny jako proxy (jest widoczny jako FireFox 3.5.3). Działa nie tylko dla połączeń http. ale dla wszelkich niezbędnych (i paru mniej potrzebnych) usług. Nie cache'uje, jest bardzo lekki dla serwera. Dostęp tylko dla wpisanych w konfiguracji adresów IP (bez loginu/hasła). Działa na porcie 3128.
acl all src all acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 # https acl SSL_ports port 563 # snews acl SSL_ports port 873 # rsync 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 Safe_ports port 631 # cups acl Safe_ports port 873 # rsync acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT acl cli_aaa_aaa_aaa_aaa src aaa.aaa.aaa.aaa # IP numer 1 acl cli_bbb_bbb_bbb_bbb src bbb.bbb.bbb.bbb # IP numer 2 http_access allow cli_aaa_aaa_aaa_aaa http_access allow cli_bbb_bbb_bbb_bbb http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost http_access allow localnet http_access deny All icp_access allow localnet icp_access deny all http_port 3128 access_log /var/log/squid/access.log refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880 refresh_pattern . 0 20% 4320 acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9] upgrade_http0.9 deny shoutcast acl apache rep_header Server ^Apache acl Zzzzzz src 0.0.0.0-255.255.255.254/255.255.255.255 broken_vary_encoding allow apache extension_methods REPORT MERGE MKACTIVITY CHECKOUT forwarded_for off header_access Allow allow all header_access Authorization allow all header_access Cache-Control allow all header_access Content-Encoding allow all header_access Content-Length allow all header_access Content-Type allow all header_access Expires allow all header_access Host allow all header_access If-Modified-Since allow all header_access Last-Modified allow all header_access Location allow all header_access Pragma allow all header_access Accept allow all header_access Accept-Encoding allow all header_access Accept-Language allow all header_access Content-Language allow all header_access Mime-Version allow all header_access Title allow all header_access Connection allow all header_access Proxy-Connection allow all header_access Cookie allow all header_access Set-Cookie allow all header_access All deny all header_replace User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 hosts_file /etc/hosts coredump_dir /var/spool/squid deny_info http://ccccccc.cc Zzzzzz
Legenda:
aaa.aaa.aaa.aaa = prawdziwy zewnętrzny adres IP pierwszego kompa z dostępem do tego serwera proxy;
bbb.bbb.bbb.bbb = prawdziwy zewnętrzny adres IP drugiego kompa z dostępem do tego serwera proxy;
ccccccc.cc = domena (np. cokolwiek.pl);
Zzzzzz = nazwa acl-a (dowolne słowo);
A tutaj obrazki pokazujące, jak się spisuje Squid z taką konfiguracją na VPSie w Stanach (wejście na stronę przez skonfigurowaną dla tego proxy przeglądarkę FireFox 3.5.5, łącze: Neostrada TP):
(kliknięcie otwiera obrazek w większym rozmiarze)














