Code:# wget -O /jffs/scripts/firewall https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh /jffs/scripts/firewall: No such file or directory
admin@RT-AC68U-EE20:/jffs/scripts# wget -O /jffs/scripts/firewall https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh
--2017-05-29 19:25:47-- https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh
Resolving raw.githubusercontent.com... 151.101.96.133
Connecting to raw.githubusercontent.com|151.101.96.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 33178 (32K) [text/plain]
Saving to: '/jffs/scripts/firewall'
/jffs/scripts/firewall 100%[===================================================================================================================================================================>] 32.40K --.-KB/s in 0.02s
2017-05-29 19:25:48 (1.56 MB/s) - '/jffs/scripts/firewall' saved [33178/33178]
admin@RT-AC68U-EE20:/jffs/scripts#
ls /jffs/scripts
Code:admin@RT-AC68U-EE20:/jffs/scripts# wget -O /jffs/scripts/firewall https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh --2017-05-29 19:25:47-- https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh Resolving raw.githubusercontent.com... 151.101.96.133 Connecting to raw.githubusercontent.com|151.101.96.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 33178 (32K) [text/plain] Saving to: '/jffs/scripts/firewall' /jffs/scripts/firewall 100%[===================================================================================================================================================================>] 32.40K --.-KB/s in 0.02s 2017-05-29 19:25:48 (1.56 MB/s) - '/jffs/scripts/firewall' saved [33178/33178] admin@RT-AC68U-EE20:/jffs/scripts#
Not sure exactly whats going on considering the command should create the file, can you show me the output of the following?
Code:ls /jffs/scripts
Thanks
Skynet: [New Version Detected - Updating To ]... ... ...
Done.
I then issued the wget command manually and it failed, but when I ran the wget again with --no-check-certificate I got the file.
Strange, I removed that flag because I assume github being a reputable company will always have valid certs (and in all my testing I never had download fail without it). Can you post me the output of the command failing by any chance? Would be a huge help in tracking down what is going on. Sorry about the inconvenience to anyone involved!
admin@RT-AC3100:/jffs/scripts# wget -O /jffs/scripts/firewall https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh
Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '/root/.wget-hsts'. HSTS will be disabled.
--2017-05-29 09:36:33-- https://raw.githubusercontent.com/Adamm00/IPSet_ASUS/master/firewall.sh
Resolving raw.githubusercontent.com... 151.101.20.133
Connecting to raw.githubusercontent.com|151.101.20.133|:443... connected.
ERROR: cannot verify raw.githubusercontent.com's certificate, issued by 'CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US':
Unable to locally verify the issuer's authority.
To connect to raw.githubusercontent.com insecurely, use `--no-check-certificate'.
Will not apply HSTS. The HSTS database must be a regular and non-world-writable file. ERROR: could not open HSTS store at '/root/.wget-hsts'. HSTS will be disabled.
wget -V
Now this makes things a lot clearer, sorry to be a pain but can you also post the output of;
Code:wget -V
I think we found the issue
admin@RT-AC3100:/jffs/scripts# wget -V
GNU Wget 1.18 built on linux-gnu.
-cares +digest -gpgme +https +ipv6 -iri +large-file -metalink -nls
+ntlm +opie -psl +ssl/openssl
Wgetrc:
/opt/etc/wgetrc (system)
Compile:
arm-openwrt-linux-gnueabi-gcc -DHAVE_CONFIG_H
-DSYSTEM_WGETRC="/opt/etc/wgetrc" -DLOCALEDIR="/opt/share/locale"
-I. -I../lib -I../lib
-I/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
-I/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/include
-I/media/ware4/Entware-ng.2017.02/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/usr/include
-I/media/ware4/Entware-ng.2017.02/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/include
-I/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
-I/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
-DNDEBUG -O2 -pipe -march=armv7-a -mtune=cortex-a9
-fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable
-Wno-error=unused-result -mfloat-abi=soft
Link:
arm-openwrt-linux-gnueabi-gcc
-I/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
-I/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include
-DNDEBUG -O2 -pipe -march=armv7-a -mtune=cortex-a9
-fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable
-Wno-error=unused-result -mfloat-abi=soft
-L/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib
-L/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/lib
-Wl,-rpath,/opt/lib
-Wl,-rpath-link=/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib
-Wl,--dynamic-linker=/opt/lib/ld-linux.so.3
-L/media/ware4/Entware-ng.2017.02/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/usr/lib
-L/media/ware4/Entware-ng.2017.02/staging_dir/toolchain-arm_cortex-a9_gcc-6.3.0_glibc-2.23_eabi/lib
-L/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib
-lpcre
/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libssl.so
/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libcrypto.so
-ldl
-L/media/ware4/Entware-ng.2017.02/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib
-lz ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.
The version my system is using is from entware
The busybox version is only 1.16.
'll re-add compatibility (long unnecessary commands )
Just provide the fully-qualified path to wget, this way you'll know you're using the firmware's version and not any Entware build.
Adamm - thanks for your wonderfull work - now running it on AC87-A300 on Merlin 380.66-4 with ab-solution 3.8.1 & pixelserv - since first installation running smooth - as I´m a rookie I was a bit afraid to jump in. But worked flawlessly also tried reboot - all good - big THANKS
Adamm or somebody so what is now happening? Can somebody help?Thanks, I try to make it as user-friendly as possible so anyone can use it. Glad it's working well for you.
Log totally flooooded by this left only 2 last ones
May 30 09:45:09 kernel: DROP IN=v6tun0 OUT= MAC=74:b6:c8:0e:3e:48:62:76:fe:18:84:08:00:45:00:00:6e:00:00:40:00:38:29:ae:ba:5b:7f:36:98:5f:69:a2:2c:60:00:00:00:00:32:11:3f:20:02:5b:7f:36:98:12:34:dc:ed:17 TUNNEL=91.127.54.152->/my.ip.adress is here/ SRC=2002:5b7f:3698:1234:dced:1751:f869:f16a DST=2002:5f69:a22c:0000:0000:0000:0000:0001 LEN=90 TC=0 HOPLIMIT=63 FLOWLBL=0 PROTO=UDP SPT=54190 DPT=53 LEN=50
May 30 09:47:59 kernel: DROP IN=v6tun0 OUT= MAC=74:b6:c8:0e:3e:48:62:76:fe:18:84:08:00:45:00:00:67:00:00:40:00:38:29:ae:c1:5b:7f:36:98:5f:69:a2:2c:60:00:00:00:00:2b:11:3f:20:02:5b:7f:36:98:12:34:dc:ed:17 TUNNEL=91.127.54.152->/my.ip.adress is here/ SRC=2002:5b7f:3698:1234:dced:1751:f869:f16a DST=2002:5f69:a22c:0000:0000:0000:0000:0001 LEN=83 TC=0 HOPLIMIT=63 FLOWLBL=0 PROTO=UDP SPT=54963 DPT=53 LEN=43
With debug print enabled, it will print in syslog every time a banned IP has a connection attempt dropped, and all these messages are purged from the syslog at the end of every hour. As you can probably see this at times gets spammy depending on what its blocking. That being said if a clean syslog is important to you, you can disable debug mode in the installer, the downside being you lose some stat reporting functionality as it will only track new bans rather then all connection drops.
https://otx.alienvault.com/indicator/ip/46.229.230.227/
It looks like this IP belongs to a webmail client of sorts (maybe an IMAP server), if this is something you intentionally use it was probably a false positive and you can whitelist the ip.
These two are connection blocks on your IPv6 tunnel I assume. I don't have an IPv6 capable provider so I may look into specifying select interfaces to block rather then all.
Thank you - it was really a false alarm - and the imap server indeed. Will try to sort out whitelist and blacklist certain things in use.
I pushed another update just now to prevent email servers getting banned, invalid packets will only be dropped. This should stop such false positives in future.
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!