How to open a port in squid proxy server
By default the following TCP port numbers are opened in squid proxy server.
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
If we need to allow additional ports, just specify the sam in the squid configuration file.
For example, if we need to enable webmail ports 2095 and 2096, add the below lines in the squid configuration file '/etc/squid/squid.conf'
acl Safe_ports port 2095
acl Safe_ports port 2096
Don't forget to restart squid service after the modification.
#/etc/init.d/squid restart