Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables problem (proc)

Reply
Thread Tools Display Modes

iptables problem (proc)

 
 
Maaged Mazyek
Guest
Posts: n/a

 
      03-20-2006, 03:19 AM
Hello NG,

I'm trying to install iptables on a debian 2.6.8-2-686.
When i add a Rule (iptables -A input -s <source_ip> -j REJECT) i get:

iptables: No chain/target/match by that name

i found out, that `cat /proc/net/ip_tables_targets` is empty, so there
is something missing, but i don't see what.

/lib/iptables/libipt_REJECT.so exists and also the kernel module in
/lib/modules...

so what to to?

thanks,
regards,

Maaged
 
Reply With Quote
 
 
 
 
SenthilMurugan
Guest
Posts: n/a

 
      03-20-2006, 10:34 AM
Did you try the following command ( INPUT is CAPS on)

iptables -A INPUT -s <source-ip> -j REJECT

It should work.

 
Reply With Quote
 
Maaged Mazyek
Guest
Posts: n/a

 
      03-20-2006, 12:59 PM
SenthilMurugan schrieb:
> Did you try the following command ( INPUT is CAPS on)
>
> iptables -A INPUT -s <source-ip> -j REJECT
>
> It should work.
>


oh, that was it.. stupid

thanx!
 
Reply With Quote
 
Peter Lowrie
Guest
Posts: n/a

 
      03-28-2006, 05:39 AM
Maaged Mazyek wrote:

> SenthilMurugan schrieb:
>> Did you try the following command ( INPUT is CAPS on)
>>
>> iptables -A INPUT -s <source-ip> -j REJECT
>>
>> It should work.
>>

>
> oh, that was it.. stupid
>
> thanx!


Two things. 1. REJECT tells the attacker that you're there, DROP does not,
and 2. I like to put the subnet in as well this way...

-A INPUT -s 123.123.123.123/255.255.255.255 -j DROP

--
Regards,
Peter.
http://www.pelicom.net.nz
 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is tw at /proc/net/sockstat?! bh98013@gmail.com Linux Networking 3 06-06-2006 10:38 AM
mapping /proc/PID with proper URL jean-francois Linux Networking 3 12-25-2005 03:27 AM
no received bytes in /proc/net/dev tudor Linux Networking 0 12-03-2003 06:23 PM
/proc/net/ip_fprward?? Ishwar Rattan Linux Networking 4 07-17-2003 02:41 AM
/proc/net/ip_fprward?? Ishwar Rattan Linux Networking 1 07-16-2003 08:53 PM



1 2 3 4 5 6 7 8 9 10 11