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

Can't create set #11

Closed
dashkevichdmitry opened this issue May 25, 2017 · 9 comments
Closed

Can't create set #11

dashkevichdmitry opened this issue May 25, 2017 · 9 comments

Comments

@dashkevichdmitry
Copy link

After installation try create set, but get error

root@ubuntu:/# echo +10.0.0.0/24 1000000 > /proc/net/ipt_ratelimit/allusers
-bash: /proc/net/ipt_ratelimit/allusers: No such file or directory

@dashkevichdmitry
Copy link
Author

root@ubuntu:/# iptables -A FORWARD -m ratelimit --ratelimit-set allusers --ratelimit-mode src -j DROP
iptables: No chain/target/match by that name.

@dashkevichdmitry
Copy link
Author

root@ubuntu:/# modinfo xt_ratelimit
modinfo: ERROR: Module xt_ratelimit not found.

@dashkevichdmitry
Copy link
Author

root@ubuntu:~/ipt-ratelimit# make all install
make: Nothing to be done for 'all'.
make -C /lib/modules/4.4.0-78-generic/build/ M=/root/ipt-ratelimit modules_install INSTALL_MOD_PATH=
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-78-generic'
  INSTALL /root/ipt-ratelimit/xt_ratelimit.ko
At main.c:222:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  4.4.0-78-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-78-generic'
install -D libxt_ratelimit.so /lib/xtables/libxt_ratelimit.so

@aabc
Copy link
Owner

aabc commented May 26, 2017

That should have installed xt_ratelimit.ko into /lib/modules/<kernel version>/extra, try modinfo xt_ratelimit.

@dashkevichdmitry
Copy link
Author

dashkevichdmitry commented May 26, 2017

root@ubuntu:~# modinfo xt_ratelimit
filename:       /lib/modules/4.4.0-78-generic/extra/xt_ratelimit.ko
alias:          ip6t_ratelimit
alias:          ipt_ratelimit
version:        0.2-12-g9ce0149
license:        GPL
description:    iptables ratelimit policer mt module
author:         <abc@telekom.ru>
srcversion:     6EA5457220E69C96BF7E363
depends:        x_tables
vermagic:       4.4.0-34-generic SMP mod_unload modversions
parm:           hashsize:default size of hash table used to look up IPs (uint)

After this try

root@ubuntu:~# iptables -A FORWARD -m ratelimit --ratelimit-set allusers --ratelimit-mode src -j DROP
iptables: No chain/target/match by that name.

@aabc
Copy link
Owner

aabc commented May 26, 2017

modprobe xt_ratelimit

@dashkevichdmitry
Copy link
Author

root@ubuntu:~# modprobe xt_ratelimit
modprobe: ERROR: could not insert 'xt_ratelimit': Exec format error

@aabc
Copy link
Owner

aabc commented May 26, 2017

Recompile and reinstall module from the current kernel.

@dashkevichdmitry
Copy link
Author

I guest in Linux, but for other people with this bug, need run apt-get upgrade and after that recompile and reinstall.

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

No branches or pull requests

2 participants