Gotcha. The IPSet based scripts you posted all replicate similar functionality to Skynet. Only 1 of the 4 is needed, having all 4 installed will cause compatibility issues and is unnecessary. I also don't believe the others are being actively developed anymore either.
@Adamm, is it normal to have these IPs blocked?
Top 50 Blocked Devices (Outbound);
302x 192.168.3.131 AAA
5x 192.168.3.133 BBB
ok, that's clear, thanks much!Nvm I read that wrong, this output is expected.
It details which devices are sourcing the blocks. So 302 outbound hits have come from 192.168.3.131, and 5 have come from 192.168.3.133
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=4586
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=10014
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3373
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=4444
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=33398
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3349
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=8890
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=5677
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=7005
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3123
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3656
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3351
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=9151
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=9001
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=5513
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=8893
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3389
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=5544
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=4141
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=5016
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=8002
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=4469
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3437
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=4097
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3404
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=4899
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=5900
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=5698
Nov 28 22:19:07 kernel: [BLOCKED - INBOUND] SRC=5.8.18.90 SPT=65533 DPT=3379
Input IP To Ban:
[IP]: 5.8.18.90
Input Comment For Ban:
[Comment]: 29 probes per second
Banning 5.8.18.90
ipset v6.32: Element cannot be added to the set: it's already added
After searching logs and experimenting with openvpn server I have the opinion that skynet starts a little to soon in my routers boot process. It interferes with the "up-down command" during openvpn server's launch then exits with fatal error. If I use a restart script in services-start openvpn server starts no problem. This brings me to my question. Is there a way to delay skynet from starting by say 10 or 15 seconds?
When skynet starts on my router ac3100 it pins the processors both cores to 100%. In my experiance this the likley cause for my fatal error as it implys that another program is exitting. I have nothing else running. The up-down command can't finish its process. I'll try this sleep command and get back to you. Here is an excerpt from my logs:Can you explain how it interferes? I don't see any reason for it too.
With that being said, you can add a "sleep 60" above Skynets entry in firewall-start
Nov 30 10:39:03 kernel: ADDRCONF(NETDEV_CHANGE): tun21: link becomes ready
Nov 30 10:39:03 openvpn[935]: /usr/sbin/ip addr add dev tun21 10.8.0.1/24 broadcast 10.8.0.255
Nov 30 10:39:03 openvpn[935]: updown.sh tun21 1500 1622 10.8.0.1 255.255.255.0 init
Nov 30 10:39:03 Skynet: [INFO] USB Not Found - Sleeping For 10 Seconds ( Attempt 2 Of 10 )
Nov 30 10:39:03 Skynet: [INFO] Lock File Detected (start banmalware autoupdate usb=/tmp/mnt/EXT4) (pid=530) - Exiting
Nov 30 10:39:03 openvpn[935]: WARNING: Failed running command (--up/--down): external program exited with error status: 1
Nov 30 10:39:03 openvpn[935]: Exiting due to fatal error
I implemented the sleep 60 and openvpn server starts and has no fatal errors or warnings at boot. Skynet interacts with openvpn is this the issue in my case and the timing of this process?
All I know is it's referred to as updown.shWhat does this updown script look like, can't say I use openvpn all that much but I don't see how Skynet would interfere with openvpn.
// Quite a few functions will blindly attempt to manipulate iptables, colliding with us.
// Retry a few times with increasing wait time to resolve collision.
Is there anything we can do or I can do?updown.sh sets up the iptables rules for selective routing. If you are also trying to set up a large number of iptables entries, I think it's possible for the updown iptables commands to fail.
In the mainline code, there are retry loops when the code tries to add a large number of rules via iptables-restore, with the following comment
Code:// Quite a few functions will blindly attempt to manipulate iptables, colliding with us. // Retry a few times with increasing wait time to resolve collision.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!