How to create your own squid proxy server on CentOS

How to create your own squid proxy server on CentOS

Squid is a proxy server for caching and filtering web content .
Squid proxy service will cache the requested web-content and re-using it for the further request of the same content.

You can also hide your real IP with squid and access content usually forbidden for your country or IP address.

Requirement is that you have already installed your CentOS server.

1.) Connect with putty to install and configure squid

yum update
yum install squid
cd /etc/squid3

Make backup of default configuration just in case…

cp squid.conf squid.conf.bak

Remove default configuration

rm -rf squid.conf

Create and open new configuration in nano (you can use any other editor)

nano squid.conf

Paste this 2 lines of code into your new configuration file

http_access allow all
http_port 20000

Save configuration

6.) Start squid service

service squid start

7.) To check your connection use telnet IP on port defined in your squid configuration.
In this case 20000

telnet IP 20000

Your proxy server is ready if your connection was successiful.
Setup your OS to use this proxy server and go to http://whatsmyip.org to check your new IP address.
Don’t forget to open port 20000 on your server firewall.

Check this article to configure squid on Ubuntu:

http://netjunky.net/how-to-create-your-own-squid-proxy-server-with-azure/

 

Delete emails from Exim queue

A little reminder of how to delete emails from Exim queue if cPanel queue manager does not work.

cd /var/spool/exim
find input -type f -exec rm -rf {} \;
find msglog -type f -exec rm -rf {} \;
service exim restart

 

Enable linux root access on Microsoft Azure Cloud

How to enable linux root access on Microsoft Azure Cloud

1. Login via ssh using your sudo user on your Microsoft Azure linux server

2. Now login as root user

[[email protected] ~]# sudo su -

3. check if root access is set (LOCK means that root access is disabled)

[[email protected] ~]# grep root /etc/shadow

Result:
root:*LOCK*:14600::::::

4. enable root access  (as root user enter command passwd)

[[email protected] ~]# passwd

5. Now enter your password and root access is enabled.

You can check this by using command “grep root /etc/shadow”

That’s all folks

 

Delete exim queue

Delete exim queue sometimes is impossible task.
There are just to many emails and queue manager is to slow.

You can use this dirty trick:

cd /var/spool/exim
find input -type f -exec rm -rf {} \;
find msglog -type f -exec rm -rf {} \;
service exim restart

Warning
This will erase all your emails from queue.