Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th November 2010, 05:20 AM
saravanang86 Offline
Registered User
 
Join Date: Oct 2010
Posts: 37
linuxfedorafirefox
Post error while blocking this websites bittorrent & edonkey using iptables .

HI.,
when i was try to execute this command in my router device it will show error...

First execution :-

# iptables -I OUTPUT -p tcp --dport 80 -m string --string "bittorrent.com" -j DROP
iptables v1.4.0: Couldn't find match `string'

Try `iptables -h' or 'iptables --help' for more information.

Second Execution :-

# iptables -I OUTPUT -p tcp --dport 80 -m string --string "edonkey.com" -j DROP
iptables v1.4.0: Couldn't find match `string'

Try `iptables -h' or 'iptables --help' for more information.

so I Need to block this kind of websites ...kindly tell me what i have to change..
here i didnt execute this command...


Regards
Saravanan G
Reply With Quote
  #2  
Old 18th June 2012, 06:13 AM
blocky Offline
Registered User
 
Join Date: Jun 2012
Location: Chennai
Posts: 2
windows_7firefox
Re: error while blocking this websites bittorrent & edonkey using iptables .

Then you have to try the following which is successfully running on my local machine
I am using class C range ip addresses in my machines

iptables -A FORWARD -p tcp --dport 53 -m string --string "facebook" --algo bm --to 65535 -j DROP

If any queries, then ask me I will do my best.

By,
Blocky
Reply With Quote
  #3  
Old 18th June 2012, 04:11 PM
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 824
linuxfirefox
Re: error while blocking this websites bittorrent & edonkey using iptables .

Quote:
Originally Posted by saravanang86 View Post
HI.,
when i was try to execute this command in my router device it will show error...

First execution :-

# iptables -I OUTPUT -p tcp --dport 80 -m string --string "bittorrent.com" -j DROP
iptables v1.4.0: Couldn't find match `string'

Try `iptables -h' or 'iptables --help' for more information.

Second Execution :-

# iptables -I OUTPUT -p tcp --dport 80 -m string --string "edonkey.com" -j DROP
iptables v1.4.0: Couldn't find match `string'

Try `iptables -h' or 'iptables --help' for more information.

so I Need to block this kind of websites ...kindly tell me what i have to change..
here i didnt execute this command...


Regards
Saravanan G
I don't think you're qualified to be messing around with firewalls... There are just too many things wrong with what you're trying to do.

The most obvious is that you're apparently trying to stop peer to peer filesharing services by... blocking port 80 by string match??? Wow... never going to work. Do you realize that port 80 has NOTHING to do with those services?

You could try what blocky suggested, blocking DNS, but that will only block access to the websites, not the services themselves.
Reply With Quote
  #4  
Old 19th June 2012, 05:26 AM
blocky Offline
Registered User
 
Join Date: Jun 2012
Location: Chennai
Posts: 2
windows_7firefox
Re: error while blocking this websites bittorrent & edonkey using iptables .

I have used iptables version 3.5 in centos 5.5. I have tested and implemented on my machine successfully.

iptables -I OUTPUT -p tcp -m string --string "donkey" --algo bm --to 65535 -j DROP
Reply With Quote
Reply

Tags
bittorrent, blocking, edonkey, error, iptables, websites

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking all but a select few websites catech Security and Privacy 10 4th August 2007 01:38 PM
which websites are ISPs blocking? Wiles Wibble 2 5th June 2007 01:53 AM
blocking websites juny20 Security and Privacy 7 29th March 2006 11:11 AM


Current GMT-time: 00:20 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat