View previous topic :: View next topic |
Author |
Message |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Mon Jul 13, 2009 9:14 pm Post subject: HOWTO: OpenWRT MJMD5 w/Multiple ATA's & Screenshots |
|
|
I am putting together a �How-To� using MJMD5 with OpenWRT. I have been playing with OpenWRT for alittle over 3 years now and I am a hardcore fan of it. OpenWRT got me to love linux . There will be no GUI interface in this How-To (less overhead). Getting setup should take you 10-15 minutes after you finish flashing the router with the proper firmware. To figure this out please visit http://www.openwrt.org
*Once you flash the router you should have LuCI GUI by default but it is not used in this tutorial.*
OpenWRT Hardware Table
http://oldwiki.openwrt.org/TableOfHardware.html
This How-To is based on Kamikaze 8.09.1.
First, head over to http://downloads.openwrt.org/kamikaze/8.09.1/ and download the latest firmware for your router. If you are running a Broadcom based router then you probably want to download from the brcm-2.4 directory. This will be a 2.4 kernel and you will be able to use your wireless card. Alternatively, you can also download from the brcm47xx directory which will run a 2.6 kernel but wireless will NOT work. Again, these two directories are for Broadcom based routers.
I am personally running a 2.6 kernel that was compiled from the trunk and which is heavily modified for my needs and it is working perfectly with MJMD5 however, this topic is beyond the scope of this How-To.
Second, once you have flashed the router with the proper firmware you should be able to telnet into it. The IP is usually 192.168.1.1 if you�re using windows just to a command prompt and type:
Now you should see the OpenWRT logo come up once you have connected. Now it's a good time to change from telnet to SSH which is more secure and highly recommended. To do this type the following command.
Enter in a strong password; if your password is weak the system will let you know like in the picture below.
If you exit out of this telnet session, telnet will be disabled and SSH will be enabled. You can download a free SSH client from the link below. You just need putty.exe
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Once you have downloaded putty.exe just enter in the routers IP address in the Host Name (orIP address) field like the picture below and click on the open button.
Your username is root
and your password is whatever you entered up above
Next, you will need internet for this to work correctly. The file that handles this is network located in /etc/config/network to edit this file we will use vi which is text editor found in every linux disto (or at least every distro I have played with)
*NOTE* If your ISP assigns an IP to you via DHCP then this step is not necessary. This step is really for DSL users that require pppoe authentication. For DHCP users go down to the MJPROXY SETUP section. But make sure your internet is up and running first.
Code: | vi /etc/config/network |
which will bring up the screen below.
In order to be able to write into the file you will have to hit the "Insert" key on your keyboard once you have done that you will see at the bottom left hand corner change to "I" instead from a "-" .
Now go down to the #### WAN configuration section and make the following changes. Just use your arrow keys to go up and down left to right and backspace.
It might take some of you getting use it but don't worry, you will get it. If you screw something up don't worry just hit the ESC key and type-
*NOTE* there is a colon ":" in front of quit!
(enter)
This will exit out of the file without saving any changes.
Now, continuing with editing the WAN configuration section. These are the changes you have to make.
Code: | option username your-pppoe-username |
Code: | option password your-pppoe-password |
I know everyone loves pictures/screenshots so here ya go.
Now we have to save our changes. Just hit the ESC key and type-
*NOTE* there is a colon ":" in front of wq (wq = write & quit)
(enter)
Now, you should reboot your router just to make sure your internet is working.
(enter)
If you have Cable/FiOS that assigns you an WAN/Public IP via DHCP then you should already have internet.
You can check to see if your router is on the internet. Just type the following in a SSH terminal.
(enter)
If you get replies then your all good, if you�re not getting any replies then do your normal networking troubleshooting.
MJPROXY SETUP
Now, go ahead and log into your router via SSH and make sure you can get unto the internet.
Now we need to download the mjproxy binary and make it executable. You can download this right to your routers binary directory just issue the following command.
Code: | wget http://pagemen.110mb.com/mjproxy.zip -O /sbin/mjproxy && chmod +x /sbin/mjproxy && ls /sbin | (enter)
This will download the file and put it in your /sbin directory also make it executable and show you your /sbin directory. You should see mjproxy with green lettering like the screenshot below.
Now, what we want to do is make sure the service starts every time the router starts up. I have written a small script that can help us do this. Again, issue the following command or cut-n-paste.
Code: | wget http://scareye.110mb.com/mjproxyservice.zip -O /etc/init.d/mjproxy && chmod +x /etc/init.d/mjproxy && /etc/init.d/mjproxy enable | (enter)
This will do the following.
Download mjproxyservice.zip
Rename it to mjproxy and put it in the /etc/init.d directory
Enable it so that the service will start up every time the router reboots.
if you do a ls on the /etc/rc.d directory you should see S50mjproxy in light blue and you should also see mjproxy in green in the /etc/init.d/ directory. As outlined in the screenshot below.
Code: | ls /etc/rc.d/ && ls /etc/init.d/ | (enter)
We are almost done here.
Now, we need to edit the mjproxy file in /etc/init.d so you can put in your sip password. To do that just issue the following command.
Code: | vi /etc/init.d/mjproxy | (enter)
And the following screen should pop up.
Now just hit the "Insert" key (you should see the bottom left hand corner change from a "-" to an "I" which means you�re ready to edit) and change the data where it says YOURPASSWORD to your sip password and change the proxy server to your local server. Once your done just save and quit.
Hit the ESC key and type - (again there is a colon : before wq)
(enter)
If you want to have 2 ATA's all you have to do is just add your second ATA's password but change the port to 5071. Look at the screenshot below for the example.
Now all you have to do is save and quit (:wq) and reboot. Once the router comes back up just run the top command:
(enter)
You should see mjproxy process running if you have two accounts in the /etc/init.d/mjproxy file then you should see two instances of mjproxy.
*NOTE* If you are running to ATA's behind the same IP I would suggest you don't use the same proxy servers. I have noticed that sometime when an incoming call comes in it might ring on the wrong line or I should say not the intended telephone. What I have seen that works is just use the next closest proxy server.
So you are going to have one ATA point to
192.168.1.1:5070
and the second one to
192.168.1.1:5071
Some of you might have better idea's on how to do what I did and please by all means share with us. I hope this helps someone get their phone up and running (duh) and maybe learn little about Linux.
Have fun!
ScarEye
P.S. I probably made mistakes, if you find any please let me know and I will fix it.
Update 07/15/2009
HOWTO: Access mjproxy outside your home network using OpenWRT /w DDNS setup.
This is a really simple task. But lets make it a little interesting. Most of us have Dynamic IP's assigned to us by our ISP. I know in some cities if you were to reboot your router 5 times in a row you will have 5 different public IP's (Usually DSL Subscribers). This can be a problem if your traveling and your IP changes for whatever reason. Luckily for you, your running OpenWRT !!!
What we are going to do.
1. Install updatedd and updatedd-mod for no-ip
2. Open UDP port 5070 for your ATA to connect to from outside your home network
First, go to www.no-ip.com and register a free DDNS name. In my example I will be using myopenwrt.no-ip.org
Second, log onto your router and type the following.
(enter)
and you see what I have in the screenshot below.
Next, we want to install the DDNS client software with the no-ip mod. Type the following
Code: | opkg install updatedd updatedd-mod-noip | (enter)
Here is the screenshot. Depending on your router this may take 2-5 minutes. Just be patient.
Now all you have to do is just edit the configuration file. Type the following command.
Code: | vi /etc/config/updatedd | (enter)
The following screen should pop-up like in the screenshot below. Just fill in the information you used to sign up with noip.org. Remember to start typing you have to hit the "Insert" key on your keyboard and when you�re done hit the ESC key and type :wq (enter) to write and quit. If you mess up don't worry, just hit the ESC key and type quit! (enter) and it will quit without saving.
Now you can reboot your router or type the following
Code: | /etc/init.d/updatedd start | (enter)
and if you type
The last line in the log should say something like:
"OpenWrt user.notice syslog: myopenwrt.no-ip.org: updated successfully"
Now from your router you should be able to ping yourddns.no-ip.org and it should give a reply which should be your WAN interface IP.
Now what you can do is update your ATA so that SIP Server IP is yourddns.no-ip.org:5070 instead of 192.168.1.1:5070. After completing the next step you can take your ATA from your home and just bring it with you anywhere plug it into a LAN and start making phone calls.
Opening UDP Port 5070 on your OpenWRT WAN interface.
This is easy. Just do the following.
Code: | vi /etc/config/firewall |
Add the following below this line in the firewall config. (look below)
# include a file with users custom iptables rules
config include
option path /etc/firewall.user
Remember to edit hit the "Insert" key and when your done hit the ESC key and type :wq to write and quit. If you screw something up don't worry just hit the ESC key and type quit! And it will quit without saving.
config rule
option src wan
option src_dport 5070
option proto udp
option target ACCEPT
Look at screenshot below.
Now all you have to do is just restart the firewall and you should be good to go.
Code: | /etc/init.d/firewall restart |
Test out your ATA outside your local area network and it should be good. I am pretty sure you can even use Fring if you have an iPhone. 
Last edited by ScarEye on Wed Jul 22, 2009 10:59 am; edited 7 times in total |
|
Back to top |
|
 |
richardtaur Dan isn't smart enough to hire me
Joined: 17 Mar 2008 Posts: 123
|
Posted: Mon Jul 13, 2009 10:12 pm Post subject: |
|
|
That is pretty cool. Step-by-step... ^_^ Will put it in my favorite. |
|
Back to top |
|
 |
pancho1950 MagicJack Contributor
Joined: 07 Mar 2009 Posts: 54
|
Posted: Tue Jul 14, 2009 12:50 pm Post subject: |
|
|
ScarEye:
Did everything when I try :wq to save it this is what it said "/etc/init.d/mjproxy" Read-only file system.
Thank's
Pancho1950
Sorry was a typo i did :wq
this the firmware Firmware: DD-WRT v24 (05/20/0 voip
Time: 18:54:15 up 30 min, load average: 0.19, 0.16, 0.08
WAN: Disabled
Last edited by pancho1950 on Tue Jul 14, 2009 12:55 pm; edited 1 time in total |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Tue Jul 14, 2009 12:51 pm Post subject: |
|
|
pancho1950 wrote: | ScarEye:
Did everything when I try :wp to save it this is what it said "/etc/init.d/mjproxy" Read-only file system.
Thank's
Pancho1950 |
it should be :wq <------ W and Q
NOT
W and P
Hope this helps. |
|
Back to top |
|
 |
pancho1950 MagicJack Contributor
Joined: 07 Mar 2009 Posts: 54
|
Posted: Tue Jul 14, 2009 12:57 pm Post subject: |
|
|
ScarEye wrote: | pancho1950 wrote: | ScarEye:
Did everything when I try :wp to save it this is what it said "/etc/init.d/mjproxy" Read-only file system.
Thank's
Pancho1950 |
it should be :wq <------ W and Q
NOT
W and P
Hope this helps. |
Sorry was a typo i did :wq
this the firmware Firmware: DD-WRT v24 (05/20/0 voip
Time: 18:54:15 up 30 min, load average: 0.19, 0.16, 0.08
WAN: Disabled |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Tue Jul 14, 2009 1:07 pm Post subject: |
|
|
pancho1950 wrote: | ScarEye wrote: | pancho1950 wrote: | ScarEye:
Did everything when I try :wp to save it this is what it said "/etc/init.d/mjproxy" Read-only file system.
Thank's
Pancho1950 |
it should be :wq <------ W and Q
NOT
W and P
Hope this helps. |
Sorry was a typo i did :wq
this the firmware Firmware: DD-WRT v24 (05/20/0 voip
Time: 18:54:15 up 30 min, load average: 0.19, 0.16, 0.08
WAN: Disabled |
This HOWTO: is for OpenWRT I do not run DD-WRT however, you can try
:wq! (enter) see if that works. If that doesn't work you have to log in as root.
type su - (enter) and put in your root password and then try editing the file. or you can try sudo vi /etc/init.d/mjproxy which it should ask you for your root password I don't know if sudo exists on DD-WRT as I don't run it.
Thanks
ScarEye |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Tue Jul 14, 2009 10:17 pm Post subject: |
|
|
Hi Thank you for the excellent tutorial, I was wondering what ip to give in my ATA if I wanted to access my phone from outside my home n/w. I know I have to open some ports etc., but I am not sure how to do it. Can someone please tell me how i can accomplish that? |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 15, 2009 2:12 am Post subject: |
|
|
steve_togo wrote: | Hi Thank you for the excellent tutorial, I was wondering what ip to give in my ATA if I wanted to access my phone from outside my home n/w. I know I have to open some ports etc., but I am not sure how to do it. Can someone please tell me how i can accomplish that? |
I have updated the tutorial and it should help you with what your looking for and more !  |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 15, 2009 10:13 am Post subject: |
|
|
Thank you for the excellent tutorial using open wwrt, I am running dd-wrt and I shall try to see if that is possible with mine |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 15, 2009 10:30 am Post subject: |
|
|
steve_togo wrote: | Thank you for the excellent tutorial using open wwrt, I am running dd-wrt and I shall try to see if that is possible with mine |
Hi Sacreye,
Do you think this will work?>
http://www.no-ip.com/support/guides/routers/dynamic-dns-on-dd-wrt.html
and I cna register for multiple domains so I can have multiple mjs running. |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 15, 2009 11:13 am Post subject: |
|
|
steve_togo wrote: | steve_togo wrote: | Thank you for the excellent tutorial using open wwrt, I am running dd-wrt and I shall try to see if that is possible with mine |
Hi Sacreye,
Do you think this will work?>
http://www.no-ip.com/support/guides/routers/dynamic-dns-on-dd-wrt.html
and I cna register for multiple domains so I can have multiple mjs running. |
It should work, I don't see why not. |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 15, 2009 11:19 am Post subject: |
|
|
Scareye,
Thankyou for ur response, I am not that knowledgeable in Networking and Unix, Can you please clarify the following questions for me...
1. If I want to register multiple 3 MJ's then do i have to register 3 domains?
2. If i run 3 proxies will I need more space JFFS file system as I have only 376 KB left free?
3. I can attach a USB port to my router do u think I can gain more space in the file system by doing so?
4. What will be the performance if I run multiple MJ's?
5. In the link I posted the author is talking about Port Forwarding on DD-WRT
what will my settings be in that tab?
I have an ASUS WL-520gU, if that helps, I got this router last week specifically for this purpose.
Thank you once again for ur help |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 15, 2009 11:41 am Post subject: |
|
|
steve_togo wrote: | Scareye,
Thankyou for ur response, I am not that knowledgeable in Networking and Unix, Can you please clarify the following questions for me...
1. If I want to register multiple 3 MJ's then do i have to register 3 domains?
2. If i run 3 proxies will I need more space JFFS file system as I have only 376 KB left free?
3. I can attach a USB port to my router do u think I can gain more space in the file system by doing so?
4. What will be the performance if I run multiple MJ's?
5. In the link I posted the author is talking about Port Forwarding on DD-WRT
what will my settings be in that tab?
I have an ASUS WL-520gU, if that helps, I got this router last week specifically for this purpose.
Thank you once again for ur help |
I am going to answer your questions but this pertains to OpenWRT
1. No, you just need 1 ddns name. On your router you would be running 3 instances of mjproxy on different ports. 5070, 5071, 5072
2. You don't need anymore space. Your just going to run multiple instances of mjproxy on different ports as I stated above.
3. You don't need any USB for extra space. (Not yet at least)
4. I am running 2 at the same time and I have no problems. My CPU is at 0.00% so if you were to add another one I don't think it will make much of a difference.
5. You need to allow UDP port 5070 from the WAN. If you are going to have multiple mjproxy running on other ports then you would need to open up those ports also. ex: 5071 and 5072 (This goes for any routers not just DD-WRT or OpenWRT)
Thanks |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Fri Jul 17, 2009 2:53 pm Post subject: |
|
|
In the below command
mjproxy 0.0.0.0 5070 proxy01.YOURCITY.talk4free.com 5070 YOURLONGASSPASSWORD
what do the zeroes mean right after mjproxy |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Fri Jul 17, 2009 3:01 pm Post subject: |
|
|
I am guessing 0.0.0.0 5070 means any IP's can connect on that port. So, *I think* if you were to change that 192.168.1.20 5070 (LANip) or 25.65.84.12 5070(WANip) then only these particular IP's would be able to connect on port 5070. I can be 100% wrong but this is my guess as of now. Please correct me if I am wrong. |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Fri Jul 17, 2009 3:19 pm Post subject: |
|
|
ScarEye wrote: | I am guessing 0.0.0.0 5070 means any IP's can connect on that port. So, *I think* if you were to change that 192.168.1.20 5070 (LANip) or 25.65.84.12 5070(WANip) then only these particular IP's would be able to connect on port 5070. I can be 100% wrong but this is my guess as of now. Please correct me if I am wrong. |
Scareye, Thank you, I was trying to experiment with port forwarding on dd-wrt and it does not work, If i try to forward to my ATA it is working, I am not sure how to forward a port from the router back agin to the router. The router is able to forward ports to any other devices on the network except itself. Any ideas about how to do this, As i would like to use my ATA outside my home |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Fri Jul 17, 2009 3:32 pm Post subject: |
|
|
steve_togo wrote: | ScarEye wrote: | I am guessing 0.0.0.0 5070 means any IP's can connect on that port. So, *I think* if you were to change that 192.168.1.20 5070 (LANip) or 25.65.84.12 5070(WANip) then only these particular IP's would be able to connect on port 5070. I can be 100% wrong but this is my guess as of now. Please correct me if I am wrong. |
Scareye, Thank you, I was trying to experiment with port forwarding on dd-wrt and it does not work, If i try to forward to my ATA it is working, I am not sure how to forward a port from the router back agin to the router. The router is able to forward ports to any other devices on the network except itself. Any ideas about how to do this, As i would like to use my ATA outside my home |
Your using DD-WRT I am assuming. Your not really fowarding any ports. What you need to do is open port 5070 on the WAN side of the router. Do a search dd-wrt's website on opening ports on the WAN interface.
Hope this helps.
ScarEye |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Mon Jul 20, 2009 1:22 pm Post subject: |
|
|
ScarEye wrote: | steve_togo wrote: | ScarEye wrote: | I am guessing 0.0.0.0 5070 means any IP's can connect on that port. So, *I think* if you were to change that 192.168.1.20 5070 (LANip) or 25.65.84.12 5070(WANip) then only these particular IP's would be able to connect on port 5070. I can be 100% wrong but this is my guess as of now. Please correct me if I am wrong. |
Scareye, Thank you, I was trying to experiment with port forwarding on dd-wrt and it does not work, If i try to forward to my ATA it is working, I am not sure how to forward a port from the router back agin to the router. The router is able to forward ports to any other devices on the network except itself. Any ideas about how to do this, As i would like to use my ATA outside my home |
Your using DD-WRT I am assuming. Your not really fowarding any ports. What you need to do is open port 5070 on the WAN side of the router. Do a search dd-wrt's website on opening ports on the WAN interface.
Hope this helps.
ScarEye |
Scareye thanks, I tried searching and I am yet to find any info thats helpful, I have also asked a question in the forums., Lets see what happens.
Thank You,
Steve |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 22, 2009 9:49 am Post subject: |
|
|
Scareye,
Did u test your setting by taking your ATA outside your home. Because I am unable to open ports on my router and I am thinking to flash my router with OPEN WRT, I badly need to use an ATA outside my home network.
Thanks,
Steve |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 22, 2009 10:13 am Post subject: |
|
|
steve_togo wrote: | Scareye,
Did u test your setting by taking your ATA outside your home. Because I am unable to open ports on my router and I am thinking to flash my router with OPEN WRT, I badly need to use an ATA outside my home network.
Thanks,
Steve |
Yes, everything I wrote up I tested first. It works perfectly from the outside.
Thanks,
ScarEye |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 22, 2009 10:41 am Post subject: |
|
|
ScarEye wrote: | steve_togo wrote: | Scareye,
Did u test your setting by taking your ATA outside your home. Because I am unable to open ports on my router and I am thinking to flash my router with OPEN WRT, I badly need to use an ATA outside my home network.
Thanks,
Steve |
Yes, everything I wrote up I tested first. It works perfectly from the outside.
Thanks,
ScarEye |
Thankyou Scareye, Just a general question, How is Open WRT I am a noob in Unix and does it have some UI so that certain things can be configured. I am having the Asus 520-GU and I am planning on installing the one that supports wireless. Thank you for ur help !!!
By the way is there a demo site I could look at., I know there is one for DDWRT.
Thanks |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 22, 2009 10:57 am Post subject: |
|
|
steve_togo wrote: | ScarEye wrote: | steve_togo wrote: | Scareye,
Did u test your setting by taking your ATA outside your home. Because I am unable to open ports on my router and I am thinking to flash my router with OPEN WRT, I badly need to use an ATA outside my home network.
Thanks,
Steve |
Yes, everything I wrote up I tested first. It works perfectly from the outside.
Thanks,
ScarEye |
Thankyou Scareye, Just a general question, How is Open WRT I am a noob in Unix and does it have some UI so that certain things can be configured. I am having the Asus 520-GU and I am planning on installing the one that supports wireless. Thank you for ur help !!!
By the way is there a demo site I could look at., I know there is one for DDWRT.
Thanks |
Yes, I believe by default LuCI (GUI) is installed. So once you flash your router you can open up a web brower and type http://192.168.1.1 and play around. I don't think there is a demo site for OpenWRT though.
Thanks
ScarEye |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 22, 2009 12:07 pm Post subject: |
|
|
ScarEye wrote: | steve_togo wrote: | ScarEye wrote: | steve_togo wrote: | Scareye,
Did u test your setting by taking your ATA outside your home. Because I am unable to open ports on my router and I am thinking to flash my router with OPEN WRT, I badly need to use an ATA outside my home network.
Thanks,
Steve |
Yes, everything I wrote up I tested first. It works perfectly from the outside.
Thanks,
ScarEye |
Thankyou Scareye, Just a general question, How is Open WRT I am a noob in Unix and does it have some UI so that certain things can be configured. I am having the Asus 520-GU and I am planning on installing the one that supports wireless. Thank you for ur help !!!
By the way is there a demo site I could look at., I know there is one for DDWRT.
Thanks |
Yes, I believe by default LuCI (GUI) is installed. So once you flash your router you can open up a web brower and type http://192.168.1.1 and play around. I don't think there is a demo site for OpenWRT though.
Thanks
ScarEye |
Scareye,
Just another quick question, If i open a port on my WAN side will it be visible from a website like www.canyouseeme.org can you please test your router and also let me know.
Thankyou for ur help !!! |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 22, 2009 1:27 pm Post subject: |
|
|
steve_togo wrote: | ScarEye wrote: | steve_togo wrote: | ScarEye wrote: | steve_togo wrote: | Scareye,
Did u test your setting by taking your ATA outside your home. Because I am unable to open ports on my router and I am thinking to flash my router with OPEN WRT, I badly need to use an ATA outside my home network.
Thanks,
Steve |
Yes, everything I wrote up I tested first. It works perfectly from the outside.
Thanks,
ScarEye |
Thankyou Scareye, Just a general question, How is Open WRT I am a noob in Unix and does it have some UI so that certain things can be configured. I am having the Asus 520-GU and I am planning on installing the one that supports wireless. Thank you for ur help !!!
By the way is there a demo site I could look at., I know there is one for DDWRT.
Thanks |
Yes, I believe by default LuCI (GUI) is installed. So once you flash your router you can open up a web brower and type http://192.168.1.1 and play around. I don't think there is a demo site for OpenWRT though.
Thanks
ScarEye |
Scareye,
Just another quick question, If i open a port on my WAN side will it be visible from a website like www.canyouseeme.org can you please test your router and also let me know.
Thankyou for ur help !!! |
I don't think that site will work because it is scanning for open TCP connections we are using UDP on port 5070.
Thanks
ScarEye |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 22, 2009 1:33 pm Post subject: |
|
|
Here is a scan from my house to my router which is a few miles away from my house.
[[email protected] ~]# nmap -sU 1.2.3.4/32 -p5070
Obviously, IP 1.2.3.4 is fake I am not going to give my public IP. This IP belongs to my router which is running OpenWRT with MJMD5.
Starting Nmap 4.20 ( http://insecure.org ) at 2009-07-22 13:00 EDT
Interesting ports on 1.2.3.4:
PORT STATE SERVICE
5070/udp open|filtered unknown
Nmap finished: 1 IP address (1 host up) scanned in 0.699 seconds
[[email protected] ~]#
As you can see, UDP on Port 5070 is open
Thanks
ScarEye |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 22, 2009 4:12 pm Post subject: |
|
|
Scareye, Thanks for the info when i do the same in my ubuntu box it shows my ports are also open for udp but it is not connecting from an external IP I think this is because of UPNP services, I tried with IPTables and various syntaxes but it is futile., I have also posted a question the dd-wrt forums but no response for the past couple of days and i dont think my router is supported by openwrt either., so i guess my roads are closing.
I am not sure what else to do., and I guess i will try reading about tomato and see if it can do the same...
Anyways thanks a lot for ur help. |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 22, 2009 4:52 pm Post subject: |
|
|
steve_togo wrote: | Scareye, Thanks for the info when i do the same in my ubuntu box it shows my ports are also open for udp but it is not connecting from an external IP I think this is because of UPNP services, I tried with IPTables and various syntaxes but it is futile., I have also posted a question the dd-wrt forums but no response for the past couple of days and i dont think my router is supported by openwrt either., so i guess my roads are closing.
I am not sure what else to do., and I guess i will try reading about tomato and see if it can do the same...
Anyways thanks a lot for ur help. |
1. How did you do your port scan test? Lets say your router that's is running MJMD5 is at home. You should have done the port scan from your office or a network that is outside your home.
2. OpenWRT running kernel 2.4 should work with your router. Because it was working with Kamikaze 7.09 and now we are at 8.09.1
http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)Asus(2f)WL520GU.html?highlight=%28OpenWrtDocs/Hardware%29
^^^ you may have to copy and paste into your browser^^^
3. According to the link above Tomato 1.17D.trx works but there is no USB.
Thanks
ScarEye |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 22, 2009 4:59 pm Post subject: |
|
|
Quote: |
1. How did you do your port scan test? Lets say your router that's is running MJMD5 is at home. You should have done the port scan from your office or a network that is outside your home.
I Ran the port scan from home where mjmd5 is present so I think my port scanning test was wrong.
2. OpenWRT running kernel 2.4 should work with your router. Because it was working with Kamikaze 7.09 and now we are at 8.09.1
Thanks I shall check it out and see., Is there any big difference b/w the 2?
http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)Asus(2f)WL520GU.html?highlight=%28OpenWrtDocs/Hardware%29
^^^ you may have to copy and paste into your browser^^^
3. According to the link above Tomato 1.17D.trx works but there is no USB.
Sure I will check it out and see
Thanks
ScarEye |
Scar eye thanks once again for helping me |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 22, 2009 5:02 pm Post subject: |
|
|
Is CLI the only way to change my firmware to open WRT? It looks pretty complex though.. |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Wed Jul 22, 2009 5:37 pm Post subject: |
|
|
steve_togo wrote: | Is CLI the only way to change my firmware to open WRT? It looks pretty complex though.. |
If you have DD-WRT you should be able to download the firmware (OpenWRT) and flash the router via the DD-WRT GUI.
Thanks |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 22, 2009 6:15 pm Post subject: |
|
|
ScarEye wrote: | steve_togo wrote: | Is CLI the only way to change my firmware to open WRT? It looks pretty complex though.. |
If you have DD-WRT you should be able to download the firmware (OpenWRT) and flash the router via the DD-WRT GUI.
Thanks |
I tried uploading the following file this morning from my web gui and it said it is a wrong image file. I am not sure if i selected the correct file though. Please let me know if this is the wrong file.
openwrt-brcm-2.4-squashfs.trx
Thanks,
Steve |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Wed Jul 22, 2009 11:58 pm Post subject: |
|
|
Scareye,
Thanks for your help, I am now able to connect from an external ip using IPTABLES, Finally someone was able to help me at the DD-WRT forums., But now I have this stupid problem., The calls are going directly to voicemail on one of my lines and my ATA is also ringing simultaneously., Kind of odd., Its does it occasionally with dongle also., So I guess I need to figure out the issue now.
Thanks for you time and Help Scar eye. |
|
Back to top |
|
 |
rameshb_v MagicJack Newbie
Joined: 23 Jul 2009 Posts: 5
|
Posted: Thu Jul 23, 2009 12:31 am Post subject: |
|
|
I have purchased MJ today and it is working with normal config settings. I did not use the mjmd5. Not sure how it is working. |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Thu Jul 23, 2009 3:51 pm Post subject: |
|
|
Hi Scareye,
Just a quick question, I am having a problem with my ATA running 2 lines can you please look at your setup and let me know if you have this issue....
I have two instances of MJproxy running on my Wireless router
mjproxy 0.0.0.0 5070 proxy01.YOURCITY.talk4free.com 5070 Line1
mjproxy 0.0.0.0 5071 proxy01.YOURCITY.talk4free.com 5070 Line2
All calls that come to port 5071 (Line 2) are directly sent to my MJ VM and my ATA is also ringing., So if i attend the call on my ATA I cannot here any voice. But If i try to make an outgoing call it is working perfectly fine.
Now if i swap the lines say i make 5070 (Line 1) to 5071 (Line 2) and vice versa the 5070 (Now Line2) is working and now 5071 (Line 1 due to the swap) is not working.
So i figured out it is not MJ problem any idea why this is happening because the call is ringing on my ATA which means the port is open., But the call is going to VM which could be it is not registered but only if it is registerd my ATA will ring., I am confused whats happening.
Thanks,
Steve |
|
Back to top |
|
 |
az1324 Dan isn't smart enough to hire me
Joined: 20 Feb 2008 Posts: 100
|
Posted: Thu Jul 23, 2009 6:45 pm Post subject: |
|
|
The proxy isn't written to support multiple ATAs being proxied from the same device. There needs to be more routing implemented to resolve the port conflicts. |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Thu Jul 23, 2009 7:35 pm Post subject: |
|
|
az1324 wrote: | The proxy isn't written to support multiple ATAs being proxied from the same device. There needs to be more routing implemented to resolve the port conflicts. |
Thanks, I see some people are having success using multiple MJ's on the same proxy for example., I see people with open wrt routers are able to use multiple MJ's on their wireless routers. |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Thu Jul 23, 2009 10:49 pm Post subject: |
|
|
steve_togo wrote: | az1324 wrote: | The proxy isn't written to support multiple ATAs being proxied from the same device. There needs to be more routing implemented to resolve the port conflicts. |
Thanks, I see some people are having success using multiple MJ's on the same proxy for example., I see people with open wrt routers are able to use multiple MJ's on their wireless routers. |
By the way I dont think the problem is with multiple proxies, If i run a proxy listener on port 5069 I still have that issue., It can be something else |
|
Back to top |
|
 |
pagemen Dan isn't smart enough to hire me
Joined: 15 Dec 2008 Posts: 128
|
Posted: Fri Jul 24, 2009 5:46 am Post subject: |
|
|
In theory, the same approach can be applied to DD-WRT -- just run two copies of mjproxy and you're done. So DD-WRT, Tomato or OpenWRT doesn't matter -- if OpenWRT works, then the other two should work out equally well, and there is no need to convert to OpenWRT. |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Fri Jul 24, 2009 8:30 am Post subject: |
|
|
pagemen wrote: | In theory, the same approach can be applied to DD-WRT -- just run two copies of mjproxy and you're done. So DD-WRT, Tomato or OpenWRT doesn't matter -- if OpenWRT works, then the other two should work out equally well, and there is no need to convert to OpenWRT. |
Pagemen I am having problem running it on port 5071 as i said earlier., My calls are going to voicemail as well as my phone is ringing at the same time.
I have two instances of MJproxy running on my Wireless router
mjproxy 0.0.0.0 5070 proxy01.YOURCITY.talk4free.com 5070 Line1
mjproxy 0.0.0.0 5071 proxy01.YOURCITY.talk4free.com 5070 Line2
All calls that come to port 5071 (Line 2) are directly sent to my MJ VM and my ATA is also ringing., So if i attend the call on my ATA I cannot here any voice. But If i try to make an outgoing call it is working perfectly fine.
Now if i swap the lines say i make 5070 (Line 1) to 5071 (Line 2) and vice versa the 5070 (Now Line2) is working and now 5071 (Line 1 due to the swap) is not working.
So i figured out it is not MJ problem any idea why this is happening because the call is ringing on my ATA which means the port is open., But the call is going to VM which could be it is not registered but only if it is registerd my ATA will ring., I am confused whats happening. |
|
Back to top |
|
 |
az1324 Dan isn't smart enough to hire me
Joined: 20 Feb 2008 Posts: 100
|
Posted: Fri Jul 24, 2009 6:57 pm Post subject: |
|
|
steve_togo wrote: | steve_togo wrote: | az1324 wrote: | The proxy isn't written to support multiple ATAs being proxied from the same device. There needs to be more routing implemented to resolve the port conflicts. |
Thanks, I see some people are having success using multiple MJ's on the same proxy for example., I see people with open wrt routers are able to use multiple MJ's on their wireless routers. |
By the way I dont think the problem is with multiple proxies, If i run a proxy listener on port 5069 I still have that issue., It can be something else |
Well that is just a different symptom of the same issue. The problem is port 5070 routing and like I said the proxy code doesn't do anything to handle multiple clients/instances.
I think the easiest fix would be to have the proxy rewrite the port on incoming packets using sip header "Via:" and replace 5070 with the proxy listen port. Pretty easy to change the code. Then multiple instances of the proxy shouldn't conflict with each other. Try it.
Edit: Ok i tried it this version of MJMD5CL seems to work on any port meaning you should be able to run multiple instances on one machine (on different ports). Might be a dirty fix but worked when i tested it (incoming/outgoing) Someone can fix and recompile the other code. http://www.mediafire.com/?mozzn50klwm
Last edited by az1324 on Fri Jul 24, 2009 8:21 pm; edited 1 time in total |
|
Back to top |
|
 |
pagemen Dan isn't smart enough to hire me
Joined: 15 Dec 2008 Posts: 128
|
Posted: Fri Jul 24, 2009 8:21 pm Post subject: |
|
|
I was thinking, for Linux, is it possible to assign mutli IP to same machine(eth0.0, eth0.1...etc.) and then the ATA connects to the local proxy using different IPs. I don't have mutli MJs to try but this should work... |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Fri Jul 24, 2009 8:31 pm Post subject: |
|
|
You can't have the same IP on the same machine. Also if you look at my tutorial I explained if you are going to have multiple proxies don't use the same proxy servers even though they are on different ports. Find a closer proxy server and use that for the second instance. This has worked for me. |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Fri Jul 24, 2009 8:52 pm Post subject: |
|
|
az1324 wrote: | steve_togo wrote: | steve_togo wrote: | az1324 wrote: | The proxy isn't written to support multiple ATAs being proxied from the same device. There needs to be more routing implemented to resolve the port conflicts. |
Thanks, I see some people are having success using multiple MJ's on the same proxy for example., I see people with open wrt routers are able to use multiple MJ's on their wireless routers. |
By the way I dont think the problem is with multiple proxies, If i run a proxy listener on port 5069 I still have that issue., It can be something else |
Well that is just a different symptom of the same issue. The problem is port 5070 routing and like I said the proxy code doesn't do anything to handle multiple clients/instances.
I think the easiest fix would be to have the proxy rewrite the port on incoming packets using sip header "Via:" and replace 5070 with the proxy listen port. Pretty easy to change the code. Then multiple instances of the proxy shouldn't conflict with each other. Try it.
Edit: Ok i tried it this version of MJMD5CL seems to work on any port meaning you should be able to run multiple instances on one machine (on different ports). Might be a dirty fix but worked when i tested it (incoming/outgoing) Someone can fix and recompile the other code. http://www.mediafire.com/?mozzn50klwm |
Thank you for your effort I see that this an EXE., And I have no idea to make changes for a DD-WRT router Can some one please tell me how to do the same or can some one do it.. Thanks
PS: I shall also post in DD-WRT thread |
|
Back to top |
|
 |
az1324 Dan isn't smart enough to hire me
Joined: 20 Feb 2008 Posts: 100
|
Posted: Fri Jul 24, 2009 8:57 pm Post subject: |
|
|
Yes sorry that was just a proof of concept. I don't have any of the router toolchains installed but someone who compiled the source before can modify and compile it again doing what I said about rewriting the port.
You could also try different proxy cities as suggested. |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Fri Jul 24, 2009 9:11 pm Post subject: |
|
|
az1324 wrote: | Yes sorry that was just a proof of concept. I don't have any of the router toolchains installed but someone who compiled the source before can modify and compile it again doing what I said about rewriting the port.
You could also try different proxy cities as suggested. |
Thanks, I have no idea how to do it in DD-WRT I have posted a request in the dd-wrt thread., Please look at it and correct it if i made any mistakes in my postins.,
By the way I tried Scareye's method of using multiple proxies in the router., Its not working for me at this point i am not sure if it is an issue with the router or it has to do something with multiple instances mjproxy. I am hoping it is MJPROXy as I got this router specifically for this and I hope this issue is corrected as soon as possible. |
|
Back to top |
|
 |
ScarEye MagicJack User
Joined: 09 Jun 2008 Posts: 31
|
Posted: Sat Jul 25, 2009 10:09 am Post subject: |
|
|
steve_togo wrote: | az1324 wrote: | Yes sorry that was just a proof of concept. I don't have any of the router toolchains installed but someone who compiled the source before can modify and compile it again doing what I said about rewriting the port.
You could also try different proxy cities as suggested. |
Thanks, I have no idea how to do it in DD-WRT I have posted a request in the dd-wrt thread., Please look at it and correct it if i made any mistakes in my postins.,
By the way I tried Scareye's method of using multiple proxies in the router., Its not working for me at this point i am not sure if it is an issue with the router or it has to do something with multiple instances mjproxy. I am hoping it is MJPROXy as I got this router specifically for this and I hope this issue is corrected as soon as possible. |
Have you tried using different SIP proxy as I mentioned above and in my tutorial?
If you have:
5070 freetalk1.newyork.whatever.com
the second one you should try
5071 fretalk1.newjersey.whatever.com
Thanks,
ScarEye |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Sat Jul 25, 2009 10:12 am Post subject: |
|
|
ScarEye wrote: | steve_togo wrote: | az1324 wrote: | Yes sorry that was just a proof of concept. I don't have any of the router toolchains installed but someone who compiled the source before can modify and compile it again doing what I said about rewriting the port.
You could also try different proxy cities as suggested. |
Thanks, I have no idea how to do it in DD-WRT I have posted a request in the dd-wrt thread., Please look at it and correct it if i made any mistakes in my postins.,
By the way I tried Scareye's method of using multiple proxies in the router., Its not working for me at this point i am not sure if it is an issue with the router or it has to do something with multiple instances mjproxy. I am hoping it is MJPROXy as I got this router specifically for this and I hope this issue is corrected as soon as possible. |
Have you tried using different SIP proxy as I mentioned above and in my tutorial?
If you have:
5070 freetalk1.newyork.whatever.com
the second one you should try
5071 fretalk1.newjersey.whatever.com
Thanks,
ScarEye |
Yeah its not working., That was my first try |
|
Back to top |
|
 |
jaybob413 MagicJack Newbie
Joined: 23 Mar 2009 Posts: 6
|
Posted: Sat Jul 25, 2009 4:25 pm Post subject: Looking for IXP422 binary (not MIPSEL) |
|
|
I am running OpenWRT 8.09 on an IXP422 based box. Just wondering if anyone has built a binary for this, or if I need to get the source and install the toolchain to build one.
I hate to go through all the effort to set it up if it has already been done.
Update:
Decided to just go ahead and build it myself.
Here is the link if anyone else is running an IXP4XX OpenWRT box. This was compiled with the 8.09 toolchain.
http://www.mediafire.com/download.php?02zky2umzmj
Last edited by jaybob413 on Sun Jul 26, 2009 9:34 am; edited 1 time in total |
|
Back to top |
|
 |
completetech magicJack Apprentice
Joined: 26 Jul 2009 Posts: 16
|
Posted: Sun Jul 26, 2009 1:14 am Post subject: |
|
|
so multiple MJ's are or ARE NOT working on this?
and if so is it going to be possible to get this working again with asterisk???? |
|
Back to top |
|
 |
steve_togo MagicJack Expert
Joined: 09 Dec 2008 Posts: 84
|
Posted: Mon Jul 27, 2009 9:39 am Post subject: |
|
|
Scareye,
I have updated my router now to OpenWRT Still multiple MJ's are not working same issue., How is it working for you... THis is really odd I can make only outgoing calls but not recv any., I am not sure if there is any iptables command which u forgot to mention in ur post. Can you please tell me if everything is correct.
Thanks
Steve |
|
Back to top |
|
 |
|