Access restrictions causing reboot

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

wally_walrus
Posts: 9
Joined: Fri Nov 20, 2009 11:52 pm

Access restrictions causing reboot

Post by wally_walrus »

I installed Gargoyle as a package on top of Openwrt Kamikaze 8.09.1, adding the package repository as a "src line" in /etc/opkg.conf:

src gargoyle http://gargoyle-router.com/packages/kam ... 9/brcm-2.4

I was mainly interested in the QoS and Access Restrictions features, but I'm not able to make the Access Restrictions work. Basically when I add a restriction the router becomes unstable and enters a continuous rebooting loop as soon as a client tries to connect wirelessly. It's consistent, and it won't exit this loop because the clients will keep trying to connect (since their AP suddenly disappeared). The only way to prevent a reboot and remove the offending restriction rule is by unplugging the WAN cable to the modem (I'm on DSL PPPoE). If there are no restrictions rules it won't reboot. Let me know what info would help troubleshooting this issue

I am using Mozilla Firefox on a Linux host as browser

Thanks
this is a snapshot of the restriction I am trying to add
this is a snapshot of the restriction I am trying to add
snapshot3.jpg (83.81 KiB) Viewed 7118 times

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Access restrictions causing reboot

Post by Eric »

Ah, I think the problem is that I haven't updated the packages with the fixes from the latest firmware release (I forgot to upload the packages along with the firmware images). That sounds like a bug I found (and fixed) in ipt_weburl not too long ago.

I just uploaded the latest packages from 1.1.2 -- try reinstalling now.

wally_walrus
Posts: 9
Joined: Fri Nov 20, 2009 11:52 pm

Re: Access restrictions causing reboot

Post by wally_walrus »

Thanks, but I still can't find the updated packages

opkg list_installed | grep gargoyle
bwmon-gargoyle - 1.0.0-1 -
ddns-gargoyle - 1.0.0-1 -
gargoyle - 1.0.0-6 -
gargoyle-firewall-util - 1.0.0-1 -
httpd-gargoyle - 1.0.0-1 -
qos-gargoyle - 1.0.0-1 -
webmon-gargoyle - 1.0.0-1 -

opkg update
opkg list | grep gargoyle
bwmon-gargoyle - 1.0.0-1 - Bandwidth monitor for ...
ddns-gargoyle - 1.0.0-1 - A highly configurable ...
gargoyle - 1.0.0-6 - A user-friendly web interface ...
gargoyle-firewall-util - 1.0.0-1 - A couple of shell ...
httpd-gargoyle - 1.0.0-1 - A small web server for ...
qos-gargoyle - 1.0.0-1 - A set of QoS scripts ...
webmon-gargoyle - 1.0.0-1 - A small web server ...

same version 1.0.0...

and is ipt-weburl part of gargoyle? I did not install from the gargoyle repository, I ran (as per installation instr.):
opkg install gargoyle

opkg list_installed | grep ipt-weburl
kmod-ipt-weburl - 2.4.35.4-brcm-2.4-1 -
opkg update
opkg list | grep ipt-weburl
kmod-ipt-weburl - 2.4.35.4-brcm-2.4-1 - weburl

Sorry if I am missing something, this opkg is still new to me :).
Thanks again

wally_walrus
Posts: 9
Joined: Fri Nov 20, 2009 11:52 pm

Re: Access restrictions causing reboot

Post by wally_walrus »

I ran:

root@openwrt:~# opkg install gargoyle
Package gargoyle (1.0.0-6) installed in root is up to date.
root@openwrt:~#

what command do I need to run to reinstall the updated packages? I initially installed Gargoyle as a package on top of an existing OpenWrt base


Thanks

wally_walrus
Posts: 9
Joined: Fri Nov 20, 2009 11:52 pm

Re: Access restrictions causing reboot

Post by wally_walrus »

Anyone can help with the command to reinstall the gargoyle package? As per Eric he should have uploaded the 1.1.2 packages, however I can't find them.

I use:
http://gargoyle-router.com/packages/kam ... 9/brcm-2.4
as the repository in my /etc/opkg.conf file as I run Openwrt on a WRT54GS v1.0

when I try to reinstall I get:
root@openwrt:~# opkg install gargoyle
Package gargoyle (1.0.0-6) installed in root is up to date.
root@openwrt:~#

Thanks

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Access restrictions causing reboot

Post by Eric »

Sorry for the long delay in my response -- I've been visiting family out of town and had limited internet access.

The new packages are there -- the version number just didn't get bumped on the internal packages, so the router THINKS it's up to date. The packages causing the problems that need to be updated are kmod-ipt-weburl and iptables-mod-weburl. Try this:

Code: Select all

opkg remove kmod-ipt-weburl
opkg remove iptables-mod-weburl
opkg install kmod-ipt-weburl
opkg install iptables-mod-weburl
That should remove and then re-install the module with the bug in it.

wally_walrus
Posts: 9
Joined: Fri Nov 20, 2009 11:52 pm

Re: Access restrictions causing reboot

Post by wally_walrus »

Thanks, I did what you suggested, and now it seems like it does not reboot any longer, but it still doesn't work as expected either... Maybe I misinterpret the rules, please take a look at the attached snapshot. What I'm trying to accomplish is:

- between the hours of 20:00 to 21:00 restrict the access to http ONLY, and at the same time BLOCK URLs containing the following words: facebook and xbox (anything that is of the form http://xxxxx.facebook.xxxx, or http://yyyyy.xbox.yyyyyy - this is to catch either the .com, .ca or any other of the domains)

It seems as though the access is not filtered at all

What am I missing?
Attachments
snapshot1.jpg
snapshot1.jpg (79.96 KiB) Viewed 7018 times

wally_walrus
Posts: 9
Joined: Fri Nov 20, 2009 11:52 pm

Re: Access restrictions causing reboot

Post by wally_walrus »

Also forgot to mention that my dyndns host was blocked due to abuse by the ddns-gargoyle client, and then my host was deleted after I disabled the client (due to no use). I read in another post that someone was suspecting a bug in ddns-gargoyle where instead of every 3 days (default value), the update was done every 3 hours. Did you fix this, and also upload the updated ddns-gargoyle package? Can I fix it by re-installing?

Thanks

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Access restrictions causing reboot

Post by Eric »

You are doing it right... but I just checked on the latest version and this is working fine for me.

And yes, a major bug in dynamic DNS was fixed recently.

Given that you're using a fairly old version, I suggest you just install the latest firmware binary in the downloads section (or install packages from a clean install of openwrt).

wally_walrus
Posts: 9
Joined: Fri Nov 20, 2009 11:52 pm

Re: Access restrictions causing reboot

Post by wally_walrus »

Thanks for the suggestion, but I already spent a lot of time customizing some other packages (installed and configured pptpd, added a few packages that were not installed by default, etc), so I'd rather not start from scratch if I absolutely don't have to...

Are you saying that your package repository at:
http://gargoyle-router.com/packages/kam ... 9/brcm-2.4

is not up-to-date? you mentioned something about the version number in the package name not being bumped up

So, to summarize: assuming your repository is up-to-date, which (Gargoyle-specific) packages do I have to reinstall or force-update to get the latest?

what if I just do:
opkg -force-reinstall install gargoyle

would this reinstall ALL Gargoyle packages and their dependencies?

Thanks

Post Reply