problem setting VPN

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
chentron
Posts: 26
Joined: Tue Oct 15, 2013 3:24 am

problem setting VPN

Post by chentron »

1. Brekeke Product Name and Version: 3.3.4.4

2. Java version: 1.7.0.45

3. OS type and the version: debian 7.0

4. UA (phone), gateway or other hardware/software involved:
portech dmt gateway

5. Your problem:
The gateway is working ok without VPN, and is in different network than brekeke
I am trying to setup a vpn.
I get connect the gateway to brekeke. It appear on registered clients but I am not able to establish calls.
brekeke log show error 404 and 407, but I am sure it is not a problem of password.

In the past I have problem with NAT, and when i solved the info that appear in registered clients was something like:

dmt@ip_public (ip_public)

Now i see:
dmt@ip_VPN (ip_public)

I think it must to be:
dmt@ip_VPN (ip_VPN)

but i am not sure and I dont know how to get change.

VPN server is installed in same computer that brekeke, so the ip_public is same than ip public of brekeke.

Help is welcome.
Thanks
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

for the client registered through VPN, set dial plan rule in wiki page
http://wiki.brekeke.com/wiki/Brekeke-settings-for-VPN
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Does the wiki which Hope suggested work?
chentron
Posts: 26
Joined: Tue Oct 15, 2013 3:24 am

Post by chentron »

thanks, but it doesnt work:

**************
$request = ^REGISTER
$addr = 192.168.30.26

&register.contact.remote = true
$continue = true
*****************

REGISTER CLIENT shows:

sip:110@192.168.30.26:5060
(37.87.xx.xx:57488)
***************
i think it might be
sip:110@192.168.30.26:5060 (192.168.30.26)


other suggestion ?
thanks
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

It seems REGISTER packet came through 37.87.xx.xx.

Is it UA's global IP address?
If so, please check the UA's configuration to use the VPN.

Is 192.168.30.26 the SIP Server's VPN address?
chentron
Posts: 26
Joined: Tue Oct 15, 2013 3:24 am

Post by chentron »

brekeke sipserver and VPN hosted in same server
VPN server is 192.168.30.1
Brekeke Interface 192.168.30.1, 37.187.xx.xx

gateway UA has 192.168.30.26

so gateway get to the brekeke trough VPN and must send and receive all traffic trough VPN.
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

Can you see gateway's REGISTER in the [Dial Plan]->[History] page?

Can you send a ping to 192.168.30.1 from another 192.168.30.x?

Did you set "192.168.30.1" as the SIP Server's IP address in the gateway's configuration?
chentron
Posts: 26
Joined: Tue Oct 15, 2013 3:24 am

Post by chentron »

Can you see gateway's REGISTER in the [Dial Plan]->[History] page?

yes i see this:
REGISTER sip:37.187.xx.xx register 37.187.xx.xx:57488 (UDP)

Can you send a ping to 192.168.30.1 from another 192.168.30.x?
yes, i can.

Did you set "192.168.30.1" as the SIP Server's IP address in the gateway's configuration?

yes , configuration >>>system >>>network>>> interface address>>> 192.168.30.1
also I see in:
Status Summary
Status Active
Interface 192.168.30.1, 37.187.xx.xx
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

> yes i see this:
> REGISTER sip:37.187.xx.xx register 37.187.xx.xx:57488 (UDP)

It seems the gateway sent the REGISTER to 37.187.xx.xx instead of 192.168.30.1!

Check the gateway's setting. It must indicate 192.168.30.1 not 37.187.xx.xx.

Which VoIP gateway product are you using?
chentron
Posts: 26
Joined: Tue Oct 15, 2013 3:24 am

Post by chentron »

Dear Laurie
sorry for the delay in my answer.
Yes, you was right.
gateway was trying to register 37.187.xx.xx
now I correct to 192.168.30.1 and it is working OK.
thanks a lot for your help.
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

Glad to know it :)
Post Reply