+ cat /jffs/privacy-filter.list
+ /opt/bin/xargs -P 10 -n 5 -I {} sh -c traceroute -4 {} | head -1 >> /tmp/privacy-filter_ipv4_raw.part
BusyBox v1.25.1 (2017-03-10 00:31:38 EST) multi-call binary.
Usage: traceroute [-46FIlnrv] [-f 1ST_TTL] [-m MAXTTL] [-q PROBES] [-p PORT]
[-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-s SRC_IP] [-i IFACE]
[-z PAUSE_MSEC] HOST [BYTES]
Trace the route to HOST
-4,-6 Force IP or IPv6 name resolution
-F Set don't fragment bit
-I Use ICMP ECHO instead of UDP datagrams
-l Display TTL value of the returned packet
-n Print numeric addresses
-r Bypass routing tables, send directly to HOST
-v Verbose
-f N First number of hops (default 1)
-m N Max number of hops
-q N Number of probes per hop (default 3)
-p N Base UDP port number used in probes
(default 33434)
-s IP Source address
-i IFACE Source interface
-t N Type-of-service in probe packets (default 0)
-w SEC Time to wait for a response (default 3)
-g IP Loose source route gateway (8 max)
Usage: traceroute [-46FIlnrv] [-f 1ST_TTL] [-m MAXTTL] [-q PROBES] [-p PORT]
[-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-s SRC_IP] [-i IFACE]
[-z PAUSE_MSEC] HOST [BYTES]
Trace the route to HOST
-4,-6 Force IP or IPv6 name resolution
-F Set don't fragment bit
-I Use ICMP ECHO instead of UDP datagrams
-l Display TTL value of the returned packet
-n Print numeric addresses
-r Bypass routing tables, send directly to HOST
-v Verbose
-f N First number of hops (default 1)
-m N Max number of hops
-q N Number of probes per hop (default 3)
-p N Base UDP port number used in probes
(default 33434)
-s IP Source address
-i IFACE Source interface
-t N Type-of-service in probe packets (default 0)
-w SEC Time to wait for a response (default 3)
-g IP Loose source route gateway (8 max)
ipset v6.29: No command specified: unknown argument privacy-filter_ipv4
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-update_ipv4
Try `ipset help' for more information.
hostip: invalid option -- 'n'
hostip: invalid option -- 'n'
ipset v6.29: No command specified: unknown argument privacy-update_ipv4
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-update_ipv6
Try `ipset help' for more information.
hostip: invalid option -- 'n'
ipset v6.29: No command specified: unknown argument privacy-update_ipv6
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-filter_ipv4
Try `ipset help' for more information.
hostip: invalid option -- 'n'
ipset v6.29: No command specified: unknown argument privacy-filter_ipv4
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-update_ipv4
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-update_ipv6
Try `ipset help' for more information.
sh: syntax error: unexpected "("
hostip: invalid option -- 'n'
ipset v6.29: No command specified: unknown argument privacy-filter_ipv4
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-filter_ipv6
Try `ipset help' for more information.
sh: syntax error: unexpected ")"
ipset v6.29: No command specified: unknown argument privacy-filter_ipv4
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-update_ipv6
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-update_ipv4
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-filter_ipv4
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-update_ipv4
Try `ipset help' for more information.
sh: syntax error: unexpected "("
ipset v6.29: No command specified: unknown argument privacy-filter_ipv6
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-filter_ipv6
Try `ipset help' for more information.
sh: syntax error: unexpected ")"
ipset v6.29: No command specified: unknown argument privacy-update_ipv6
Try `ipset help' for more information.
[name does not exist]
ipset v6.29: No command specified: unknown argument privacy-update_ipv4
Try `ipset help' for more information.
sh: syntax error: unexpected "("
sh: syntax error: unexpected ")"
ipset v6.29: No command specified: unknown argument privacy-update_ipv6
Try `ipset help' for more information.
grep: v[0-9]: No such file or directory
ipset v6.29: No command specified: unknown argument privacy-filter_ipv6
Try `ipset help' for more information.
[name does not exist]
sh: syntax error: unexpected "do"
ipset v6.29: No command specified: unknown argument privacy-filter_ipv6
Try `ipset help' for more information.
ipset v6.29: No command specified: unknown argument privacy-filter_ipv6
Try `ipset help' for more information.
grep: v[0-9]: No such file or directory
sh: syntax error: unexpected ")"
sh: syntax error: unexpected "("
sh: syntax error: unexpected "("
sh: syntax error: unexpected "("
[name does not exist]
hostip: invalid option -- 'n'
sh: syntax error: unexpected "("
[name does not exist]
[name does not exist]
[name does not exist]
[name does not exist]
[name does not exist]
[name does not exist]
[name does not exist]
[name does not exist]
[name does not exist]
[name does not exist]
system: Privacy Filter (ipv4) loaded 0 unique ip addresses.
mike@RT-AC5300:/jffs/privacy-filter# blockstats
7 326 DROP all -- any any anywhere anywhere match-set CustomBlock src
710 46645 DROP all -- any any anywhere anywhere match-set BlockedCountries src
16 928 DROP all -- any any anywhere anywhere match-set TorNodes src
0 0 DROP all -- any any anywhere anywhere match-set BruteForceLogins src
0 0 REJECT all -- any any anywhere anywhere match-set privacy-filter_ipv4 src,dst reject-with icmp-port-unreachable
331 16832 DROP all -- any any anywhere anywhere match-set MicrosoftSpyServers dst
mike@RT-AC5300:/jffs/privacy-filter#
creates empty fileI don't understand?
xentrk do you have entware installed ?
It looks like you need to create the file again. If you transferred the file, it may have appended Ctrl-M characters at the end of each line. They look like ^M. On your client, make sure you check the ASCII mode to prevent this. Following is my example from MobaXTerm.creates empty file
Or simply use dos2unix.It looks like you need to create the file again. If you transferred the file, it may have appended Ctrl-M characters at the end of each line. They look like ^M. On your client, make sure you check the ASCII mode to prevent this. Following is my example from MobaXTerm.
View attachment 8890
creates empty file
No such file or directory
dos2unix /jffs/scripts/privacy-filter
cd /jffs/scripts
dos2unix privacy-filter
I created with nano then pasted in from post. Then ran
chmod +x /jffs/privacy-filter/privacy-filter
Could it be that I am running this with firewall-start?
It is a separate script though.
Thanks @swetoast. I appreciate your contributions to the community. I've learned a lot from your work. I hope you get well soon.Hi everyone
been working on the wiki while i was sick (didnt have anything better to do) so there is some changes coming up new versions of my script will be posted on my github or if i want testing done ill post here in the thread this is so the wiki will become easier to grasp so there is less confusion over ipset versions and how to deploy the scripts on your home router.
https://www.snbforums.com/threads/cleaning-up-the-wiki.38338/
https://github.com/RMerl/asuswrt-merlin/wiki/Using-ipset
https://github.com/RMerl/asuswrt-merlin/wiki/Ipset-script-installation-instructions
It just occurred to me there is one difference...I was connected to the router remotely thru a VPN connection. I will try to run the script when I am physically onsite tomorrow to see if the same thing happens.nope havent gotten any wiser at all on that been twisting my head around that issue gonna pm you later and we can investigate further
and thx on the comments on the documentation let me know if anything is missing or out of order.
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!