AMiLDA FORUM

You are not logged in.

Announcement

### Our Homepage is down at the moment...work in progress !! ###

#1 2007-04-20 01:20:26

br_6104k
New member
Registered: 2006-12-20
Last visit: 2007-09-06
Posts: 4

My tips and tricks :)

Hi all!

I am using amilda about 6 month, thx to main developers, it's really good. I am using some tricks to reveal the full power
of my br6104k box wink

1) I think default dhcp_handler.sh is not really good (for me).

the point is that it restarts dnrd process every renew()
in my case - every hour, and you don't benefit from dnrd cache which is empty on start.
I add more accurate renew() handling: the new handler is available here
http://infostore.org/info/3080524

2) I am using local addon to dhcpd start script:

In AMiLDA/apps/etc/init.d/dhcpd
after line
    echo "option dns $LAN_IP_ADDR" >> /etc/udhcpd.conf
I've added line
    cat /etc/udhcpd.local >> /etc/udhcpd.conf

/etc/udhcpd.local is something like that
option domain myreal.domain.net
static_lease 00:01:02:03:04:05 192.168.2.2
static_lease 00:01:02:03:04:06 192.168.2.3
static_lease 00:01:02:03:04:07 192.168.2.4

3) really cool feature - iptables escapes reboot!
in /etc/init.d/firewall add functions

save ()
{
    echo "saving rules to /dev/mdt_data"
    iptables-save -c | gzip -c |dd of=/dev/mtd_data
}

restore ()
{
    echo "reading iptables rules from /dev/mtd_data"
    gunzip -c /dev/mtd_data | iptables-restore -c
}


mtd_data partition contains webpages.bin - which is used once - before flashing firmware webs process
verifies that supplied firmware contains this part.

After successful upgrade you can use this 64k as you wish!

You can tar-gzip your conf/firewall rules-counters/any data and dd it to /dev/mtd_data (size=64k)
Great feature.

4) and finally. I've implemented AMD5120 hardware port bandwidth manipulation,
which allows set TX and RX rates of every ethernet port.

To enable this download bwctl.tgz package http://infostore.org/info/3038838
and follow the instructions provided within it.

Feel free to can contact me by personal message in this forum, or by posting reply here smile

Cheers,
  tp.

Offline

 

#2 2007-04-22 09:49:56

sergioag
Developer
Peru
From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166
Website

Re: My tips and tricks :)

Hi

Thanks for the contribution. I have added #4 to the code. However, i have the following comments about the other ones:

#1: I'm currently reviewing the code. Almost sure i'll include it.
#2: That looks good, but i'll add an if [ -f  to check if the file exists and if so, then append it.
#3: There are multiple points for not to do this:

    1. That flash area will be used by the configuration when i add the new XML-format configuration.
    2. Such file will not be able to survive a reboot.
    3. All useful iptables features will be implemented by the web interface.

Again, thanks for your contribution.

Sergio

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB