Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed iptables v1.4.4 via source, but I can't use u32 match.
below is my environment:
CentOs 5.2 kernel 2.6.18-92
iptables v1.4.4 installed in /opt/iptables-1.4.4
(I have been linked /opt/iptables-1.4.4/sbin/iptables to /sbin/iptables)
when i type:
[root@localhost]#iptables -t mangle -I PREROUTING -p udp ! -f -m u32 --u32 "0>>22&0x3c@8>>24&0xff=0x02" -j DROP
iptabls: No chain/target/match by that name.
above command I can use in Ubuntu8.1 no any problem.(It's match QQ program's package of udp)
(PS:Sorry for my poor English because English is not my mother language. Hope everyone can understand I meaning.)
Now I known where is problem. The problem is "iptables" the "-m" option. When I enter "iptables -A INPUT -m u32", it will show "iptabls: No chain/target/match by that name." How to fix it? Module is all in the "/opt/iptables-1.4.4/libexec/xtables" directory.
Whether kernel don't suppord 1.4.4?
Last edited by skiron.liu; 06-30-2009 at 12:27 PM.
What do you get with "iptables -m u32 -h"? I'm on iptables v1.4.1.1 with 2.6.27.25-78.2.56.fc9.x86_64 kernel, fedora 9 and the modules are in the kernel sources (/lib/modules/2.6.27.25-78.2.56.fc9.x86_64/kernel/net/netfilter)
Last edited by david1941; 06-30-2009 at 05:25 PM.
Reason: typo
It show me help information. In the last few lines is:
u32 match options:
[!] --u32 tests
tests := location "=" value | test "&&" location "=" value
...
...
... and so on
looks like have loaded moudle is success!
If I enter "iptables -m u3a -h"
It show me some "Couldn't load match 'u3a'" and so on.
Whether I need patch netfilter moudle into kernel?
Because I see /lib/modules/$(uname -r)/kernel/net/netfilter/xt_u32.ko in Ubuntu8.1 but CentOs5.2 not
Last edited by skiron.liu; 06-30-2009 at 10:19 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.