Tuesday, September 11, 2012

Blocking videos with rep_mime_type video/x-flv

1 comments
We are going to block this file.The configuration file is : acl LOCALNETWORK src 192.168.0.0/24acl FORBIDDEN_DESTINATION dstdomain "/etc/squid/restrictdomains.txt"acl FORBIDDEN_VIDEO rep_mime_type video/x-flv http_access deny FORBIDDEN_DESTINATIONhttp_reply_access deny FORBIDDEN_VIDEOhttp_access allow LOCALNETWORKhttp_port 3128 The difference with our previous configuration are : acl FORBIDDEN_VIDEO rep_mime_type video/x-flv....
Read more...

Friday, September 7, 2012

Set squid proxy server upload limit

0 comments
                Set squid proxy server upload limit ?Add the following line in the squid.conf filerequest_body_max_size 200 KBThis will set the upload limit to 200 k...
Read more...

Block skype on squid proxy server

3 comments
acl numeric_IPs url_regex -i ^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+) acl Skype_UA browser ^skype^ acl Skype_Allowed_Users proxy_auth user1 user2 http_access deny numeric_IPS !Skype_Allowed_Users http_access deny Skype_UA !Skype_Allowed_Users http_access allow ntlm_users http_access deny ...
Read more...

Saturday, July 7, 2012

Set squid proxy server download limit

0 comments
Squid proxy server download limit | Maximum | Restrict download acl Group1 proxy_auth user1 user2 acl Group2 proxy_auth user3 user4 reply_body_max_size 20480 KB Group2 reply_body_max_size 10240 KB Group1 reply_body_max_size 5120 KB all For version squid-3.1 and higher , you can use IP based download limit acl Group1 src 10.5.0.1-10.5.0.10/32acl Group2 src 10.5.2.1-10.5.2.10/32 reply_body_max_size 20480 KB Group2 reply_body_max_size...
Read more...

Monday, June 4, 2012

Samba PDC domain controller on RedHat /Cent OS

1 comments
In this HowTo we use Samba as primary domain controller for centralized authentication of windows Clients We Will Configure Samba PDC Server With Domain name corvit.com and also creates some users and make these users to be able login for domain corvit.com from different machinesWe are using operating system for this howto is Centos 5.6 but this article will also work on other distributions like RedHat and Fedora etc…Samba PDC Server Name and ip...
Read more...

Monday, May 28, 2012

Citadel Groupware Install

0 comments
Base install of required programs.sudo apt-get install clamav clamav-milter spamassassin citadel-suite amavisd-newInstall and Start Spamassassinvim  /etc/default/spamassassin# Change to one to enable spamdENABLED=1sudo /etc/init.d/spamassassin startSpamassassin is listening on port 783.tcp        0      0 127.0.0.1:783          ...
Read more...

Sunday, May 27, 2012

HTTPS Traffic block in squid 2.6

3 comments
Here are steps to configure Transparent proxy in SquidSteps for configuring transparent proxy for HTTPS protocol at port 443 in SQUID 2.6(steps tested on squid 2.6 running on RHEL 5.0)Configuring transparent proxy on port 80 for use with HTTP protocol is simple but involves some extra configuration to use transparent proxy with HTTPS protocol. We need to configure this because if we block a website say www.facebook.com it cannot be...
Read more...

Friday, May 25, 2012

Linux Local Yum Installation / Configuration

0 comments
Step by Step: As there is dependencies issue in linux software installation. Yum is an application which resolves the dependencies issue. Let start to configure local yum. 1.       We required FTP server to configure yum locally or we can configure the same (local) server as FTP server. Following is the local server configuration. 2.       Start vsftpd service and anonymous access should...
Read more...

Saturday, May 19, 2012

Public Share on Samba Server

1 comments
Goal of this tutorial is to show you how to set up a public share on your Samba server that can be used by everyone on your network with all rights. This will enable everyone on a Windows machine to access this without a password.  Of course, this has security implications but it is a good way to get something working.  The next article will show you how to create a share for one user in which that one user is the only one who can...
Read more...

Thursday, May 17, 2012

MRTG on Linux

0 comments
The Multi Router Traffic Grapher is a network or resource monitoring tool used by System Administrators across the Globe. MRTG generates HTML pages containing PNG images, which provides a real time visual representation of network traffic and system resources. STEP 1: Install MRTG with required packages # yum install mrtg net-snmp net-snmp-utils -y STEP 2: Configure snmpd If you need to monitor localhost including...
Read more...

Tuesday, May 15, 2012

Configure or setup VNC server in linux rhel5 / centos5

0 comments
How to Configure a VNC server In linux? #VNC Server configuration# #yum -y install vnc* For using this we need to setup a password for the server. We can set it by the linux command vncpasswd. #Set the password# #vncpasswd #Restart the service# #service vncserver start To make VNC server we need to run the following command. While executing it. it will create some files. #Run the server command# #vncserver or #vncserver :13 The display number....
Read more...

Blocking video files with rep_mime_type video/x-flv

0 comments
There several type of video file formats. One of them is fllv : format used by streaming video service such as youtube, metacafe, etcWe are going to block thise file.The configuration file is :acl LOCALHOST src 127.0.0.1 acl LOCALNET_A src 192.168.0.0/24 acl FORBIDDEN_DESTINATION dstdomain "/etc/squid3/restricteddomains.txt" acl FORBIDDEN_VIDEO rep_mime_type video/x-flv http_access deny FORBIDDEN_DESTINATION http_reply_access deny FORBIDDEN_VIDEO http_access...
Read more...

How To Block/Deny Websites To Specific IP/Users/Time Using Squid Proxy

9 comments
Assume you already have a working squid installation. Requirements: Some websites will only be blocked during office hours (8am to 12pm and 1:30pm to 6pm). Websites will be only blocked for specific IPs. Deny websites using keywords. Edit /etc/squid/squid.conf # vi /etc/squid/squid.conf Find the line "INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS" and add the following: acl morning_hours time M T W H F 8:00-12:00 acl evening_hours...
Read more...

Monday, April 30, 2012

Linux Kickstart File Generator

0 comments
The Linux kickstart file is a simple text file, containing a list of items, each identified by a keyword. You can create it by using the Kickstart Configurator application, or writing it from scratch. Linux RHEL / CentOS / Fedora installation program also creates a sample kickstart file based on the options that you selected during installation. It is written to the file /root/anaconda-ks.cfg. To install  Linux Kickstart...
Read more...

MySQL – CREATE TABLE examples

0 comments
A very basic CREATE TABLE statement which should work in any SQL database: mysql> CREATE TABLE table1 (          id INT,          data VARCHAR(100)        ); Query OK, 0 rows affected (0.02 s...
Read more...