{Q}IP obtaining error After setting static ips

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Lantis
Moderator
Posts: 7084
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia
Contact:

Re: {Q}IP obtaining error After setting static ips

Post 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.
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

WeWe
Posts: 27
Joined: Fri Jun 14, 2013 4:12 pm

Re: {Q}IP obtaining error After setting static ips

Post 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

Lantis
Moderator
Posts: 7084
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia
Contact:

Re: {Q}IP obtaining error After setting static ips

Post 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

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

WeWe
Posts: 27
Joined: Fri Jun 14, 2013 4:12 pm

Re: {Q}IP obtaining error After setting static ips

Post 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

Lantis
Moderator
Posts: 7084
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia
Contact:

Re: {Q}IP obtaining error After setting static ips

Post by Lantis »

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

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: {Q}IP obtaining error After setting static ips

Post 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 :(

WeWe
Posts: 27
Joined: Fri Jun 14, 2013 4:12 pm

Re: {Q}IP obtaining error After setting static ips

Post by WeWe »

Please recommend to me the best router I can get with 40$
That have usb and can add ad block to it

Post Reply