linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] Problem when using linphone with VPN


From: Vladimir Kudrya
Subject: Re: [Linphone-users] Problem when using linphone with VPN
Date: Fri, 15 Apr 2016 19:04:54 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0

Proper source address can be derived from local routing table with simple one-liner:

ip r get $SIP_SERVER_IP| sed -n 's/.*src[[:space:]]\+\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'

On 2016-04-08 17:50, Vladimir Kudrya wrote:
Perhaps some clues can be found in Twinkle's code. It somehow manages to find the right address.

2016-04-08 17:08, Michael Richardson пишет:
Vladimir Kudrya <address@hidden> wrote:
> Confirming this. It is hitting users connecting to office via VPN with
     > dynamic address allocation.
> Dumping SIP traffic reveals that linphone sends wrong address (takes it from > ethernet device) when registering on SIP server, while the route to SIP
     > server lies clearly via ppp interface.

> Tricking linphone with 'nat_address' helps, but only until address gets
     > changed.

Yeah.
We have this problem in many places: webrtc, IKE and a bunch of other places.
We really need a system call that says:
"pretend to send this packet to target X, and tell me what source IP you'd use"

Otherwise, applications wind up having to read all the interfaces and all the ipv4,ipv6 and the ip rules, etc. and emulate all of the kernel stuff. It's impossible.

--
] Never tell me the odds! | ipv6 mesh networks [ ] Michael Richardson, Sandelman Software Works | network architect [ ] address@hidden http://www.sandelman.ca/ | ruby on rails [


_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]