IP Blocking

I Blocked an IP Address and it didn't work. He came back on at the same address.

I'm using:

Local blacklist (writeable)

Thank you.....

Comments

  • jksjks
    edited October 7

    Try putting the new address on the front of the local list (not the end).

    There is this issue that if you have overlapping IP space in the list then the list processing stops at the point of the overlap (e.g. the same IP address duplicated or overlapping subnets). There was a post some time ago that discussed this. The fix is a bit complicated and I don't have time right now.

    Use the "ips" command in the admin console to see if your new address makes it into the ipset table.

    ShaneBrook
  • Did you add the subnet? /32 for single IP-addresses, like a.b.c.d/32.

    ShaneBrook
  • Either notation can be used (with or without a /32 subnet for a single IP address).

    ShaneBrook
  • I went to the console and typed IPS x.x.x.x 

    And it says:

    ipset v6.38: The set with the given name does not exist

    IPS is not there.

    Can you show me the correct syntax and what directory to be in?


    Thank you for your help.

  • jksjks
    edited October 9

    No, you just type "ips" by itself and it will show you the last ip set (name = "ipset-kiwi") loaded from the admin network page interface. Here I've cleared the global blacklist and entered the two entries 1.2.3.4 and 5.6.7.0/24 into the local blacklist. Then an ips should show:

    root@kiwisdr:~/Beagle_SDR_GPS# ips

    Name: ipset-kiwi

    Type: hash:net,port

    Revision: 7

    Header: family inet hashsize 1024 maxelem 65536

    Size in memory: 576

    References: 1

    Number of entries: 2

    Members:

    5.6.7.0/24,tcp:8073

    1.2.3.4,tcp:8073

    (rest of output not important)

  • Yes, Thank You... That worked... Where is IPS @ ? I would like to see the bat. file....

  • "ips" is just a shell alias. Type "al ips" to see the command it expands to.

  • I made an Alias command to execute a filename.sh .

    should I put in Bin directory?

    and put a . in front of filename in alias command?

    or what?

  • What can I use for scripting ? is there Bash in KiwiSDR ?

Sign In or Register to comment.