Showing posts from 2013Show all

apt-get install vsftpd /etc# vim vsftpd.conf ​​ listen=YES anonymous_enable=NO local_enable=YES write_enable=YES anon_upload_enable=NO anon_mkdir_write_enable=NO dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_…

Question: 1. how to install squint? 2. how to restart squint? 3. how to set schedule timer for update at squint? 4. how can we create user for squint? Solution: 1. Squint Installation: root@proxy:~# wget www.ledge.co.za/software/…

1 .apt-get update     apt-get upgrade 2. wget http://prdownloads.sourceforge.net/webadmin/webmin_1.590_all.deb 3. dpkg --install webmin_1.590_all.deb ############# http://webmin.com/deb.html ################# webmin password chan…

1: apt-get install isc-dhcp-server 2. vim /etc/dhcp/dhcpd.conf Edit these two lines: option domain-name "bol-online.com"; option domain-name-servers 202.84.32.22, 202.84.32.23;            [ DNS ] And also these three li…

1.       Download actual version of squint and extract it: http://www.ledge.co.za/software/squint/ wget www.ledge.co.za/software/squint/squint-0.3.18.tar.gz 2.       tar – zxvf squint-0.3.18.tar.gz         3.        cd squint-0.3…

To setup authentication, first we need to download the package apache2 (Debian). First, we need to create a file that would contain the username and passwords of users who are allowed access. Step 1: #apt-get install apache2 Ste…

The following lines have been taken from the file squid.conf. Each day can be represented by an alphabet. Moreover,browsing time can be limited using h1:m1 – h2:m2 parameters, where h1:m1 > h2:m2. #acl aclname time [day-abbrev…

Blocking Specific MAC: acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 acl bad_MAC arp 192.168.200.100/32 acl our_network src 192.168.200.0/24 http_access deny bad_MAC http_access allow our_network http_access den…

Step 1: We could write down the IPs one by one separated with ‘spaces’. Or we could create a file (in this case /etc/squid/invalid_ip_file ) containing the IPs. 192.168.200.100 192.168.200.101 192.168.200.102 Step 2: vim /etc/s…

Step 1 : Create a folder  /etc/squid/bad_IP and put the IP: Step 2: vim /etc/squid/squid.conf acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 acl bad_IP src 192.168.200.100/32    ### Add this Line acl our_networ…

We would create a file /etc/squid/sitelist and add all to be blocked websites in the file. Below is a sample content of this file:      .bad_site.com \.hacker.$ \.mp3$                   #   \keyword? I…

This task can be done using the url_regex, srcdomain and dstdomain. url_regex checks the url for matching characters. acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8             acl our_network src 192.168.200.0/…

#apt-get install squid Minimum Configuration:                    edit      http_port 8080   acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 add      acl our_network src 192.168.200.0/24   In the part “ # Recommen…

1. apt-get install gcc g++ cpp libgmp3-dev zip file tnef make patch 2. apt-get install clamav-base clamav-daemon 3. freshclam -v For Spamassassin 4. apt-get install spamassassin    [ If show spamassassin Mail Filter Demon : D…

Sometimes we may face problem with our webmail when the spam mails generated from it changing the from ID and from server itself (127.0.0.1). In that case we may enforce a authentication to access our webmail. Lets see how we can…

I used Debian 6.0.0 OS. Step: 1 At first we need apache. apt-get install apache2 Step: 2 Download openwebmail tar from internet. #wget http://www.openwebmail.org/openwebmail/download/release/openwebmail-2.53.tar.gz Step: 3 tar -…

Mail Box: /var/mail : echo> "mail_ID"

1. Defferred mails delete:   postsuper -d ALL deferred   2.   Delete all queued messages from or to the domain called fackspamdomain.com : ./ postfix-delete.pl fackspamdomain.com   3. Delete all queued messages that contai…

By default postfix SMTP works on 25 port.   You can check this by following command with the output below: #netstat -nat tcp        0      0 0.0.0.0:25             0.0.0.0:*               LISTEN    Here we will change the port …

Sometimes we get some undelivered mails from our users. It shows:   " cannot update mailbox /var/mail/xxxx. error writing message: File too large ". Step 1. Just put a line in postfix main.cf file. # vim /etc/postf…

At first install the following packages. Step 1: apt-get install libtimedate-perl libnet-netmask-perl libberkeleydb-perl   Step 2: apt-get install pop-before-smtp   Step 3: vim /etc/pop-before-smtp/pop-before-smtp.conf ( unh…