You are not logged in.


### Our Homepage is down at the in progress !! ###

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

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

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
static_lease 00:01:02:03:04:05
static_lease 00:01:02:03:04:06
static_lease 00:01:02:03:04:07

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




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

From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166

Re: My tips and tricks :)


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.




Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB