[squid-users] Allowing a port only to certain IP/host

Service MV service.mv at gmail.com
Mon Mar 9 14:43:14 UTC 2020


Hello everyone, I need to enable port 22 in squid but only to a certain
server (host.domain.com) in particular, so that the rest of the world
cannot be accessed via SSH.
I would like to know this is the right way to do it:

# SFTP policy
acl SSH_port port 22
acl SFTP_policy dst 1.2.3.4
http_access allow SFTP_policy SSH_port localnet
[...]
http_access deny !Safe_ports
[...]

I'd appreciate your comments.
Kind regards
Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20200309/9628fe54/attachment.html>


More information about the squid-users mailing list