Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

blocking p2p

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
p3nguin
Apprentice
Apprentice
Posts: 188
Joined: Tue Jul 01, 2003 1:12 am
Location: ~/

blocking p2p

  • Quote

Post by p3nguin » Sat Jan 31, 2004 3:51 am

Whats the easyest way to block file sharing programs? I am currently running Linux firewall.
Top
p3nguin
Apprentice
Apprentice
Posts: 188
Joined: Tue Jul 01, 2003 1:12 am
Location: ~/

  • Quote

Post by p3nguin » Sat Jan 31, 2004 4:01 am

Code: Select all

iptables -t mangle -I FORWARD 1 -i eth0 -m recent --update --seconds 60 --rdest --name kazaa -j kazza-out
iptables -t mangle -I FORWARD 2 -i eth1 -m recent --update --seconds 60 --rsource --name kazaa
iptables -t mangle -I FORWARD 3 -i eth1 -m string --string "X-Kazaa" -m recent --name kazaa --set --rsource
iptables -t mangle -I FORWARD 4 -o eth1 -m string --string "X-Kazaa" -m recent --name kazaa --set --rdest -j kazza-out
would this work? do i leave kazaa in all of those commands or is that some sort of variable?
Top
ectospasm
l33t
l33t
User avatar
Posts: 711
Joined: Wed Feb 19, 2003 6:53 am
Location: Mobile, AL, USA
Contact:
Contact ectospasm
Website

  • Quote

Post by ectospasm » Sat Jan 31, 2004 4:03 am

Have a look at this Linux Journal article:

http://linuxjournal.com/article.php?sid=6945
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Top
CheshireCat
Guru
Guru
User avatar
Posts: 572
Joined: Sun Aug 25, 2002 11:06 pm

  • Quote

Post by CheshireCat » Sat Jan 31, 2004 4:03 am

The easiest way is to block their ports w/ iptables. The main problem with this is that most can change ports nowadays. You may want to take a look at http://l7-filter.sourceforge.net/. It identifies traffic based on content, and can be used with iptables to drop P2P traffic (for protocols that it knows about). There's also a link on that page to a page for an "IPP2P" module, a netfilter modules that provides a yes/no decision on whether a given packet is P2P.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic