Iptables problem with ipset

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Iptables problem with ipset

Postby joximus » Mon Mar 30, 2015 7:34 pm

I'm trying to block connections from china to my cubieboard using ipset. I have created set with
$this->bbcode_second_pass_code('', 'ipset -N china hash:net.')
ipset list shows:
$this->bbcode_second_pass_code('', '
Name: china
Type: hash:net
Revision: 2
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 8508
')
However when i try to add iptables rule:
$this->bbcode_second_pass_code('', 'iptables -A INPUT -m set --match-set china src -j DROP')
I get following error:
iptables: No chain/target/match by that name.

lsmod shows modules :
$this->bbcode_second_pass_code('', 'Module Size Used by
ip_set_hash_net 20384 1
ip_set 19426 1 ip_set_hash_net
nfnetlink 2607 1 ip_set
nf_conntrack_ipv4 9818 1
nf_defrag_ipv4 952 1 nf_conntrack_ipv4
xt_tcpudp 1841 1
xt_recent 7734 3
xt_conntrack 2572 1
nf_conntrack 52925 2 xt_conntrack,nf_conntrack_ipv4
iptable_filter 1073 1
ip_tables 8879 1 iptable_filter
x_tables 11096 5 xt_recent,ip_tables,xt_tcpudp,xt_conntrack,iptable_filter
sunxi_ir 3082 0
disp_ump 735 0
ump 27260 1 disp_ump
hdmi 21703 0
lcd 3308 0
disp 293113 4 lcd,hdmi,disp_ump
cfbfillrect 2636 1 disp
cfbimgblt 1610 1 disp
cfbcopyarea 2326 1 disp
fbcon 34093 70
bitblit 3716 1 fbcon
softcursor 869 1 bitblit
font 7041 1 fbcon
')
uname -a
Linux cubie 3.4.103-3-ARCH #1 PREEMPT Fri Jan 2 20:30:18 MST 2015 armv7l GNU/Linux

Can anyone help?
joximus
 
Posts: 12
Joined: Mon Mar 30, 2015 7:22 pm

Re: Iptables problem with ipset

Postby joximus » Fri Apr 03, 2015 9:27 pm

I have noticed that this work without problems on my x86 machine running Arch.
Maybe the problem is that module xt_set which is loaded on x86 does not exist on my cubieboard?
$this->bbcode_second_pass_code('', 'modprobe xtset
modprobe: FATAL: Module xtset not found.
')
Can I expect that module will be built on some future versions of linux kernel?
joximus
 
Posts: 12
Joined: Mon Mar 30, 2015 7:22 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 17 guests