gostaria de confirmar as regras se estão corretas na rede o micro 192.168.0.int tem um proxy analogx de porta 6588 e o teste que dejeso fazer é entrar no linux 192.168.0.l e sair para a maquina 192.168.0.receptor


iptable

$iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 6588 -j REDIRECT --to-port 3128

squid

# make sure you use rc.firewall
http_port 3128
icp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 16 MB
cache_dir diskd /var/spool/squid/cache 20 16 16
cache_store_log none
debug_options ALL,1
redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
half_closed_clients off
acl int src 192.168.0.int
acl laboratorio src 192.168.0.r1 192.168.0.r2 192.168.0.2 192.168.0.r3

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
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access allow laboratorio
icp_access allow laboratorio
miss_access allow laboratorio
proxy_auth_realm MandrakeSoft Squid proxy-caching web server
visible_hostname firewall.mandrakesoft.com
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
append_domain .mandrakesoft.com
err_html_text [email protected]
memory_pools off
deny_info ERR_CUSTOM_ACCESS_DENIED all


Max_mori