Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IPSET #21

Open
houzi- opened this issue Apr 19, 2016 · 9 comments
Open

Support IPSET #21

houzi- opened this issue Apr 19, 2016 · 9 comments

Comments

@houzi-
Copy link

houzi- commented Apr 19, 2016

I compile "xt_set.ko" kernel module.

In ".config_bcmmips" file of ddwrt svn 3.10 kernel directory:

 ---------------------- 
 # 
 # Xtables combined modules 
 # 
 CONFIG_NETFILTER_XT_MARK=y 
 CONFIG_NETFILTER_XT_CONNMARK=y 
 CONFIG_NETFILTER_XT_SET=m
 ..... 
 CONFIG_IP_SET=y 
 CONFIG_IP_SET_MAX=256 
 CONFIG_IP_SET_BITMAP_IP=y 
 CONFIG_IP_SET_BITMAP_IPMAC=y 
 CONFIG_IP_SET_BITMAP_PORT=y 
 CONFIG_IP_SET_HASH_IP=y 
 CONFIG_IP_SET_HASH_IPPORT=y 
 CONFIG_IP_SET_HASH_IPPORTIP=y 
 CONFIG_IP_SET_HASH_IPPORTNET=y 
 CONFIG_IP_SET_HASH_NET=y 
 CONFIG_IP_SET_HASH_NETPORT=y 
 # CONFIG_IP_SET_HASH_NETIFACE is not set 
 CONFIG_IP_SET_LIST_SET=y
 # CONFIG_IP_VS is not set 
 ---------------------- 

Load modules but the error:

insmod: cannot insert 'xt_set.ko': unknown symbol in module". 

Can you help me?

@houzi-
Copy link
Author

houzi- commented May 1, 2016

(R6300V1)
Compiled into the kernel module does not work ,! the mipsel platform like this ! armv7 platform no problem

Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_add (err 0)
Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_test (err 0)
Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_del (err 0)
Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_nfnl_put (err 0)
Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_nfnl_get_byindex (err 0)

@GXTX
Copy link

GXTX commented May 9, 2016

This repo is just a mirror, I'd report this to: http://svn.dd-wrt.com/

@troyliu0105
Copy link

@houzi- Hey, did you remember how did you solve this? I met the same problem now...

@BrainSlayer
Copy link
Contributor

i have no use for ipset right now in dd-wrt itself due the restricted space only required features are compiled in, but you're free you make your own variant with the feature sets you want.

@houzi-
Copy link
Author

houzi- commented Oct 19, 2018

Yes, I compile and load the ipset module myself.

But the following mistakes:

Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_add (err 0)
Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_test (err 0)
Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_del (err 0)
Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_nfnl_put (err 0)
Jan  1 00:07:56 DD-WRT kern.warn kernel: xt_set: Unknown symbol ip_set_nfnl_get_byindex (err 0)

@BrainSlayer
Copy link
Contributor

its not enough to just compile the module, you need to recompile the kernel since these required symbols are always compiled direct into the kernel without any module support

@BrainSlayer
Copy link
Contributor

correction. there is a module named "ip_set.ko" this must be loaded first

@houzi-
Copy link
Author

houzi- commented Oct 25, 2018

@BrainSlayer OK!thanks I try

@egc112
Copy link

egc112 commented Oct 23, 2021

I have added this already some time ago so lets close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants