Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all members i want to block kazaa on my network, i 'm using RH8.0 with squid ver 2.4 stable7 & iptables the rules are as follows: iptables -t nat ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2003
    Location
    Karachi
    Posts
    2

    blocking kazaa


    Hi all members

    i want to block kazaa on my network, i 'm using RH8.0 with squid ver 2.4 stable7 & iptables the rules are as follows:
    iptables -t nat -A POSTROUTING -s 150.100.16.0/255.255.240.0 -d ! 150.100.16.0/255.255.240.0 -o ppp0 -j MASQUERADE
    echo "1" > /proc/sys/net/ipv4/ip_forward

    & for blocking kaaza somebody suggest me these rules
    iptables -A FORWARD -m recent --name kazaa --rcheck --seconds 60 -j DROP
    iptables -A FORWARD -i ppp0 -p tcp -m string --string 'X-Kazaa' -m recent --name kazaa --set -j DROP
    or
    iptables -I FORWARD -i $internal_interface -p tcp -m string --string "KazaaClient" -j REJECT --reject-with tcp-reset

    but unable to block kazaa.

    plz help me to do this.
    regards

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I haven't ever heard of the "recent" and "string" iptables extensions. Did they work for you? Do you have extra modules installed or something?

    Anyhow, I would just find out what servers kazaa connects to, and then block all access to them. Isn't that the easiest?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •