LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2005, 10:23 PM   #1
ekkins
Member
 
Registered: Nov 2004
Posts: 31

Rep: Reputation: 15
blocking source ip's using iptables


[root@Ob root]# iptables -A input -s 192.168.1.2 -j drop
iptables v1.2.9: Couldn't load target `drop':/lib/iptables/libipt_drop.so: cannot open shared object file: No such file or directory

Whats wrong here? The box works as a router, and i dont wat 192.168.1.2 to access internet. (Virus problems). Can i solve this problem somehow else?
 
Old 06-19-2005, 08:02 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,286

Rep: Reputation: 62
Can you post the full iptables script so we can check over it and see how it's setup. For blocking a computer from getting access to the web it is probably best done by the mac address.

If your using dhcp server and block by ip address, if it changes, then suddenly that machine can access the web again. It also make a difference where you put the line in the script as well, it's best to put blocking rules at the top of the script.

It may also be case sensitive, try DROP instead of drop, not really sure if the case makes a difference but it may.
 
Old 06-19-2005, 08:11 AM   #3
ekkins
Member
 
Registered: Nov 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Oh. I dont know anything about iptables. I think mac is a much better way to do it as well. How would you suggest i do that?
 
Old 06-19-2005, 07:29 PM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,286

Rep: Reputation: 62
Quote:
Originally posted by ekkins
Oh. I dont know anything about iptables. I think mac is a much better way to do it as well. How would you suggest i do that?
Ok one thing we need know is what distribution and version are you using as the router? Redhat 8.0, SuSE 9.2 , Mandrake 10.0....etc, or is firewall/router specific distribution like IPCOP or Smoothwall? once we know the distribution we can help figure where the scripts are for it, It's just that distributions have scripts sitting in different directories.
 
Old 06-19-2005, 07:32 PM   #5
ekkins
Member
 
Registered: Nov 2004
Posts: 31

Original Poster
Rep: Reputation: 15
hmm. i posted another post and got my answer there, sorry to bother you
 
Old 06-20-2005, 02:10 AM   #6
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,286

Rep: Reputation: 62
No problem, glad you have it sorted out
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
blocking an IP using iptables picox Linux - Security 7 12-10-2010 03:00 PM
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 01:23 PM
Blocking Ip's joanduan Linux - Networking 3 03-10-2005 04:54 AM
way to trace IP's back to the source scottpioso Linux - Software 22 12-29-2003 11:52 AM
Blocking Kazaa with Iptables, Anyone? markng Linux - Security 6 06-27-2003 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration