Does Skynet provide TOR node blocking? If so - how?
Any chance to include DNSCrypt into this? Maybe borderline firewall - however a more secure way of name resolution?
Will there be any integration to the WEB gui, like the NTP daemon code by kvic: https://www.snbforums.com/threads/ntp-daemon-for-asuswrt-merlin.28041/
After (error-free) installation, router restart, the following output in syslog:
And how can this "spam" be turned off, even after deinstallation?
sh /jffs/scripts/firewall debug restart
(wait 10 seconds then)
sh /jffs/scripts/firewall debug info
Router Model: RT-AC87U
Skynet Version: v5.0.2 (01/07/2017)
iptables v1.4.14 - (eth0)
ipset v6.32, protocol version: 6
FW Version: 380.67_beta2 (Jun 30 2017)
Install Dir; /jffs (62.8M Space Available)
Boot Args; /jffs/scripts/firewall start banmalware autoupdate
Install Dir Writeable
Startup Entry Detected
Cronjobs Detected
Autobanning Enabled
Debug Mode Disabled
No Duplicate Rules Detected In RAW
No Duplicate Rules Detected In FILTER
Whitelist IPTable Detected
BlockedRanges IPTable Detected
Blacklist IPTable Detected
Whitelist IPSet Detected
BlockedRanges IPSet Detected
Blacklist IPSet Detected
Skynet: [Complete] 0 IPs / 0 Ranges Banned. 0 New IPs / 0 New Ranges Banned. 0 Inbound / 0 Outbound Connections Blocked! [1s]
Skynet appears to be waiting for the USB-drive to be mounted, as previously discussed, then starts at a second attempt, to exit immediately after finding a lock file. How can it find a lock file if it wasn't running and I did I clean reboot through the WebUI. Isn't the lock file removed on shutdown/reboot?
And last but not least, could you add a line to the startup script to have logger writing to syslog which switches are being used? I've put it in debug mode, total forgot about it, so it would be a nice-to-have if the switches used when the script is invoked are showing in syslog.
Code:Router Model: RT-AC87U Skynet Version: v5.0.2 (01/07/2017) iptables v1.4.14 - (eth0) ipset v6.32, protocol version: 6 FW Version: 380.67_beta2 (Jun 30 2017) Install Dir; /jffs (62.8M Space Available) Boot Args; /jffs/scripts/firewall start banmalware autoupdate Install Dir Writeable Startup Entry Detected Cronjobs Detected Autobanning Enabled Debug Mode Disabled No Duplicate Rules Detected In RAW No Duplicate Rules Detected In FILTER Whitelist IPTable Detected BlockedRanges IPTable Detected Blacklist IPTable Detected Whitelist IPSet Detected BlockedRanges IPSet Detected Blacklist IPSet Detected Skynet: [Complete] 0 IPs / 0 Ranges Banned. 0 New IPs / 0 New Ranges Banned. 0 Inbound / 0 Outbound Connections Blocked! [1s]
Code:Router Model: RT-AC87U Skynet Version: v5.0.2 (01/07/2017) iptables v1.4.14 - (eth0) ipset v6.32, protocol version: 6 FW Version: 380.67_beta2 (Jun 30 2017) Install Dir; /jffs (62.8M Space Available) Boot Args; /jffs/scripts/firewall start banmalware autoupdate Install Dir Writeable Startup Entry Detected Cronjobs Detected Autobanning Enabled Debug Mode Disabled No Duplicate Rules Detected In RAW No Duplicate Rules Detected In FILTER Whitelist IPTable Detected BlockedRanges IPTable Detected Blacklist IPTable Detected Whitelist IPSet Detected BlockedRanges IPSet Detected Blacklist IPSet Detected Skynet: [Complete] 0 IPs / 0 Ranges Banned. 0 New IPs / 0 New Ranges Banned. 0 Inbound / 0 Outbound Connections Blocked! [1s]
do you have public logs on ip who downloads the script or wgets? since installing this about 2 hours ago I am getting 20+ attempts to login from all sorts of ips. never had much in attempts to get my ip before.
Thank you for your help and feedback.
It seems to work well, but why is still not blocked?
Jun 24 15:54:26 Skynet: [INFO] Startup Initiated...
Jun 24 15:54:34 Skynet: [Complete] 130448 IPs / 3020 Ranges Banned. 130448 New IPs / 3020 New Ranges Banned. 0 Inbound / 0 Outbound Connections Blocked! [9s]
Like for example here in your output on page 1.
Or I understand maybe something wrong..?
Code:Jun 24 15:54:26 Skynet: [INFO] Startup Initiated... Jun 24 15:54:34 Skynet: [Complete] 130448 IPs / 3020 Ranges Banned. 130448 New IPs / 3020 New Ranges Banned. 0 Inbound / 0 Outbound Connections Blocked! [9s]
(The "DROP IN" print in the syslog I had again now, but no longer so many.)
iptables -L
...@RT-AC87U:/tmp/home/root# iptables -LChain INPUT (policy ACCEPT)
target prot opt source destination
DROP icmp -- anywhere anywhere icmp echo-request
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP all -- anywhere anywhere state INVALID
PTCSRVWAN all -- anywhere anywhere
PTCSRVLAN all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state NEW
ACCEPT all -- anywhere anywhere state NEW
ACCEPT udp -- anywhere anywhere udp spt:bootps dpt:bootpc
INPUT_ICMP icmp -- anywhere anywhere
DROP all -- anywhere anywhere
The output is quite large, I hope this is enough?
iptables -L logdrop
ASUSWRT-Merlin RT-AC87U 380.67-beta2 Fri Jun 30 17:02:54 UTC 2017
...@RT-AC87U:/tmp/home/root# iptables -L logdropChain logdrop (0 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere match-set Whitelist src
DROP tcp -- anywhere anywhere multiport sports www,https,imap2,imaps,pop3,pop3s,smtp,ssmtp state INVALID
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT tcp -- anywhere anywhere tcpflags: FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,ACK
ACCEPT tcp -- anywhere anywhere tcpflags: FIN,SYN,RST,PSH,ACK,URG/FIN,ACK
ACCEPT tcp -- anywhere anywhere tcpflags: FIN,SYN,RST,PSH,ACK,URG/RST
ACCEPT tcp -- anywhere anywhere tcpflags: FIN,SYN,RST,PSH,ACK,URG/RST,ACK
LOG all -- anywhere anywhere state INVALID LOG level warning tcp-sequence tcp-options ip-options prefix "[BLOCKED - NEW BAN] "
SET all -- anywhere anywhere state INVALID add-set Blacklist src
DROP all -- anywhere anywhere
...@RT-AC87U:/tmp/home/root#
Code:ASUSWRT-Merlin RT-AC87U 380.67-beta2 Fri Jun 30 17:02:54 UTC 2017 ...@RT-AC87U:/tmp/home/root# iptables -L logdropChain logdrop (0 references) target prot opt source destination ACCEPT all -- anywhere anywhere match-set Whitelist src DROP tcp -- anywhere anywhere multiport sports www,https,imap2,imaps,pop3,pop3s,smtp,ssmtp state INVALID ACCEPT icmp -- anywhere anywhere icmp time-exceeded ACCEPT icmp -- anywhere anywhere icmp destination-unreachable ACCEPT tcp -- anywhere anywhere tcpflags: FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,ACK ACCEPT tcp -- anywhere anywhere tcpflags: FIN,SYN,RST,PSH,ACK,URG/FIN,ACK ACCEPT tcp -- anywhere anywhere tcpflags: FIN,SYN,RST,PSH,ACK,URG/RST ACCEPT tcp -- anywhere anywhere tcpflags: FIN,SYN,RST,PSH,ACK,URG/RST,ACK LOG all -- anywhere anywhere state INVALID LOG level warning tcp-sequence tcp-options ip-options prefix "[BLOCKED - NEW BAN] " SET all -- anywhere anywhere state INVALID add-set Blacklist src DROP all -- anywhere anywhere ...@RT-AC87U:/tmp/home/root#
I do not include TOR Nodes in the banmalware filter lists, but these can be easily imported using the "firewall import" command. I figured users would have legitimate use for TOR so I should keep it unblocked.
firewall import https://www.dan.me.uk/torlist/?exit
...firewall whitelist "DST ip"
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!