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:
How to Open and Extract .DAA Image FilesDAA stands for Direct Access Archive is PowerISO proprietary and private disk image format which supports compression, password protection, and split … Read More
Howto Create .ISO images from CD or DVD in Linux In Linux computer, we have a simple tool to create CD or DVD .ISO file. This is very helpfull to backup your CD and DVD into ISO images: T… Read More
How to Create and Extract RAR Files in LinuxI've been sharing mp3s with my close friends for years. We share mp3 files within our same interest in music. As I'm now a total Linux desktop user (I… Read More
How to install PHP6 in ubuntu / Debian LinuxThe full stable version of PHP6 is not yet released. But pre-built package is available. Early birds can start now. You can install a development snap… Read More
How to Install rar and unrar programs in Linux or UnixHowever, I am a linux supporter and I don't want to make you upset while bumping into this blog and didn't really get what you need. So, here is how t… Read More
0 comments:
Post a Comment