---------- Forwarded message ----------
From: Sreyan Chakravarty <sreyan.mail...@gmail.com>
Date: Tue, Dec 27, 2016 at 12:04 AM
Subject: Re: [Openvpn-users] Softphone does not connect through VPN
To: Selva Nair <selva.n...@gmail.com>


"Easiest approach would to be to use the VPN IP of the server in the
softphone. "

Yes thats what I am doing. Maybe I didnt make my problem clear.

My VPN and PBX are on the same box, so that which is the public IP of the
VPN is also the public IP of the PBX.

So once my VPN tunnel is setup, I use the same IP in my softphone to
connect to my PBX, but obviously on a different port.

So I am already using the using the VPN IP in my softphone. And it is still
not working.

Regards,
Sreyan Chakravarty

On Sun, Dec 25, 2016 at 9:16 PM, Selva Nair <selva.n...@gmail.com> wrote:

>
> On Sun, Dec 25, 2016 at 9:57 AM, Sreyan Chakravarty <
> sreyan.mail...@gmail.com> wrote:
>
>> Okay I have my OpenVPN server running on the Amazon AWS cloud, I have
>> generated a key pair for my client, I am able to connect to my VPN without
>> any problems. I can also surf the internet via my VPN and verify that my IP
>> is one that is of the VPN server.
>>
>> BUT,
>>
>> When I connect my softphone to my PBX(PBX runs on a different port than
>> that of the VPN) that is running on the same machine I see that my IP is
>> that of my home network.
>>
>
> When you use --redirect-gateway to send "all" traffic through the VPN, a
> route via the original gateway (say, through eth0) is setup for the VPN
> server's public IP. This is done to avoid routing loops but also causes all
> traffic to the server's public IP to go in clear, bypassing the tunnel.
>
> Easiest approach would to be to use the VPN IP of the server in the
> softphone. If that is not an option you can setup policy routing using
> iptables to mark the packet and a routing table to send it via the desired
> interface.
>
> Selva
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to