Hamachi - PBX Unreachable

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,623
Reaction score
139
I have successfully installed Hamachi by using the install script that is in the Orgasmatron installer. However, I have the Windows hamachi client on my computer, and it shows the PBX as Unreachable with a yellow star. I can not access it via IP address, nor can I ping it. Also, when I go online from the CLI, I get a flashing green star on the windows client next to the PBX nickname for about 5 seconds and then it goes yellow or gray. Any clues?
 
Ok, now it shows up as green and online, but I can not ping it with its IP, nor can I access it via its IP in Firefox or IE. The PIAF box can not ping my desktop's hamachi IP and vice versa. What went wrong?
EDIT:
With the Hamachi IP, I can not use it to access the PBX if I am local (on same network). However, if I am remote I get the same result.
I have WAMP on two of my Hamachi PCs and I can get to them just fine. It is like the PBX is refusing the connection from the Hamachi IP.
 
Ping is blocked in the PBX in a Flash firewall. Try SSH or web access instead.
 
I can not access the PIAF server's web page (Apache) via the Hamachi IP address. Does the firewall block it? It worked before...
 
How many NATs?

Have you by any chance got more than one NAT'ing router between either/each of the PBX or the other Hamachi client and the internet? I found I got problems if more than one NAT/router at each end - fine otherwise.
 
Nope, just one. A DD-WRT built in firewall. Other than that nothing. Do I need to allow it in IPTables, or not? It is just a web port, so probably not. Any other clues?
 
Could be the software firewall on your PC

The tunnel being directly over the LAN is correct and works for me. I suppose this is Hamachi doing a really great job of finding the most direct route between the two hosts.

Looking at your video, I see you are sending packets to the PBX from the PC but not receiving any back. Maybe try turning off the PC's own firewall and see what happens?

Otherwise, assuming you followed Tom Kings instructions for Hamachi: If you use hampiaf get-nicks, then hampiaf list, does the PBX see the PC? Can you register a softphone on the PC to the PBX using the Hamachi IP address?
 
I tried turning off the firewall on the PC, and that did not work. I tried another way by using a remote PC, and now I have the WAN IP for the tunnel, but still no packets.
Code:
root@pbx:~ $ hampiaf get-nicks
Retrieving peers' nicknames ..
root@pbx:~ $
root@pbx:~ $ hampiaf list
root@pbx:~ $
It does not see anything. I used to be able to register a softphone via the Hamachi IP, but not anymore. Also, I used to be able to use the Web Interface via Hamachi IP, then now I can not.
I do not think I need to forward ports, because I have one with a port of 62156 and another with 52256, and one of those works. The one that works in a desktop computer with WAMP installed for testing purposes. So the packets are getting out of my router from one device, but not another...
 
Hmmm

What do you get in response to cat /etc/hamachi/state ?
 
Code:
root@pbx:~ $ cat /etc/hamachi/state
Identity   5.208.6.208
Nickname   HomePBX
AutoLogin  yes
 
This does seem to show that the PBX is not online on its Hamachi network. You should, as well as Identity, Nickname and "Autologin yes", see a line saying "OnlineNet <hamachi network name>. So for some reason the PBX has not joined the network.

Could you try: hampiaf join <network> <password>
 
Identity crisis?

Also, in your video, the address for the PBX is 5.209.241.44, but your pbx thinks it is a different address.......

Could your PC actually be on a different network from the PBX?
 
Code:
root@pbx:/etc/asterisk $ hampiaf get-nicks
Retrieving peers' nicknames ..
root@pbx:/etc/asterisk $ hampiaf list
   [LindsayHome]
       5.21.156.125     RossLaptop
     * 5.209.241.44     HomePBX
     * 5.13.92.6        RossHomeDesktop
     * 5.18.219.64      Cromwell-PC
root@pbx:/etc/asterisk $
Now I have the nicks, but I still can not get the the server via the Hamachi IP.
What do you mean the PBX thinks it is a different IP?
--
Now I see something:
I have two instances of Hamachi running at the same time. One HAMPIAF and one HAMACHI. I guess I started HAMACHI over HAMPIAF and that screwed it up.
Code:
root@pbx:/etc/asterisk $ hampiaf
You need to specify a command line parameter!

hampiaf command line parameters
************************************************************
* Command                    * Command                     *
************************************************************
* Start                      * stop                        *
* set-nick <nickname>        * login                       *
* logout                     * list                        *
* get-nicks                  * create <network> <password> *
* delete <network>           * evict <network> <5.x.x.x>   *
* join <network> <password>  * leave <network>             *
* go-online <network>        * go-offline <network>        *
************************************************************
Hamachi, a zero-config virtual private networking utility, ver 0.9.9.9-20

  version  : hamachi-lnx-0.9.9.9-20
  pid      : 3269
  status   : logged in
  nickname : HomePBX

root@pbx:/etc/asterisk $ hamachi
Hamachi, a zero-config virtual private networking utility, ver 0.9.9.9-20

  version  : hamachi-lnx-0.9.9.9-20
  pid      : 30913
  status   : logged in
  nickname : HomePBX
 
Now that I stopped both Hamachi processes and started just one, it is working. Wow, now I feel stupid...
You were right about the identity crisis

BUT...
Now I have two IPs for HomePBX (its nick) in my Hamachi window.
I have 5.208.6.208 and 5.209.241.44
How do I get rid of the old one (5.209...)?
(NM on this BUT section. I just went to the PC where I started the network and evicted the old one.)
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top