<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Access to network from dynamic IP addresses…]]></title><description><![CDATA[<p dir="auto">I have a small call center with my asterisk server behind the firewall and all is good.</p>
<p dir="auto">The problem is that agents that need to login to the asterisk server are not on static IP addresses.</p>
<p dir="auto">This makes it very hard to lock down the asterisk servers effectively. In an ideal world it would be white-list access only.</p>
<p dir="auto">I know I can set up aliases that will resolve the Dynamic addresses, but I need a solution that is more immediate.</p>
<p dir="auto">I wrote an application that will pull the server config, and update a White-list Alias with IP addresses when an agent authenticates to a web server.</p>
<p dir="auto">I then run a remote .sh script to rm/tmp/config.cache…. but it does not always allow the newly added IP address to reach the asterisk server...</p>
<p dir="auto">What is the best approach to get this figured out.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netgate.com/topic/76732/access-to-network-from-dynamic-ip-addresses</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 18:01:28 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/76732.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Dec 2014 15:03:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Thu, 11 Dec 2014 00:39:38 GMT]]></title><description><![CDATA[<p dir="auto">Ok so I revisited my code after giving it a rest for a few days and made some progress on my original idea of creating an Alias called "Whitelist" and then programatically updating that list by pushing the config.xml file from the server, updating the Whitelist Alias, then pulling the config.xml file back to the firewall and reloading the config….</p>
<p dir="auto">The issue I ran into was  that running <strong>rm/tmp/config.cache</strong> would <strong>not</strong> apply the changes…</p>
<p dir="auto">Today I found that if you run both <strong>rm/tmp/config.cache</strong> and then <strong>/etc/rc.filter_configure</strong> it will apply the rule!</p>
<p dir="auto">Two questions…</p>
<p dir="auto"><strong>1.</strong> Are there any unforeseen issues with running the /etc/rc.filter_configure script… it looks like it is pretty straight forward.. and I did not see anything obvious…</p>
<p dir="auto"><strong>2.</strong> Is there any way to preflight the config.xml BEFORE is run the commands to reload it? Like you can with Apache?</p>
<p dir="auto">I am running all kinds of safety checks in my script that updates the config.xml.. but I want to be as safe as I can be…</p>
<p dir="auto"><strong>For anyone interested here are more details…</strong></p>
<p dir="auto">I am running coldfusion on a box that is open to all Ip address on the WAN.</p>
<p dir="auto">1. I have a page on that server that requires the agent to authenticate to.</p>
<p dir="auto">2. The coldfusion script looks at the users IP and determines if it is a new one.</p>
<p dir="auto">3. If it is a new one it updates a database for that users profile and sets a flag that tells a scheduled task (cron job) that a new IP needs to be added to the whitelist.</p>
<p dir="auto">4. The scheduled task runs every five minutes and looks for the update flag… if it sees it it runs…</p>
<p dir="auto">Here is what it does….</p>
<ul>
<li>Gets the new IP whitelist from the server…</li>
<li>uses putty to run a .sh script on the firewall that FTPs the config to the coldfusion server (all done inside the LAN)</li>
<li>Replaces the previous whitelist with the new whitelist</li>
<li>uses putty to run a .sh script on the firewall to ftp the config.xml file back to the firewall server</li>
<li>runs a .sh script to reload the config..</li>
</ul>
]]></description><link>https://forum.netgate.com/post/500550</link><guid isPermaLink="true">https://forum.netgate.com/post/500550</guid><dc:creator><![CDATA[zonephoto]]></dc:creator><pubDate>Thu, 11 Dec 2014 00:39:38 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Wed, 10 Dec 2014 18:23:19 GMT]]></title><description><![CDATA[<p dir="auto">You restrict what your VPN clients can access at the server side with rules on the OpenVPN server interface.  That's where connections come in from VPN clients to your network so that's where the rules go.</p>
]]></description><link>https://forum.netgate.com/post/500488</link><guid isPermaLink="true">https://forum.netgate.com/post/500488</guid><dc:creator><![CDATA[Derelict]]></dc:creator><pubDate>Wed, 10 Dec 2014 18:23:19 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Wed, 10 Dec 2014 16:58:06 GMT]]></title><description><![CDATA[<p dir="auto">I assume I can set up simple firewall rules on the LAN side to restrict the VPN agents to just the asterisk servers, and limit access to other servers, a namely databases?</p>
<p dir="auto">Or is it more complex than setting up simple rules…</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netgate.com/post/500468</link><guid isPermaLink="true">https://forum.netgate.com/post/500468</guid><dc:creator><![CDATA[zonephoto]]></dc:creator><pubDate>Wed, 10 Dec 2014 16:58:06 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Wed, 10 Dec 2014 16:55:20 GMT]]></title><description><![CDATA[<p dir="auto">Wow thanks for all of the quick responses!</p>
<p dir="auto">We have been reluctant to go the VPN route due to the additional complexity involved in getting the remote agents set up, and the uncertainty of how it may impact the SIP voice quality.</p>
<p dir="auto">I don't have a test environment, but can ease into it and see how it goes…</p>
]]></description><link>https://forum.netgate.com/post/500467</link><guid isPermaLink="true">https://forum.netgate.com/post/500467</guid><dc:creator><![CDATA[zonephoto]]></dc:creator><pubDate>Wed, 10 Dec 2014 16:55:20 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Tue, 09 Dec 2014 22:22:49 GMT]]></title><description><![CDATA[<p dir="auto">The biggest problem is shaping.  You have to shape the tunnel, not the voip.  I <em>think</em> you can shape the different traffic inside the tunnel if you assign an interface to the OpenVPN instance but I haven't tried it.  Then you have some complex bandwidth issues.  The WAN, then the tunnel itself then the shaping within the tunnel.  Then out to LAN. bleccch.</p>
]]></description><link>https://forum.netgate.com/post/500289</link><guid isPermaLink="true">https://forum.netgate.com/post/500289</guid><dc:creator><![CDATA[Derelict]]></dc:creator><pubDate>Tue, 09 Dec 2014 22:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Tue, 09 Dec 2014 21:17:49 GMT]]></title><description><![CDATA[<p dir="auto">You are prob right now that I think about it..  But sure you can do that over vpn - I have read that running voip over a vpn can even improve call quality, etc.</p>
]]></description><link>https://forum.netgate.com/post/500277</link><guid isPermaLink="true">https://forum.netgate.com/post/500277</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Tue, 09 Dec 2014 21:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Tue, 09 Dec 2014 19:40:33 GMT]]></title><description><![CDATA[<p dir="auto">Yeah "agents logging into asterisk" to me implies voip phones but I could be wrong.</p>
]]></description><link>https://forum.netgate.com/post/500258</link><guid isPermaLink="true">https://forum.netgate.com/post/500258</guid><dc:creator><![CDATA[Derelict]]></dc:creator><pubDate>Tue, 09 Dec 2014 19:40:33 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Tue, 09 Dec 2014 17:09:36 GMT]]></title><description><![CDATA[<p dir="auto">didn't sound like he was needing voip access to the server, more like management.  Did i read it wrong?  But yeah the voip over a vpn should work as well.</p>
]]></description><link>https://forum.netgate.com/post/500233</link><guid isPermaLink="true">https://forum.netgate.com/post/500233</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Tue, 09 Dec 2014 17:09:36 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Tue, 09 Dec 2014 17:03:39 GMT]]></title><description><![CDATA[<p dir="auto">VPN for VoIP has the added benefit of eliminating the need to NAT.  The problems we have had using VoIP over OpenVPN UDP tun have been easily attributable to overloaded circuits on end stations (QoS might help here) or general transit problems affecting all traffic.</p>
<p dir="auto">VoIP over OpenVPN generally works fine.</p>
]]></description><link>https://forum.netgate.com/post/500232</link><guid isPermaLink="true">https://forum.netgate.com/post/500232</guid><dc:creator><![CDATA[Derelict]]></dc:creator><pubDate>Tue, 09 Dec 2014 17:03:39 GMT</pubDate></item><item><title><![CDATA[Reply to Access to network from dynamic IP addresses… on Tue, 09 Dec 2014 16:13:06 GMT]]></title><description><![CDATA[<p dir="auto">Are these users coming from public IPs on the internet side, or are they on your lan</p>
<p dir="auto">If they are coming from public side, why not let them vpn in - this way you have easy way to lock down to only your users no matter what IP they come from, etc.  They would have to have the cert for the vpn, the password, etc. etc.</p>
]]></description><link>https://forum.netgate.com/post/500223</link><guid isPermaLink="true">https://forum.netgate.com/post/500223</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Tue, 09 Dec 2014 16:13:06 GMT</pubDate></item></channel></rss>