Saturday, July 7, 2012

Squid Proxy Server


Squid Proxy Server

It's used to provide the internet connectivity to network connected system ny using single internet connection.
·         Package Required:- squid
·         Daemon name :--squid
·         Port Number:-- 3128
·         Path of config file:- /etc/squid/squid.conf

Key Point:--
1.    Install squid proxy
2.    on and start service by:- #service squid start
3.    Give two IPs one for internet and another for LAN

5 steps to secure your Linux server


5 steps to secure your Linux server

How would you ensure security of your production Linux Server? Should you can be happy with default configuration there in place or there’s are things which we must implement for enhancing security aspects? Of course, Yes. Here I’m writing 5 steps which I usually take to tighten security in Server. This doesn’t means these are Best thing you can do or You don’t need to do anything else. There are many ways and remember securing your Server is a never ending process, So keep an eye open and check your Server regularly.
Step 1. Disable direct root access. 
Login should be allowed using simple/wheel user and then from there you can switch to root or use sudo to execute commands under root privileges. Let’s disable direct root login:

How to change Date, Time and Time Zone in Linux

In Redhat based distro, here’s a quick solution to change your time zone to PST/PDT:

$ mv /etc/localtime /etc/localtime.Old && ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime
Other commands:

How To Break Root Password in Linux(Centos/RHEL 5)


How To Break Root Password

Case I:--

If Bootloader don't have password or we know bootloader password
Key Points:--
1.    Select Redhat linux title and press E to edit
2.    Press E to edit kernel line
3.    then type 1 after giving single space
4.    Below Editing
5.    kernel /vmlinuz-2.6.32-71.el6.x86_64 ro ....................crashkernel=auto rhgb quiet
6.    After Editing
7.    kernel /vmlinuz-2.6.32-71.el6.x86_64 ro......................crashkernel=auto rhgb quiet 1
8.    Then Enter and boot by B