Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom router firmware support? #49

Open
ThreeDeeJay opened this issue Feb 13, 2024 · 1 comment
Open

Custom router firmware support? #49

ThreeDeeJay opened this issue Feb 13, 2024 · 1 comment

Comments

@ThreeDeeJay
Copy link

How would one go about implementing this IP list into third-party router firmware like Tomato/DD-WRT?
I tried the ipset instructions in the ReadMe and #16, but it seems to use a different version, so I tried the command structure it expects (e.g. flush > --flush), but still had issues, 🤔

> #!/bin/sh
--

> ipset --flush ipsum
ipset v4.5: Unknown set

> ipset --create ipsum hash:ip
ipset v4.5: Couldn't load settype `hash:ip':File not found
 
Try `ipset -H' or 'ipset --help' for more information.
> for ip in $(curl --compressed https://raw.githubusercontent.com/stamparm/ipsum/master/levels/8.txt 2>/dev/null \| grep -v "#" \| grep -v -E "\s[1-2]$" \| cut -f 1); do ipset --add ipsum $ip; done
ipset v4.5: Unknown set
***[THIS REPEATS SEVERAL TIMES]***
ipset v4.5: Unknown set

> iptables -D INPUT -m set --match-set ipsum src -j DROP 2>/dev/null                          

> iptables -I INPUT -m set --match-set ipsum src -j DROP                                      
iptables v1.3.8: Unknown arg `(null)'                                                         
Try `iptables -h' or 'iptables --help' for more information.                                  
>                                                                                             
@stamparm
Copy link
Owner

you should really find some manual on ipset for your firmware. also, this looks like some ancient ipset. maybe you could find something out with ipset -h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants