OpenWrt Forum Archive

Topic: soliciting webif extensions / modifications / enhancements

The content of this topic has been archived between 25 Apr 2018 and 29 Apr 2018. Unfortunately there are posts – most likely complete pages – missing.

jakaj wrote:

Ah, it appeared after I installed kmod-ppp, kmod-pppoe and ppp-mod-pppoe.

It seems to look for /sbin/ifup.pppoe.

Thanks for bringing this up. I think we should automatically install those when PPPOE is selected, instead of only show PPPOE when they are installed.

.....

Btw, for any poor IE users, today's revisions fix some problems with the logo display.

It would be nice if there was a static route editor.

Also, what is the proper way to configure iptables in OpenWRT in general? What if I want some complex rules, like for One-to-One NAT, etc.

jakaj wrote:

It would be nice if there was a static route editor.

Also, what is the proper way to configure iptables in OpenWRT in general? What if I want some complex rules, like for One-to-One NAT, etc.

I've been using FWBuilder as of late, using the following as a prolog script:

#!/bin/sh
# 
# flush.fw
# this script resets iptables firewall rules to nothing, in preparation for an FWBuilder Script

#
# Configurations
#
IPTABLES="/usr/sbin/iptables"

#
# reset the default policies in the filter table.
#
$IPTABLES -P INPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -P OUTPUT ACCEPT

#
# reset the default policies in the nat table.
#
$IPTABLES -t nat -P PREROUTING ACCEPT
$IPTABLES -t nat -P POSTROUTING ACCEPT
$IPTABLES -t nat -P OUTPUT ACCEPT

#
# reset the default policies in the mangle table.
#
$IPTABLES -t mangle -P PREROUTING ACCEPT
$IPTABLES -t mangle -P POSTROUTING ACCEPT
$IPTABLES -t mangle -P INPUT ACCEPT
$IPTABLES -t mangle -P OUTPUT ACCEPT
$IPTABLES -t mangle -P FORWARD ACCEPT

#
# flush all the rules in the filter and nat tables.
#
$IPTABLES -F
$IPTABLES -t nat -F
$IPTABLES -t mangle -F
#
# erase all chains that's not default in filter and nat table.
#
$IPTABLES -X
$IPTABLES -t nat -X
$IPTABLES -t mangle -X

I then have the FWBuilder script call this script first.  Works like a champ.

It would be nice if there was a static route editor.

A static routes page is planned, we/I just haven't got to it yet. We really could use a few more developers.

One of these days though you will update webif^2 and the page will be there for you wink.

As I've mentioned earlier, webif doesn't really work with ipkg-sh. Can the install script check for it (f.x. by checking if /bin/sh is a shell script), and install the full version of ipkg if needed.

I just checked out your project's SVN repository, and saw you're mirroring the entire OpenWrt ?!

Are you trying to make a complete fork of OpenWrt? Why? sad

I came up with this idea before too.. But no one noticed..

How about adding something to firewall configuration, limiting of out going connections.

