LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-01-2006, 07:13 AM   #1
satish
Member
 
Registered: Jan 2006
Posts: 172

Rep: Reputation: 15
Blocking yahoo and Rediff bol


i have Redhat 9 server in my office.i want to block yahoo and rediff bol in only 3 system these ip are given below

192.168.1.181
192.168.1.183
192.168.1.105
 
Old 11-01-2006, 08:32 AM   #2
spectra
Member
 
Registered: Nov 2006
Location: UK
Distribution: Debian(s) / Gentoo
Posts: 30

Rep: Reputation: 15
You need to use iptables which is the admin tool for the majority of firewall related tasks and NAT in Linux. You can find HOWTO's on google quite easily, the exact command you require should be:

iptables -A INPUT -p tcp -i <ethX> --dport <port> -s <IP Address> -j DROP

Where <ethX> is the interface which will probably be ppp0, eth0 or eth1, <port> is the port you want to drop. I think 5050 is the one for Yahoo and the -s flag sets the <IP address> which you obviously know.

Personally I would use:

iptables -A INPUT -p tcp -i <ethX> --dport <port> -m mac --mac-source <MAC Address> -j DROP

Which does the same but by MAC address. I'm pretty certain this should work but I havent tried the -m flag with the INPUT chain.

Dave
 
Old 11-24-2006, 11:39 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
For blocking rediff bol messenger via squid for your three clients,

Code:
acl these-ip 192.168.1.181/255.255.255.255 192.168.1.183/255.255.255.255 192.168.1.105/255.255.255.255
acl rediff-block url_regex gatekeeper.rediff
http_access deny rediff-block these-ip
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using squid -blocking yahoo messenger gadekishore Linux - Software 3 08-04-2010 01:41 AM
blocking yahoo messenger jitheshmurali Linux - Security 2 05-14-2006 03:34 AM
Copy Paste of data from word to Yahoo/rediff in opera is limited to few characters sachin_keluskar Linux - Software 0 08-19-2004 09:46 AM
blocking yahoo messenger with iptables mardanian Linux - Networking 5 04-24-2004 02:32 PM
blocking yahoo messenger with iptables linuxboy_inside Linux - Security 3 01-20-2004 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration