Asterisk on Tomato firmware? How? Also, SSH tunneling?

Discussion in 'Tomato Firmware' started by sofakng, Jul 30, 2009.

  1. sofakng

    sofakng Network Guru Member

    Two quick questions...

    1) What is the easiest way to get Asterisk running on my Tomato firmware? I have a WRT54G (not sure which version) but my JFFS2 filesystem only has 750 KB free.

    2) Can I somehow enable SSH tunneling on the router? (eg. tunnel RDP from work to my home router with SSH running on the router)

    Thanks for any help
  2. jan.n

    jan.n LI Guru Member

    You better ask for permission first, because that would circumvent the security measures set forth by your IT security department. Which, in turn, could easily make you go to the nearest job center...
  3. mrap

    mrap LI Guru Member

  4. occamsrazor

    occamsrazor Network Guru Member

    Just curious... why SSH and not OpenVPN?
    Will be interested in anything SIP-related you get working on Tomato.....
  5. kornaz

    kornaz Addicted to LI Member

    You don't have to enable it - it's already enabled. Just setup the tunnel in your SSH client and connect to your Tomato router through SSH. I connect to my home Windows box through RDP running in SSH tunnel on Tomato router almost everyday without any problems so far. The only problem could be slow router CPU - my WRT54GL manages to push only 500-600 KB/s (4-5 mbps) max in a tunnel (dropbear hogs all the CPU resources in this case), but I believe that you're not going to watch movies over your RDP session :)
  6. premudriy

    premudriy LI Guru Member

    Can you, guys, share how to do rdp over ssh with Tomato, please? I've read online and they are talking about setting up OpenSSH on windows for that to work. Can I do this just with Tomato alone without setting up ssh server?

    Thanks and sorry for hijacking the thread, but it's soooo tempting to do rdp over ssh.
  7. kornaz

    kornaz Addicted to LI Member

    No, you don't need any SSH daemon in your Windows box - it's enough to have SSH daemon running in your Tomato router :)

    So the tunnel connection will look like this: Computer in WAN (A) -> Tomato router (B) -> Computer in LAN (C). Your goal is to connect from A to C through RDP.


    1) Enable SSH remote access in Tomato: Administration -> SSH Daemon, check "Enable at Startup" (if SSH is not enabled yet) and "Remote Access" - new input box "Remote port" will appear - enter any port you like - this port will be used to access your Tomato router through SSH from the outside (WAN). Press "Save".

    2) Setup the tunnel in your SSH client on the computer A. If you use PuTTY, do it like this:


    3) Go back to Session in PuTTY and enter your routers external IP address and SSH remote port (from step 1), press "Open", log-in to your router. At this point (if you connected and logged-in successfully) SSH tunnel is ready for your RDP connection.

    4) Launch remote desktop client on computer A, enter "<source_port>" (eg., Source port is the same one you specified in step 2. Now press "Connect" in your remote desktop client :)
  8. gawd0wns

    gawd0wns Network Guru Member

    I think an OpenVPN TAP setup would be much easier and resource friendly. If you install TomatoVPN on your home router, you can connect to it from the outside world, and be granted a LAN ip address and have full access to the LAN. No messy tunnels.

    From my limited experience with Asterisk, and you may disagree, I find it slow and a pain in the a$$ to setup. If you don't need a physical phone, I suggest you use a Ventrillo setup. If you need a physical phone, maybe 3cx would work for you if you have a windows based server. (limited to 4 calls at once in freeware mode, I think...).
  9. premudriy

    premudriy LI Guru Member

    Thank you very much, Kornaz!
  10. sofakng

    sofakng Network Guru Member

    Thanks for all of the help everybody!

    Any information on getting Asterisk to run on Tomato? :(
  11. szfong

    szfong Network Guru Member

    Take my advice, who have tried running Asterisk w/ dd-wrt, the 240MHz (newer models), & 8/32 memory was barely running and you couldn't do much w/ the router. You have to dedicate an entire router just for Asterisk, no routing, qos functions at all while Asterisk was in use. Slowdown crashes, memory contstraints, etc. Not enough features, had to strip it bare of features. Waste alot of time. Get a real low power computer or an embedded SBC for Asterisk. People sell such embedded stuff with Asterisk preconfigured for $500-1000US & I can built one w/ same hardware for about $250 w/ everything new.

    Get an old PC and test it out & learn from it, then "miniaturize" & "run it GREEN" later.
  12. rizsher

    rizsher Network Guru Member


    Can you please share your hardware details etc?.

    However, I recall reading folks managing to get vanilla Asterisk running with OpenWRT, surely cutdown to the barebone, no transcoding etc, but it can work.

  13. szfong

    szfong Network Guru Member

    PC Engine & Hacom makes some nice boards, as does Soekris. Hacom most expensive, PC Engine's Alix cheapest. They are what most use nowdays, with either flash memory or Laptop HDD. I've used Alix and Soekris.

    good luck.
  14. gn3t00r

    gn3t00r Addicted to LI Member

    Regarding VoIP, SipX is much better product than Asterisk.

    IMHO, I don't think running VoIP server on router is good idea. You want your router to be as stable as possible so it won't interrupt your internet connection for all the machines in your LAN. Plus, the hardware probably can not provide enough "juice" to handle VoIP packet to have a good quality of service. Use a separate machine or VM image on a different machine if you are really resource constraint.
  15. teddy_bear

    teddy_bear Network Guru Member

    Although this is generally true that the router has limited resources and running additional software on it is not always a good idea, I run Asterisk on my Asus wl-520gu (which is also my main home router) since November of last year with no issues whatsoever. Granted, I only use basic Asterisk functionality, and only have 3 to 6 clients connected to the router simultaneosly. OTOH if your network is much busier than that you may want to consider using more powerful router anyway...

    See this excellent write-up with detailed instructions on installing and configuring Asterisk on wl-520gu.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice