Metarouter images

Done:
http://openwrt.glowingmonkey.org/trunk/
It’s junk a simple wget --mirror job, and the main index page still points to openwrt.wk.cz, but the lower links should work.

At home I cannot access http://openwrt.wk.cz because my ISP does not support IPv6. I have downloaded all from your site. Thank you very much.

Does anybody know possible way just change asterisk default configuration files of the image (.gz file), without rebuilding it? I tried to use 7-ZIP. It allow me to change files of the image without extracting it. But when I upgraded asterisk configuration files of the image, image become unable to import into metarouter. Metarouter says “Archive is too short”

Second thin is, yesterday I had power issue and router rebooted. But /etc/asterisk/users.conf file has broken. Just became blank file. All other files “/etc/asterisk/extensions.conf, /etc/asterisk/extconfig.conf” are OK. How can I automate process “backup users.conf file every day and replace original users.conf by this backup file after every reboot occurs”

Well, it’s not just a .gz (gzip) file, it’s a .tgz / .tar.gz file, so it’s a compressed “tarball”. I have no familiarity with 7-ZIP, but a quick Google reveals it to be a Windows-based multiformat compressed archive utility. If you are modifying the tarball with 7-ZIP, and RouterOS can no longer import it after that, then it seems clear that 7-ZIP is doing something wrong, and is corrupting the file when you try to use 7-ZIP to modify the file. So…moral of the story is, don’t use 7-ZIP, I guess. Something must be buggy either with its TAR support, or its GZIP support.

I have never bothered to try to modify the MetaROUTER tarball images directly, because I’ve had no need to. If I want to make a change, I always make it in the OpenWRT build environment. However, in theory, making your own tarball without recompiling everything should be possible. Rather than using 7-ZIP, why don’t you use the actual tools that made the file in the first place? tar and gzip. Decompress the file somewhere, make the changes that you want to the directory tree you unpacked from the tarball, and then recompress the entire directory tree again into a new compressed tarball.

Long term, if you are going to be making many changes, it would serve you best to teach yourself how to perform an OpenWRT build.

Sounds like an issue similar to what others were seeing with http.conf corruption after not shutting down the system cleanly. You might look back through this thread for other posts on the subject. I think some people may be creating cron jobs to schedule config backups, and then adding their own shell scripts to /etc/init.d that restore the latest backup during bootup. I haven’t looked into it myself.

Quite honestly, if you are unfamiliar with basic UNIX system administration concepts (such as using tar and/or gzip, cron, shell scripts, and the init bootup process), you’re probably going to have a tough time maintaining an Asterisk system. I am trying to make my MetaROUTER image as plug-and-play and “turnkey” as possible, but obviously it isn’t there yet. It’s a project I’ve been working on in my spare time and that I’ve voluntarily given back to the community. But I cannot reasonably be expected to support every single person that uses it, and help them make their own custom changes to it; I don’t have the time to train people how to use it correctly, much less do things with it or to it that it doesn’t do already. I am offering it freely “as-is”, so if it serves your purposes as-is, then great! And although I welcome feedback when things don’t work, as that will help make it better, if you need something other than what I’ve provided, you should be willing to take the time to teach yourself how to make it, and then get your hands dirty, or find someone you can pay to do what you need. :slight_smile:

– Nathan

You should make changes in running OpenWRT Metarouter and then export it to image. This is also good way to make backup: http://forum.mikrotik.com/t/export-image-from-metarouter/32321/1

Read about crond, crontab and /etc/rc.local in OpenWRT.

Thanks Nathan for quick reply. You are right. I didn`t know even file is Tarball. I will try to research and learn OpenWRT :slight_smile:

Thanks Payday. Good link to learn how to make backup.

Finally I got my own Asterisk OWRT image. Just modified after extracted and re-archived it to tgz using Tarball. Works great on RB450G, RB2011, RB1100AH. :smiley:

Great thanks to Nathan and Payday!

Hi All,

Great posts !
Already for a while I’m looking for a asterisk version for my RB2011

Any chance somebody can publish the routerboard image …?

Send me e-mail: nathana@fsr.com

– Nathan

Sorry guys, my mistake. It happend during DNS server changes. Now http://openwrt.wk.cz/ running again on IPV4 and IP6.

Not sure why this wasn’t done before or what I’ve broken in the process;

I’ve taken the latest OpenWRT Backfire snapshot (r33081). I then applied the metarouter patches to the longterm 2.6.32 kernel which is 2.6.32.61 at the time of writing. This is the 2.6.x with the latest projected EOL, somewhere Mid-2014 probably. I build a rootfs, it boots, but that’s as far as I’ve tested it.

I’m a bit unsure how to proceed now, do I try and get ‘Attitude Adjustment’ to run a 2.6.32 kernel? Or do I try to get the metarouter patches to work for the 3.x kernel?

Mattijs
oh, here’s the link to the rootfs for now: https://dl.dropboxusercontent.com/u/3764154/openwrt-metarouter/r33081_linux-2.6.32.61/openwrt_backfire_r33081_mr-mips-rootfs.tar.gz

Linux version 2.6.32.61 (mattijs@vbox) (gcc version 4.3.3 (GCC) ) #1 Tue Jul 9 17:18:47 CEST 2013
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
User-defined physical RAM map:
 memory: 01800000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001800
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001800
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 6096
Kernel command line: init=/etc/preinit console=hvc0 board=vm mem=24M 
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Memory: 20736k/24576k available (2060k kernel code, 3840k reserved, 284k data, 132k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
console [hvc0] enabled
Calibrating delay loop... 245.76 BogoMIPS (lpj=491520)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
MFS init
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 40
io scheduler noop registered
io scheduler deadline registered (default)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (metafs filesystem) readonly on device 0:11.
Freeing unused kernel memory: 132k freed
Warning: unable to open an initial console.
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -

Please press Enter to activate this console. PPP generic driver version 2.4.2
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (342 buckets, 1368 max)



BusyBox v1.15.3 (2013-07-09 17:11:02 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ---------------------------------------------------
 Backfire (10.03.x Snapshot, r33081)
 ---------------------------------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua 
  * 1/3 shot Bailey's  on the bottom, then Bailey's, 
  * 1/3 shot Vodka     then Vodka.
 ---------------------------------------------------
root@OpenWrt:/#

[/size]

@mattijs

Hi,

How do proceed?

As i see here: svn://svn.openwrt.org/openwrt/trunk/target/linux/generic at rev 33081, there is no patches-2.6.32 folder, it was removed at rev 31597

Can you explain me how do you proceed?

Thank

I’m well aware where and when Backfire was branched from the trunk :slight_smile: I also never mentioned 3.2, I’m aware that has been removed too. What I said was that I had a working 2.6.32.61 kernel, and then asked how to proceed :wink: Do I try and get the current OpenWRT trunk to work with my 2.6.32.61 kernel or do I try and get some 3.x kernel to boot on MetaRouter?

Fact of the matter is that I’m working on patches to get 3.x working, the bare kernel which would then compile both in buildroot and OpenWRT. Current state is that I have it compiling, booting and I even hacked a debug console in there so I can see where it hangs (because it does before hvc0 can come up). I guess it’s a matter of debugging now :slight_smile:

Sorry, bad keystroke, i want write 2.6.32 not 3.2.

I have also try to compile a 3.3.5 kernel with the attached patch (from "http://www.mikrotik.com/download/share/linux_3_3_5_patch.gz), i have made a metarouter patch that compile but metarouter never boot (or hang before any console output, or console output is broken), i am too bad to do a working metarouter patch :frowning:
openwrt-metarouter-3.3.5.tar (66.5 KB)
linux_3_3_5_patch.gz (1.01 MB)

liquidcz, can you add to your repository 2 packages: redsocks and srelay, please. I cannot compile this sources for mr-mips arch. But this packages very need for me

Hello everyone. Tell me whether you can run OpenWRT on RB OmniTIK U-5HnD?

you can run OpenWRT guest easily on that router.

I used to have a lot of options (all in this thread and many other) for the images they reboot the router at boot OpenWRT. Can you show what specific image will work with RB OmniTIK U-5HnD?

If I want to build my image, that is the question:

  1. Necessarily need a Mikrotik patch?
  2. When building OpenWRT which target platform must be chosen without the patch for RB OmniTIK U-5HnD?
  3. Is it possible to install other Linux system?
  4. How to set an arbitrary Linux?

Building openwrt patching it and so forth is a bit beyond my scope.

I want to run openwrt and openl2tp, but I cant find a build package for it. (I’m just looking for a lt2p client that I can run inside mikrotik metarouter that support shared secret without ipsec).

Can anyone more experienced help me out.

Mainly this post is addressed to Nathan and liquidcz

Is there a possibility to add to Nathan’s openwrt asterisk the firewall fail2ban ?
The reason is that we are getting lots of attack attempts from the internet, with fail2ban firewall we could subscribe (freely) to networksystemssolution.info
all attacks will be registered and therefore added to the blacklist.

Having this added to the image will make everyone’s life simple.
I am sure someone have noticed that due to the large amount of attacks the “/var/log/asterisk/messages.log” is getting very large hence rendering the asterisk unstable, slow and sometimes dead until next reboot.
If someone wondered why the asterisk (that is on public IP) becoming dead or slow the answer is the “messages.log” became too big.

Thank you for letting me know if that is possible.