Hackers be hacking..

2»

Comments

  • jksjks
    edited May 16

    Yes, after I posted I went and saw that you public Kiwi is not proxied and uses DDNS. So it's quite possible there is a problem. I agree that iptables should be doing the filtering in that case.

    Not sure why my.kiwisdr.com is not registering both of your Kiwis. Here, my many test Kiwis all register simultaneously without problems. So it should work. Registration is maintained by public IP and serial number. So as long as the serial numbers are unique multiple Kiwis should work.

    If you email your serial numbers to support@kiwisdr.com I can check the registration requests to the kiwisdr.com web server and perhaps see what's going wrong.

  • jksjks
    edited May 16

    Okay, after reviewing the code it has reminded me of something. There is a feature that if a connection that has exceeded the 24hr connection time limit continues to try connecting (like a bot might) it will dynamically get added to the in-memory (not iptables/ipset) blacklist.

    For this to work the in-memory blacklist must run all the time. Not just for proxied Kiwis. For non-proxied Kiwis there will be few entries in it because iptables is catching most of the blacklisted addresses.

    Is it possible that the 195.128.246.85 address you show was not actually in iptables/ipset at the time those log messages occurred? Because the log messages might simply be a result of the 24hr auto-ban before you manually added the range to the blacklist.

    Remember there is a new shell alias ips to check if a range is in the ipset table. Since individual ranges are no longer in the iptable itself.

  • The IP was in a range that was included in the ipset list at that time for a very long time already. I tripple checked it :)

    It happened several times from two different IPs.

    I've updated the public kiwis today and will report if it happens again. Will also send you an e-mail regarding the serial number thing.

    Thanks.

  • v1.682 fixes the problem reported by @HB9TMC where ipset/iptables wasn't filtering properly (but the Kiwi server was as a backup).

    But I also noticed something important. On the admin network tab, the "local blacklist" section where you can enter your own ip addresses and ip ranges: Be careful to not enter invalid or duplicate entries. Especially duplicates. Because processing of the local list will terminate at the point it finds a duplicate. It's a pain for me to detect this condition and report it back to the admin interface. I have much more important things I need to be working on. So this warning will have to suffice.

    Consider this local blacklist entry:

    1.2.3.4/32 217.150.74.0/16 217.150.75.255/16 5.6.7.8/32

    There are two problems here. 217.150.74.0/16 is deceptive because the /16 means the bottom 16-bits are considered the wildcard host address part and should really have been specified as 0.0 as in 217.150.0.0/16. That means the following 217.150.75.255/16 is also wrong and also considered as 217.150.0.0/16. Hence two identical entries in a row causing an error which prevents the 5.6.7.8/32 entry from being added to the blacklist!

    So be careful when constructing your lists. Use a site like https://www.ipaddressguide.com/cidr to check your IP range for proper CIDR representation.

    Yogicat
  • another

    Wed Jun  5 05:02:42 1d:07:47:02.896 0123  1   L PWD new connection --------------------------------------------------------
    Wed Jun  5 05:02:42 1d:07:47:02.903 0123  1   L PWD kiwi SND ALLOWED: no user password set, so allow connection from 109.107.180.245
    Wed Jun  5 05:02:52 1d:07:47:12.296 0123  1     API: decided connection is non-Kiwi app (served=0) 
    Wed Jun  5 05:02:52 1d:07:47:12.296 0123  1     API: ext_api_users=1 >? ext_api_ch=4 F(OKAY)
    Wed Jun  5 05:02:52 1d:07:47:12.296 0123  1   L API: TRIG=F SND(T3) f_kHz=0.000 freq_trig=0 hasDelimiter=0 z=0
    Wed Jun  5 05:02:59 1d:07:47:19.309 0123  1   L GEOLOC: 109.107.180.245 sent no geoloc info, we got "Russia" from geo host #0
    Wed Jun  5 05:02:59 1d:07:47:19.314 0123        task geoloc_task:P2:T013((1000.000 msec) TaskSleep) exited by returning
    Wed Jun  5 05:03:07 1d:07:47:27.295 0123  1   L "(no identity)" 109.107.180.245 Russia incomplete connection kicked
    


    and so every several seconds

  • I had them too.

  • I had to turn off non Kiwi apps because they are trying to connect one after another. They won't stop!

Sign In or Register to comment.