freeswitch not honoring /etc/hosts file
Hello, I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS? I am running Debian 10 with freeswitch 1.10.2 Thanks,
Freeswitch - more particularly, sofia - does not use the standard Linux libc resolver. For more insight, see: https://github.com/signalwire/freeswitch/blob/master/libs/sofia-sip/libsofia... As far as I know, there is no way to get sresolv to use /etc/hosts. Your best bet is to run a DNS cache of your own (e.g. dnsmasq) and alias the desired hostname there, then put that in your DNS query resolution path. -- Alex On Wed, Mar 25, 2020 at 05:04:44PM -0400, Joli Martinez wrote:
Hello,
I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS?
I am running Debian 10 with freeswitch 1.10.2
Thanks,
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Actually at least on 1.8 this works: sip_gethostbyname=true}sofia/external/9999@myserver.whatever.com On Mon, 30 Mar 2020 at 20:54, Alex Balashov <abalashov@evaristesys.com> wrote:
Freeswitch - more particularly, sofia - does not use the standard Linux libc resolver.
For more insight, see:
https://github.com/signalwire/freeswitch/blob/master/libs/sofia-sip/libsofia...
As far as I know, there is no way to get sresolv to use /etc/hosts. Your best bet is to run a DNS cache of your own (e.g. dnsmasq) and alias the desired hostname there, then put that in your DNS query resolution path.
-- Alex
On Wed, Mar 25, 2020 at 05:04:44PM -0400, Joli Martinez wrote:
Hello,
I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS?
I am running Debian 10 with freeswitch 1.10.2
Thanks,
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
I remember a couple years ago I had the same problem, I ended up installing and configuring dnsmasq. I don’t think FS looks at the hosts file. On Wed, 25 Mar 2020 at 21:31, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS?
I am running Debian 10 with freeswitch 1.10.2
Thanks, _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Hi, I strongly suspect this is your VPN software. VPN’s must intercept IP packets to route them through the VPN. That reroute include DNS resolution of the final destination. The VPN needs to check the hosts file for the final IP. FreeSwitch has nothing to do with it. To test, with the VPN up, ping a name in your hosts file. Please let me know the results. Sean From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Joli Martinez Sent: Wednesday, March 25, 2020 5:05 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] freeswitch not honoring /etc/hosts file Hello, I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS? I am running Debian 10 with freeswitch 1.10.2 Thanks,
Ping would use the system’s dns stack, whereas FS uses its own and doesn’t use the hosts file (again, a few years ago) I can make a quick test, and report back. On Fri, 27 Mar 2020 at 16:04, Sean Devoy <sdevoy@bizfocused.com> wrote:
Hi,
I strongly suspect this is your VPN software. VPN’s must intercept IP packets to route them through the VPN. That reroute include DNS resolution of the final destination. The VPN needs to check the hosts file for the final IP. FreeSwitch has nothing to do with it.
To test, with the VPN up, ping a name in your hosts file. Please let me know the results.
Sean
*From:* FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *On Behalf Of *Joli Martinez *Sent:* Wednesday, March 25, 2020 5:05 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] freeswitch not honoring /etc/hosts file
Hello,
I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS?
I am running Debian 10 with freeswitch 1.10.2
Thanks, _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
try define <X-PRE-PROCESS cmd="set" data="sip_gethostbyname=true"/> On Fri, Mar 27, 2020 at 7:30 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
Ping would use the system’s dns stack, whereas FS uses its own and doesn’t use the hosts file (again, a few years ago)
I can make a quick test, and report back.
On Fri, 27 Mar 2020 at 16:04, Sean Devoy <sdevoy@bizfocused.com> wrote:
Hi,
I strongly suspect this is your VPN software. VPN’s must intercept IP packets to route them through the VPN. That reroute include DNS resolution of the final destination. The VPN needs to check the hosts file for the final IP. FreeSwitch has nothing to do with it.
To test, with the VPN up, ping a name in your hosts file. Please let me know the results.
Sean
*From:* FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *On Behalf Of *Joli Martinez *Sent:* Wednesday, March 25, 2020 5:05 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] freeswitch not honoring /etc/hosts file
Hello,
I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS?
I am running Debian 10 with freeswitch 1.10.2
Thanks, _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
I'm on 1.8 and that pre-process didn't work for me. Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Fri, Mar 27, 2020 at 5:10 PM Sergey Safarov <s.safarov@gmail.com> wrote:
try define
<X-PRE-PROCESS cmd="set" data="sip_gethostbyname=true"/>
On Fri, Mar 27, 2020 at 7:30 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
Ping would use the system’s dns stack, whereas FS uses its own and doesn’t use the hosts file (again, a few years ago)
I can make a quick test, and report back.
On Fri, 27 Mar 2020 at 16:04, Sean Devoy <sdevoy@bizfocused.com> wrote:
Hi,
I strongly suspect this is your VPN software. VPN’s must intercept IP packets to route them through the VPN. That reroute include DNS resolution of the final destination. The VPN needs to check the hosts file for the final IP. FreeSwitch has nothing to do with it.
To test, with the VPN up, ping a name in your hosts file. Please let me know the results.
Sean
*From:* FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *On Behalf Of *Joli Martinez *Sent:* Wednesday, March 25, 2020 5:05 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] freeswitch not honoring /etc/hosts file
Hello,
I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS?
I am running Debian 10 with freeswitch 1.10.2
Thanks, _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
Oh this does work! http://freeswitch-users.2379917.n2.nabble.com/DNS-lookup-on-outbound-proxy-F... {sip_gethostbyname=true}sofia/external/9999@myserver.whatever.com Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Fri, Mar 27, 2020 at 5:50 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I'm on 1.8 and that pre-process didn't work for me.
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Fri, Mar 27, 2020 at 5:10 PM Sergey Safarov <s.safarov@gmail.com> wrote:
try define
<X-PRE-PROCESS cmd="set" data="sip_gethostbyname=true"/>
On Fri, Mar 27, 2020 at 7:30 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
Ping would use the system’s dns stack, whereas FS uses its own and doesn’t use the hosts file (again, a few years ago)
I can make a quick test, and report back.
On Fri, 27 Mar 2020 at 16:04, Sean Devoy <sdevoy@bizfocused.com> wrote:
Hi,
I strongly suspect this is your VPN software. VPN’s must intercept IP packets to route them through the VPN. That reroute include DNS resolution of the final destination. The VPN needs to check the hosts file for the final IP. FreeSwitch has nothing to do with it.
To test, with the VPN up, ping a name in your hosts file. Please let me know the results.
Sean
*From:* FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *On Behalf Of *Joli Martinez *Sent:* Wednesday, March 25, 2020 5:05 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] freeswitch not honoring /etc/hosts file
Hello,
I have a customer that has a VPN tunnel to my network. I would like this customer to connect to me directly not through the SBC. I have created routing between the Freeswitch box and my registrar server. I have also created the entry in the /etc/hosts file. When I ping the server I get the correct response back. The issue is that Freeswitch is ignoring the /etc/hosts entry and doing its own DNS resolution. How can I tell freeswitch to honor the /etc/hosts file entry first then use DNS?
I am running Debian 10 with freeswitch 1.10.2
Thanks,
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (5)
-
Alex Balashov
-
David Villasmil
-
Joli Martinez
-
Sean Devoy
-
Sergey Safarov