Here I will show you how to block a port using squid proxy server and open this port for a selected user.
First you have to open squid configuration
file /etc/squid/squid.conf
# vi /etc/squid/squid.conf
Locate your Access Control (ACL) section in the file and add the following lines:
acl block_port port 1234
http_access deny block_port
http_access allow all
If you just want to skip a particular IP (192.168.0.101) try as follows:
acl block_port port 1234
acl no_block_port_ip src 192.168.1.5
http_access deny block_port !no_block_port_ip
http_access allow all
Close and save the file.
Restart Your squid proxy server:
# /etc/init.d/squid restart
How to Block a Port in Squid Proxy , Ubuntu Linux
Related Posts:
Convert PDF to TXT in Ubuntu LinuxUse pdftotext utility can be used to convert Portable Document Format (PDF) files to plain text. $ sudo apt-get install poppler-utils usage: $ pdf… Read More
5 Useful Tools to Access Linux Partition from WindowsIf you currently have Windows OS running and you need some files for your work which you have stored on the Linux installation, you no longer have to … Read More
Best Audio Tools for Ubuntu LinuxPlay and Manage Music in Linux Rhythmbox is a music software originally inspired by Apple's iTunes. It is based on the powerful GStreamer media framew… Read More
Download Fedora Linux 15 2011Fedora Linux 15 2011 – If you are present fed up and halt not need to deal eclipse viruses professional are 2 solutions that exercise the system from … Read More
Mirror Your Remote Server Graphically with Grsync in Ubuntu Linux rsync is an open source utility that provides fast incremental file transfer. rsync uses the "rsync algorithm" which provides a very fast method syn… Read More
0 comments:
Post a Comment