Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
problem setting VPN
Author Message
chentron
Brekeke Addict


Joined: 15 Oct 2013
Posts: 26

PostPosted: Tue Apr 01, 2014 4:01 pm    Post subject: problem setting VPN Reply with quote

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
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Apr 01, 2014 6:55 pm    Post subject: Reply with quote

for the client registered through VPN, set dial plan rule in wiki page
http://wiki.brekeke.com/wiki/Brekeke-settings-for-VPN
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Wed Apr 02, 2014 10:31 am    Post subject: Reply with quote

Does the wiki which Hope suggested work?
Back to top
View user's profile
chentron
Brekeke Addict


Joined: 15 Oct 2013
Posts: 26

PostPosted: Thu Apr 03, 2014 3:27 pm    Post subject: Reply with quote

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
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Thu Apr 03, 2014 4:07 pm    Post subject: Reply with quote

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?
Back to top
View user's profile
chentron
Brekeke Addict


Joined: 15 Oct 2013
Posts: 26

PostPosted: Thu Apr 03, 2014 4:26 pm    Post subject: Reply with quote

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.
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Thu Apr 03, 2014 4:38 pm    Post subject: Reply with quote

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?
Back to top
View user's profile
chentron
Brekeke Addict


Joined: 15 Oct 2013
Posts: 26

PostPosted: Fri Apr 04, 2014 3:10 am    Post subject: Reply with quote

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
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Fri Apr 04, 2014 4:03 pm    Post subject: Reply with quote

> 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?
Back to top
View user's profile
chentron
Brekeke Addict


Joined: 15 Oct 2013
Posts: 26

PostPosted: Mon May 12, 2014 3:04 pm    Post subject: Reply with quote

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.
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Tue May 13, 2014 11:46 pm    Post subject: Reply with quote

Glad to know it Smile
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1