Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
[i][b]dzień dobry[/b][/i]
usiłuje zrobić/postawić serwer proxy i chce żeby był transparentny
[b]/etc/squid/squid.conf [/b]
acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 563 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews 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 acl our_networks src 10.0.0.0/16 http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access allow CONNECT !SSL_ports http_access allow our_networks http_access deny all http_port 3128 transparent cache_mem 2048 MB logfile_rotate 4 maximum_object_size_in_memory 256 KB memory_replacement_policy heap GDSF cache_replacement_policy heap LFUDA cache_dir aufs /mnt/sdb1 2000 16 256 minimum_object_size 0 KB maximum_object_size 500 MB cache_swap_low 90 cache_swap_high 95 access_log /var/log/squid/access.log squid cache_log /var/log/squid/cache.log cache_store_log /var/log/squid/store.log client_netmask 255.255.0.0 request_header_max_size 1 MB request_body_max_size 512 MB half_closed_clients off shutdown_lifetime 10 second cache_effective_user proxy cache_effective_group proxy error_directory /var/log/squid/errors/Polish dns_defnames on dns_nameservers 194.204.159.1 8.8.8.8 ipcache_size 10240 ipcache_low 90 fqdncache_size 8192 memory_pools on memory_pools_limit 100 MB refresh_pattern -i \.(gif|tif|tiff|bmp|jpg|jpeg|png|ico) 1440 50% 10080 refresh_pattern -i \.(wav|mp3|mp2|wmp|mid) 10080 50% 20160 refresh_pattern -i \.(txt|pdf|doc|xls|docx|odf|ppt|pptx) 4320 50% 10080 refresh_pattern -i \.(css|html|htm) 2880 50% 43200 refresh_pattern -i \.(flv|swf|mp4|wmv|) 10080 70% 43200
[b]/etc/init.d/firewall[/b]
tutaj daje tylko żeby wszystko przechodziło (jak ruszy mi proxy transparentny zacznę konfigurować iptables )
iptables -F iptables -X iptables -t nat -X iptables -t nat -F iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -t nat -A PREROUTING -i eth0 -p tcp -–dport 80 -j REDIRECT –-to-port 3128
[b]i po restarcie firewall otrzymuje komunikat: [/b]
/etc/init.d/firewall restart
iptables v1.4.8: option `-p' requires an argument
Try `iptables -h' or 'iptables --help' for more information.[/quote]
możecie mi pomóc ?
to be or not to be
Offline
przekierowanie to nie na squiidzie tylko na firewallu
http://www.roz6.woiz.polsl.pl/~jarkarc/index.php?id=transparentsquid
Offline
dodam że komputery w sieci maja ustawiona bramę 10.0.0.60 i do sieci dodałem nowy PC z jedną kartą sieciowa eth0 (gdzie zainstalowałem serwer proxy i dałem adres 10.0.0.60 )
Offline
Time (s) | Query |
---|---|
0.00013 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00106 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.145.58.158' WHERE u.id=1 |
0.00065 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.58.158', 1732858877) |
0.00067 | SELECT * FROM punbb_online WHERE logged<1732858577 |
0.00071 | DELETE FROM punbb_online WHERE ident='3.142.133.210' |
0.00093 | SELECT topic_id FROM punbb_posts WHERE id=187502 |
0.00103 | SELECT id FROM punbb_posts WHERE topic_id=20210 ORDER BY posted |
0.00099 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=20210 AND t.moved_to IS NULL |
0.00016 | SELECT search_for, replace_with FROM punbb_censoring |
0.00095 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=20210 ORDER BY p.id LIMIT 0,25 |
0.00096 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=20210 |
Total query time: 0.00828 s |