From: Lonnie A. <li...@lo...> - 2017-10-13 13:07:48
|
On Oct 12, 2017, at 10:27 PM, Michael Knill <mic...@ip...> wrote: > I wondering how I can limit connection to port 5060 to a specific provider IP Address range? > Does a Pass EXT -> Local rule for with a source of the provider IP range deny all others? > > Regards > Michael Knill Yes, only the source address(es) in "Pass EXT->Local" will be allowed. A source address of "0/0" will allow any. As for a "provider IP range" source address you have a few options ... 1) Use a CIDR source address Example: 1.2.3.1/28 -- 1.2.3.1 to 1.2.3.14 -- Tip -> Used "netcalc 1.2.3.4/28" command in AstLinux for help 2) Use DynDNS Host Open plugin (dyndns-host-open) Example: Assuming sip.example.tld has multiple A DNS records for host -- DYNDNS_HOST_OPEN_UDP="sip.example.tld~5060" -- 3) Using Last Octet Range feature of our AIF firewall Example: 1.2.3.4-8 -- 1.2.3.4 to 1.2.3.8 -- Note -> Range only works for the last octet Options listed in my personal order of preference. Lonnie |