for e.g. if user wants to connect to specific ip address (afaik iptables can't handle hostnames) connection would be re-directed to another ip address (possibly to another port too?). For e.g. I have a device that connects via lan to ntp server, unfortunately this configured ntp server no longer exists, so it would be nice to have it redirected to pool.ntp.org's ip address. Ofcourse this could be used to other stuff too..

jakaj wrote:

I just checked out your project's SVN repository, and saw you're mirroring the entire OpenWrt ?!
Are you trying to make a complete fork of OpenWrt? Why? sad

No, X-Wrt is NOT a fork of OpenWrt, and we are mirroring it all because its easier for us to develop pacakges this way (yes, I know we could use just the SDK and image builder). Also, its our perogative. Sometimes we may want to add minor patches to the base code, though we'll never require use of any X-Wrt specific patches to use our packages. Please, don't even get this started again. We're trying to do a good thing for OpenWrt, and are certainly not forking it like FreeWrt did.

UPDATE: Btw, don't frowny at me.

(Last edited by db90h on 9 Oct 2006, 04:22)

Guys, please add feature requests to the project's site. Its hard for me to keep up with them here.

db90h wrote:
jakaj wrote:

I just checked out your project's SVN repository, and saw you're mirroring the entire OpenWrt ?!
Are you trying to make a complete fork of OpenWrt? Why? sad

No, X-Wrt is NOT a fork of OpenWrt, and we are mirroring it all because its easier for us to develop pacakges this way (yes, I know we could use just the SDK and image builder). Also, its our perogative. Sometimes we may want to add minor patches to the base code, though we'll never require use of any X-Wrt specific patches to use our packages. Please, don't even get this started again. We're trying to do a good thing for OpenWrt, and are certainly not forking it like FreeWrt did.

UPDATE: Btw, don't frowny at me.

Sorry, didn't want to start anything again...

Anyways, that's nice to know.

We don't want to split the community, we are looking to create useful additions to openwrt, right now the biggest being the extended webif we are working on. Things from time to time, may be added back into the openwrt tree ( at the discretion of the openwrt devs ). Our main goal is to make it possible for those that may use a less stable/functional firmware than openwrt just because said firmware has a webgui to configure most things, the ability to use/setup openwrt. It is better said here http://www.bitsum.com/xwrt.asp

Project news:

Webif^2 will not be included in White Russian RC6. We aren't nearly done with the webif and the polishing necessary for a proper release. Since Openwrt wants to get RC6 out quickly there is no time to wait for us and/or test the changes. Also, there hasn't been any attempt to update the translations of webif^2 as of yet (it would be crazy to do that now, since things are changing so much on a daily basis).

We actually welcome this news as it allows us to develop with more freedom than ever before.

Help Wanted:

As always, we need more contributors. We specifically need the following:

  * Developers
  * Artists (for CSS themes)
  * Testers
  * Documentation/Wiki writers
  * Proliferators (spread the word)
  * Managers (I'm sure no manager)
  * Translators

If you want to see this project succeed, it's up to YOU to help out. Complacency is one of the reasons a good webif doesn't already exist for OpenWrt. If you don't do it, nobody else will. It's EASY to get involved with the X-Wrt project, we aren't selective and don't make you jump through hoops just to get write acces to our repository. We figure no permanent damage can be done, so we'll grant access to virtually anyone until they prove themselves uncapable of handling the responsibility.

Development news:

As always, much has changed in the last couple days. The 'update check' is working properly now, and I've also added an 'upgrade/reinstall' button to the Information / About page. So, keep an eye on updates to the webif, as using yesterday's build is a dis-service to yourself smile.

This weeks additions are numerous, so I won't try to mention them all. However, for end users the install process is easier than ever, they simply need to type in the IP address of their router into the form  here.

I got around to writing up the javascript for the color theme switching, so now people are no longer stuck with brown. I still have much work to do on the color themes themselves, but currently blue, navy blue, green, white, and brown are availble. For a sample, I've attached a pic of the themes as they are now.

http://www.bitsum.com/images/blue.png
http://www.bitsum.com/images/green.png
http://www.bitsum.com/images/white.png
http://www.bitsum.com/images/navyblue.png

(Last edited by db90h on 10 Oct 2006, 08:53)

In the last day I've went through and fixed known remaining bugs, made a number of minor improvements and adjustments, and have started going through the pages and validating them as valid XHTML. Pages that I've validated show the W3C Valid logo. There are many more left to go through, but most all are close to validation, just need a few typos and other errors cleaned up.

I've done this work in preparation for Milestone 1, a beta interim release. The current build I have posted is r727, which will be Milestone 1 release candidate 1. Assuming no major bugs pop up, this will be the milestone 1 code.

Hi.
When I click on the colores squares (to change the CSS), it seems to try to connect to the router, but the connection times out.
But if I click on stop and back, then I see the previous page with the CSS I had chosen.
It behaves as if after switching the CSS, I was redirected to some URL that I can't reach.
I'm using r727
- jp

(Last edited by jp on 11 Oct 2006, 10:17)

Also, when I click on Custom Startup, the box shows:

cat: /etc/init.d/S95custom-user-startup: No such file or directory

I suppose you should first check if the file exists before cat'ing it. :-)

-- jp

jp: I am having that issue also with the color changer, will look into it. I added a check for the file, it will be there in the next package. Thanks for the report.

I fixed the color switcher reload problem in Firefox, and the missing default custom startup script got doubly fixed wink. Revision r735 should do better. You can download it now. There are probably still a few browser specific issues. I recommend everyone switch to Opera ;p.

Hey -- it's fixed! :-)

Thanks a lot! Your work on webif^2 is very good!

-- jp

Thanks. You can now download r742, marked as milestone 1 rc2. Hopefully this one will really be the final milestone 1, but we'll see. I have tested under:

* Opera 9.0x
* Firefox 1.5x
* IE 6
* IE 7 beta

Not being a web developer I found the various browser compatibility issues extremely annoying, but everything seems ok now.

One thing I would like is a smaller OpenWrt logo. The current one is 13KB, which is totally uncalled for. If anyone cares to, please send me a smaller one. Here's the logo: http://openwrt.org//.styles/img/openwrt-logo.png . Keep the background transparent and don't make the image extents and larger than they already are. Otherwise, do whatever.

(Last edited by db90h on 12 Oct 2006, 07:30)

Strontian downsized the logo to about half the original size, its in the new revision 745. I say this before anyone goes to unnecessary effort.

I just updated the webif, and... This does not seem right:

webif^2 update available: r739 (you have r745)

Unless webif release numbers grow backwards.  :-)

-- jp

There are two other little problems on the system information page:

Device          WRT54G v??

It's a WRT54GL v1.1. I'm not sure it's possible to tell (programatically) if the router is a v.1.0 or v.1.1 GL... Maybe it's not easy either to tell if it's a GL or a G v4. But the question mark makes it look like something is not right.
Perhaps it should show something like  "WRT54G v4.0 or WRT54GL"

Username           root

That sounds funny, because I wouldn't expect anything else. (But maybe others will add more user accounts to the router, so well, it's not that strange...)

-- jp

Ever once in awhile the version file doesn't get uploaded with the ipk that is why you have the funny update.  The device codes are still a "under construction" part.

Ok, for the hard-core CLI-only guys, I've added a 6th color theme, black.. now, feel more like home? wink

http://www.bitsum.com/images/black.png

This looks cool but the text color in logread_frame.sh is black...so no text is showing up unless you select the text.

It's only possible to change the color scheme from the main page (webif.sh). When clicking on a color scheme on any other page, the link is active but the color scheme doesn't change.

I think that current system time should be shown either in info or status.

Cheers and keep the good work

PS - Btw, if translation to portuguese is required I could do it

(Last edited by mtsales on 14 Oct 2006, 09:42)