Page 3 of 3
Re: {Q}IP obtaining error After setting static ips
Posted: Sun Mar 22, 2015 2:25 am
by Lantis
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.
Re: {Q}IP obtaining error After setting static ips
Posted: Sun Mar 22, 2015 2:37 am
by WeWe
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
Re: {Q}IP obtaining error After setting static ips
Posted: Sun Mar 22, 2015 2:46 am
by Lantis
remove lines 23 to 49
Code: Select all
#Need wget for https websites
.
.
.
fi
remove line 76
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
change line 98 to be
Code: Select all
egrep -v "^[[:space:]]*$" /etc/white.list | awk '/^[^#]/ {sub(/\r$/,"");print $1}' | grep -vf - /tmp/block.build.before > /etc/block.hosts
and line 100 to be
Code: Select all
cat /tmp/block.build.before > /etc/block.hosts
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.
Re: {Q}IP obtaining error After setting static ips
Posted: Sun Mar 22, 2015 3:11 am
by WeWe
thank you for helping me.
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...
my device is TP-Link TL-WR741N/ND v1
Re: {Q}IP obtaining error After setting static ips
Posted: Sun Mar 22, 2015 3:13 am
by Lantis
you're simply out of space man. i can't help you any further.
Re: {Q}IP obtaining error After setting static ips
Posted: Sun Mar 22, 2015 3:42 am
by ispyisail
http://wiki.openwrt.org/toh/tp-link/tl-wr741nd
yep only 4 MB of flash and no USB port
Buy a new router

Re: {Q}IP obtaining error After setting static ips
Posted: Wed Dec 23, 2015 8:14 pm
by WeWe
Please recommend to me the best router I can get with 40$
That have usb and can add ad block to it