Skip to contentSkip to conversation

IP range

DISCUSSION Andy Samuel 2 participants 2 messages Sep 25, 2003

lore
Share & tools
lore
#0 lore raw

Dear All

I follow the example of ip range feature to block my incoming connection starting from IP 192.168.0.76 to 254, but allowing 192.168.0.1 to 75 to pass. So I use :
iptables -A FORWARD -m iprange --src-range 192.168.0.76-192.168.0.254 -p TCP -j DROP.

It shows error that iptables can not find libipt_iprange.
I've check /lib/iptables and no any file about iprange.
But I know my kernel already compiled with iprange enabled and ipt_iprange is already loaded as module ( I can see it from lsmod ).

How do I get libipt_iprange.so ?
What is the connection of the file with the kernel module of ipt_iprange.so ?

Thank you so much

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

#1 lore raw
Quoted 17 lines · Andy Samuel

Dear All

I follow the example of ip range feature to block my incoming connection starting from IP 192.168.0.76 to 254, but allowing 192.168.0.1 to 75 to pass. So I use :
iptables -A FORWARD -m iprange --src-range 192.168.0.76-192.168.0.254 -p TCP -j DROP.

It shows error that iptables can not find libipt_iprange.
I've check /lib/iptables and no any file about iprange.
But I know my kernel already compiled with iprange enabled and ipt_iprange is already loaded as module ( I can see it from lsmod ).

Quoted 4 lines

How do I get libipt_iprange.so ?
What is the connection of the file with the kernel module of ipt_iprange.so ?

You need to recompile the iptables source code. The kernel module basically lists the entry points for the functions in the shared object file (.so).

Quoted 6 lines

Thank you so much

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Signature · 7 lines
--
Raymond Leach <[email protected]>
Network Support Specialist
http://www.knowledgefactory.co.za
"lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import"
Key fingerprint = 7209 A695 9EE0 E971 A9AD  00EE 8757 EE47 F06F FB28
--