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
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users