<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Ah, so presumably the OP doesn't have
      (for example) SIP handsets registered to his box (presumably
      that's done on port 5060, too)<br>
    </div>
    <blockquote
cite="mid:CAMbW9o+xoa1sX3Vf1zY4K0kx5LR2ds_MY2Y_eSLN-=u3E6ML4A@mail.gmail.com"
      type="cite">Only if you don't know what IP addresses calls are
      going to be coming from. In this case, we can probably ask the
      provider what their IP addresses are and just explicitly allow
      them.
      <div><br>
      </div>
      <div>All fail2ban does is check the log files then set up relevant
        firewall blacklist rules, so for the same job you get slightly
        more CPU load too.<br>
        <br>
        <div class="gmail_quote">On 13 March 2013 10:28, Alex Lake <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Isn't fail2ban the usual solution here?<br>
            <div>
              <div class="h5">&gt; Hello. I hope someone can quickly see
                what I want to do and steer me in the right direction.<br>
                &gt;<br>
                &gt; I've looked at the documentation for acl.conf.xml
                and the SIP profile config file external.xml. I want to
                block incoming calls from all but a single external IP
                address and I'm sorry I just can't figure out how to do
                it or even if it can be done.<br>
                &gt;<br>
                &gt; We have a SIP trunk service with our VOIP provider.
                That means we have a static IP address which they use
                when they forward calls to us. They don't need to
                register, we just accept their calls but of course they
                have to be to our destination phone number. That all
                works and we have been very happy with Freeswitch for I
                don't know well over a year.<br>
                &gt;<br>
                &gt; Recently I became aware that someone is hammering
                our system trying to make calls. Our provider will only
                use port 5060 so that does mean our system is sitting on
                the internet with port 5060 open. Our dial plan works
                correctly and I can see in the log these calls are going
                nowhere. But they can be every few seconds and I suspect
                they might be using a lot of bandwidth just hammering
                the system.<br>
                &gt;<br>
                &gt; We will never receive calls from any other address
                than the one our VOIP provider will use to call us. So I
                just want to block SIP traffic from all addresses except
                theirs. I just want Freeswitch to stay silent when a
                call comes in on any other address, so there is no
                evidence that it is there to be attacked.<br>
                &gt;<br>
                &gt; I know I can do this with a firewall but I hope I
                can do it in Freeswitch itself. I am confused about the
                parameters auth-calls and auth-call and how to apply an
                access list that would restrict all calls to just one IP
                address. I did read somewhere in the docs that if you
                want to block calls you need to use a firewall and maybe
                that's the answer and so be it. Still I hope I can do it
                with Freeswitch so I can just apply the right ACL and
                sort the problem without creating new problems by
                introducing a firewall.<br>
                &gt;<br>
                &gt; Hope you can help.<br>
                &gt;<br>
                &gt;<br>
                &gt; Clive Lansink<br>
                &gt; Email: <a moz-do-not-send="true"
                  href="mailto:Clive@Lansink.Co.NZ">Clive@Lansink.Co.NZ</a><br>
                &gt; Phone: <a moz-do-not-send="true"
                  href="tel:%2B64%209%20520-4242" value="+6495204242">+64
                  9 520-4242</a><br>
                &gt; Mobile: <a moz-do-not-send="true"
                  href="tel:%2B64%2021%20663-999" value="+6421663999">+64
                  21 663-999</a><br>
                &gt; Fax: <a moz-do-not-send="true"
                  href="tel:%2B64%2021%20789-150" value="+6421789150">+64
                  21 789-150</a><br>
                &gt;<br>
                &gt;
_________________________________________________________________________<br>
                &gt; Professional FreeSWITCH Consulting Services:<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.freeswitchsolutions.com"
                  target="_blank">http://www.freeswitchsolutions.com</a><br>
                &gt;<br>
                &gt; FreeSWITCH-powered IP PBX: The CudaTel
                Communication Server<br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                &gt;<br>
                &gt; Official FreeSWITCH Sites<br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                &gt;<br>
                &gt; FreeSWITCH-users mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                &gt; UNSUBSCRIBE:<a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                &gt;<br>
                &gt;<br>
              </div>
            </div>
            &gt; -----<br>
            &gt; No virus found in this message.<br>
            &gt; Checked by AVG - <a moz-do-not-send="true"
              href="http://www.avg.com" target="_blank">www.avg.com</a><br>
            &gt; Version: 2012.0.2240 / Virus Database: 2641/5668 -
            Release Date: 03/12/13<br>
            <div class="HOEnZb">
              <div class="h5">&gt;<br>
                &gt;<br>
                <br>
                <br>
_________________________________________________________________________<br>
                Professional FreeSWITCH Consulting Services:<br>
                <a moz-do-not-send="true"
                  href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitchsolutions.com"
                  target="_blank">http://www.freeswitchsolutions.com</a><br>
                <br>
                FreeSWITCH-powered IP PBX: The CudaTel Communication
                Server<br>
                <a moz-do-not-send="true" href="http://www.cudatel.com"
                  target="_blank">http://www.cudatel.com</a><br>
                <br>
                Official FreeSWITCH Sites<br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                <a moz-do-not-send="true" href="http://www.cluecon.com"
                  target="_blank">http://www.cluecon.com</a><br>
                <br>
                FreeSWITCH-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                UNSUBSCRIBE:<a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <b>Andrew Cassidy BSc (Hons) MBCS SSCA</b>
        <div>Managing Director
          <div>
            <div><img moz-do-not-send="true"
                src="http://c1170247.r47.cf3.rackcdn.com/emailsig.png"><br>
            </div>
            <div>
              <br>
              <div><b
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a
                    moz-do-not-send="true"
                    href="mailto:info@cassidywebservices.co.uk"
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"
                    target="_blank">T</a>&nbsp;</b>03300 100 960&nbsp;
                <b
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a
                    moz-do-not-send="true"
                    href="mailto:info@cassidywebservices.co.uk"
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"
                    target="_blank">F</a>&nbsp;</b>03300 100 961</div>
              <div><b
                  style="text-decoration:none;font-family:sans-serif"><a
                    moz-do-not-send="true"
                    href="mailto:info@cassidywebservices.co.uk"
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"
                    target="_blank">E</a>&nbsp;</b><a moz-do-not-send="true"
                  href="mailto:andrew@cassidywebservices.co.uk"
                  target="_blank">andrew@cassidywebservices.co.uk</a></div>
              <div><b
                  style="text-decoration:none;font-family:sans-serif"><a
                    moz-do-not-send="true"
                    href="mailto:info@cassidywebservices.co.uk"
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"
                    target="_blank">W</a>&nbsp;</b><a moz-do-not-send="true"
                  href="http://www.cassidywebservices.co.uk"
                  target="_blank">www.cassidywebservices.co.uk</a></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date:
        03/12/13</p>
    </blockquote>
    <br>
  </body>
</html>