Coder Social home page Coder Social logo

Can't create set about ipt-ratelimit HOT 9 CLOSED

aabc avatar aabc commented on June 26, 2024
Can't create set

from ipt-ratelimit.

Comments (9)

dashkevichdmitry avatar dashkevichdmitry commented on June 26, 2024

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

from ipt-ratelimit.

dashkevichdmitry avatar dashkevichdmitry commented on June 26, 2024

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

from ipt-ratelimit.

dashkevichdmitry avatar dashkevichdmitry commented on June 26, 2024
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

from ipt-ratelimit.

aabc avatar aabc commented on June 26, 2024

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

from ipt-ratelimit.

dashkevichdmitry avatar dashkevichdmitry commented on June 26, 2024
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:         <[email protected]>
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.

from ipt-ratelimit.

aabc avatar aabc commented on June 26, 2024

modprobe xt_ratelimit

from ipt-ratelimit.

dashkevichdmitry avatar dashkevichdmitry commented on June 26, 2024
root@ubuntu:~# modprobe xt_ratelimit
modprobe: ERROR: could not insert 'xt_ratelimit': Exec format error

from ipt-ratelimit.

aabc avatar aabc commented on June 26, 2024

Recompile and reinstall module from the current kernel.

from ipt-ratelimit.

dashkevichdmitry avatar dashkevichdmitry commented on June 26, 2024

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

from ipt-ratelimit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.