The script requires wget with ssl capability.
It seems you don't have enough room to install all the required packages to make this work.
You could perhaps make it work by removing the bit where it checks if you have the correct version of wget, and then remove the adaway url entry, but you'll be using a significantly smaller ad list than optimal.
{Q}IP obtaining error After setting static ips
Moderator: Moderators
Re: {Q}IP obtaining error After setting static ips
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
https://lantisproject.com/blog
Please be respectful when posting. I do this in my free time on a volunteer basis.
https://lantisproject.com/blog
Re: {Q}IP obtaining error After setting static ips
thank you.
can you tell me what line should i delete from the script
and if there any other script for blocking porn only can you guide me
and what should i do to have enough room to install all the required packages to make this work i don`t use any other script or plugins
can you tell me what line should i delete from the script
and if there any other script for blocking porn only can you guide me
and what should i do to have enough room to install all the required packages to make this work i don`t use any other script or plugins
Re: {Q}IP obtaining error After setting static ips
remove lines 23 to 49
remove line 76
change line 98 to be
and line 100 to be
add a line after line 112 that says
if this doesn't make it work then you simply don't have enough space i'm sorry. What kind of router do you have?
As for blocking porn sites, i can't find any text based lists that suit this purpose.
perhaps try: http://www.gargoyle-router.com/wiki/dok ... strictions
and domain contains a few key words of your choosing.
Code: Select all
#Need wget for https websites
.
.
.
fi
Code: Select all
wget -qO- --no-check-certificate "https://adaway.org/hosts.txt"|awk '{sub(/^127.0.0.1/, "0.0.0.0")} /^0.0.0.0/' >> /tmp/block.build.list
Code: Select all
egrep -v "^[[:space:]]*$" /etc/white.list | awk '/^[^#]/ {sub(/\r$/,"");print $1}' | grep -vf - /tmp/block.build.before > /etc/block.hosts
Code: Select all
cat /tmp/block.build.before > /etc/block.hosts
Code: Select all
rm -f /tmp/block.build.before
if this doesn't make it work then you simply don't have enough space i'm sorry. What kind of router do you have?
As for blocking porn sites, i can't find any text based lists that suit this purpose.
perhaps try: http://www.gargoyle-router.com/wiki/dok ... strictions
and domain contains a few key words of your choosing.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
https://lantisproject.com/blog
Please be respectful when posting. I do this in my free time on a volunteer basis.
https://lantisproject.com/blog
Re: {Q}IP obtaining error After setting static ips
thank you for helping me.
after edit script as you say i got this
my device is TP-Link TL-WR741N/ND v1
after edit script as you say i got this
Code: Select all
/etc$ chmod +x /etc/adblock.sh
/etc$ sh /etc/adblock.sh
iptables-mod-nat-extra is installed!
Updating config, if necessary...
Downloading hosts lists...
Sorting lists...
cat: write error: No space left on device
Cleaning up...
Restarting dnsmasq...
Re: {Q}IP obtaining error After setting static ips
you're simply out of space man. i can't help you any further.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
https://lantisproject.com/blog
Please be respectful when posting. I do this in my free time on a volunteer basis.
https://lantisproject.com/blog
Re: {Q}IP obtaining error After setting static ips
http://wiki.openwrt.org/toh/tp-link/tl-wr741nd
yep only 4 MB of flash and no USB port
Buy a new router
yep only 4 MB of flash and no USB port
Buy a new router

Re: {Q}IP obtaining error After setting static ips
Please recommend to me the best router I can get with 40$
That have usb and can add ad block to it
That have usb and can add ad block to it