Tuesday, August 16, 2011

How to install squid on CentOS 5.5

Install Squid on CentOS / RHEL 5

$ yum install squid

Prompt:

Install ( x ) Package(s)

Total download size: ( x ) M

Is this ok [y/N]: Answer y then hit Enter Key

Installing: squid ######################### [1/1]

Installed: squid.i386 2.5.STABLE14

Complete!
Squid Basic Configuration

Squid configuration file located at /etc/squid/squid.conf. Open file using a text editor:

$ locate squid.conf
/etc/squid/squid.conf
$ pico /etc/squid/squid.conf

NEED TO CHANGE:

line 53 and 54
looks like this

#Default:
#http_port 3128

change to

#Default:
http_port 3128

//* or change 3128 to any unused port refer here to check commonly used port http://www.mysql-apache-php.com/ports.htm *//

line 1876

#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks

change to
acl our_networks src 192.168.1.0/24 192.168.2.0/24
http_access allow our_networks


Line 1880
#http_access allow localhost
#http_access deny all

to

http_access allow localhost
http_access allow [ your ip range here without the brackets ]
http_access deny all


$ chkconfig squid on
$ /etc/init.d/squid start


Output:
init_cache_dir /var/spool/squid… Starting squid: . [ OK ]

Verify port 3128 is open:

$ netstat -tulpn | grep 3128

Output:

tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 20653/(squid)

Open TCP port 3128

Finally make sure iptables is allowing to access squid proxy server. Just open /etc/sysconfig/iptables file:

$ pico /etc/sysconfig/iptables(config)

Append configuration:

-A RH-Firewall-1-INPUT -m state –state NEW,ESTABLISHED,RELATED -m tcp -p tcp –dport 3128 -j ACCEPT

Restart iptables based firewall:

$ /etc/init.d/iptables restart

Output:

Flushing firewall rules: [ OK ]

Setting chains to policy ACCEPT: filter [ OK ]

Unloading iptables modules: [ OK ]

Applying iptables firewall rules: [ OK ]

Loading additional iptables modules: ip_conntrack_netbios_n [ OK ]

note if you have CSF firewall:

$ pico /etc/csf/csf.conf

# Allow incoming TCP ports
TCP_IN = “20,21,22,25,53,80,110,143,443,465,953,993,995,2077,2078,2082,2083,2087,[your squid proxy port here without the bracket]”
# Allow outgoing TCP ports
TCP_OUT = “20,21,22,25,37,43,53,80,110,113,443,587,873,953,2087,2089,2703,[your squid proxy port here without the bracket]”
# Allow incoming UDP ports
UDP_IN = “20,21,53,953?
# Allow outgoing UDP ports
# To allow outgoing traceroute add 33434:33523 to this list
UDP_OUT = “20,21,53,113,123,873,953,6277?

//Now restart the firewall!
$ csf -r

Note: if you install on Centos 5.3 you will have to open your port and save settings

/sbin/iptables -I RH-Firewall-1-INPUT 1 -p tcp --dport [PORT] -j ACCEPT

/etc/init.d/iptables save

Thursday, August 11, 2011

Adobe Flash CS5,Adobe Photo Shope ,Illustrator, After Effect and Dream Viwer Keys and Serial Numbers



1302-1449-8604-6106-9463-6260 1302-1078-1879-9146-8907-5374
1302-1519-3643-2900-6750-5666 1302-1448-3032-7894-8268-4989




1330-1591-0512-8620-6165-9751                        1330-1610-5632-3862-8372-8763
1330-1078-1802-9115-0418-6411                        1330-1839-4491-5397-8087-5433
1330-1520-8918-6499-6052-3218                       1330-1653-8903-1836-3677-5917                   1330-1153-1612-4896-8932-8432                       1325-1118-5864-4422-1094-1166                     1325-1558-5864-4422-1094-1126                       1325-1958-5864-4422-1094-1178             1325-1085-0645-5332-7061-9771
                       1330-1927-7762-6383-0202-0414

here the number started form 1325 are the master key of cs5



1034-1006-5290-0019-3090-0219 


1325-1243-2842-5475-9398-1623                        1325-1041-2027-0987-8293-5644
1325-1340-7176-1506-1967-7195
                        1023-1631-3275-3276-0087-5426


 1192-1927-7762-6383-0202-0474