Home > Networking Tips > Network Security > Blocking P2P
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

NETWORK SECURITY

Blocking P2P


ITKnowledge Exchange
03.14.2005
Rating: -4.20- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


ITKnowledge Exchange member "rmrsystems" had a question about how to block P2P activity and fellow techies helped out. Here is a portion of the conversation. Read the rest of the thread.

Want to join in on a similar conversation? Register for ITKnowledge Exchange and fill out your profile so you can ask specific sets of people your IT questions and also help out your fellow geeks.


ITKnowledge Exchange member "rmrsystems" asked:
I manage a small SBS2003 network, which doesn't have ISA server (i.e., the SBS box and all the clients are wired via a switch to the ADSL router -- Netgear DG834G). One of the users has been downloading MP3s from a P2P network, and I want to block this sort of activity.

Can I just block particular outgoing ports on the router? If so, which ports do I need to block, and are there any legitimate services that may be affected?

"BRIAVAEL" WRITES:
You're going to be caught up in Whack-a-Mole trying to block access by ports. These programs have gotten pretty good at port hopping and using well-known open ports like 80 or 21.

That said, the various programs use different ports. The two popular ones:

  1. Fast-Track (i.e., Kazaa and Morpheus): 1214
  2. Gnutella (i.e., Limewire and Bearshare): 6346 and 6347
What I would do is build a Linux firewall (like IPCop) and then use FTwall, which will effectively block transmission based on IP tables. The result is to block network access of a user who launches a P2P client. They will only get access back once the program is closed completely.

Of course, adding a new platform to your network may not be what you wish to do. You would best be served by establishing an Acceptable Use policy. Personally I like having both a technical solution as well as policy to back it up.

itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke

"MENNOT" WRITES:
Any decent router has the possibility to block unwanted traffic. The best solution is not to look at evil things that you want to block, but to see what you want to allow -- for instance, HTTP (TCP/80), HTTPS (TCP/443), SMTP (TCP/25) and possibly a few other things. Just block the rest! To be more secure, you should preferably allow these protocols only via a proxy -- or, for e-mail, a secure SMTP relay server with virus scanning -- so you can also limit the IP addresses that can go out.

Looking for information about your router on the Netgear Web site, I found clear instructions how to define authorization rules; see How is port forwarding configured? to create an inbound or outbound rule. Using that procedure, define outbound rules for the services you want to allow and block the remainder. Possibly with the exception of e-mail, you probably don't run services that should be accessible from the Internet, so block all inbound traffic except that service (if you need it). You can further tighten inbound access by restricting it to a specific host.

Blocking everything and waiting for your people start to complain is an approach, if you can afford it. A slight modification to this is to begin with an inquiry as to what is happening now and define rules for that -- at least as far as you can identify it (otherwise Kazaa and others would get in the rule set as well!). Maybe the router allows you to collect such data. Otherwise, you could start with a list of applications that are officially in use and find the TCP/UDP port numbers of it. If you don't know the port numbers, start the application on a machine and give a netstat command in parallel.

Be careful: Some applications use random high ports (1024 and higher) next to a fixed port, forcing you to open a port range. This is something you must recognize. Also, some applications set up sessions in the reverse direction, making it necessary to open ports in the opposite direction as well. (An example of this is FTP, but most firewalls will allow the secondary session automatically.)

Blocking all incoming traffic might lead to problems, even though the initiative is only from the inside! Some trial and error may sometimes be unavoidable to get things working in spite of all the blocking. Things like instant messaging (if you allow that) could prove difficult.

itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke*itke

"CISCOCAT6K" WRITES:
If you want a hardware/software solution look at BlueCoat. It is very effective at blocking this type of traffic, the problem with which is that it can tunnel out on port 80, thereby making it difficult to use port blocking. BlueCoat also gives you granular control over the use of IM, Webmail and various other firewall-opening services.

Additionally you could install a Checkpoint firewall on a Nokia platform for deep packet inspection. The Checkpoint NG-AI systems can block a great deal of IM and P2P services.

If cheap and cheerful is what you wish, try installing Squid with Squidguard on a Linux platform for a nice Web-caching and URL filter solution. Squidguard will allow you to also stop the P2P issues while giving you the advantage of a Web cache engine to help with your outside world link. The software is free; you just need to find some old hardware to install it on. Will run very comfortably on an old P2/P3 box for up to around 500 users (in my experience).

Hope this helps.



Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Network Hardware
Unified wireless network still a work in progress for vendors
3Com acquisition confirms HP-Cisco battle for China
Juniper to CIOs: Invest in internal cloud computing networks
802.11n wireless APs bring IP video to sprawling Illinois high school
802.11n upgrade: College ditches legacy network for new vendor
Network device management overload: Engineers managing too many boxes
What is network infrastructure and what is a hybrid network?
What preventative maintenance procedures for network devices exist?
Can wireless adapters operate as client access points to make SoftAPs?
Is there VLAN software recommend for Realtek NICs?
Network Hardware Research

Network Security
Application-specific network intrusion detection systems emerge
Anomaly-based intrusion protection configuration and installation
Preventing hacker attacks with network behavior analysis IPS
Rogue access points: Preventing, detecting and handling best practices
The TPM chip: An unexploited resource for network security
Shifting defenses and dynamic perimeters challenge network security
Compliance in a virtualized world: Server virtualization and NAC security
Securing the new network architecture: Security for distributed, dynamic networks
How to configure Windows Server 2008 advanced firewall MMC snap-in
USB storage devices: Two ways to stop the threat to network security

LANs (Local Area Networks)
Testing LAN switch power consumption: A best practices guide
3Com acquisition confirms HP-Cisco battle for China
Integrated wireless and wired LAN: Brocade-Motorola deal ups the ante
Enterprise passive optical networks: a spanning-tree LAN alternative
10 Gigabit Ethernet tutorial: Connecting data centers, storage, LAN and beyond
Intelligent edge switches: Complexity is driving a smarter LAN
Q&A: Jim Metzler previews the networking track at Interop
Extreme's port extender can replace consumer devices at network edge
VLANs versus IP subnets: Why use a VLAN over IP subnetting?
Troubleshooting VLANs: How to monitor 802.1q tagged traffic

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
core router  (SearchNetworking.com)
fiber jumper  (SearchNetworking.com)
flow routing  (SearchNetworking.com)
foreign agent  (SearchNetworking.com)
foreign network  (SearchNetworking.com)
hardware load-balancing device  (SearchNetworking.com)
logical router  (SearchNetworking.com)
mrouter  (SearchNetworking.com)
patch cord  (SearchNetworking.com)
port interface card (PIC)  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts