Blocking incoming calls
Hello. I hope someone can quickly see what I want to do and steer me in the right direction. 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. 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. 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. 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. 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. Hope you can help. Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 Mobile: +64 21 663-999 Fax: +64 21 789-150
Set up firewall rules only allowing traffic from your providers' IP address. On 13 March 2013 09:08, Clive Lansink <clive@lansink.co.nz> wrote:
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 Mobile: +64 21 663-999 Fax: +64 21 789-150
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
Admittedly, a firewall is your best option... Drop all on port 5060 but allow your provider's IPs. If you don't want that.. the only real other option is: Set up a user with CIDR of the providers IPs. Set that context to whatever live calls are. Then, set the default for the :5060 profile to be some other context... and have that just be an empty dialplan. It won't stop the traffic though and I can't recall a way to tell FS to silently drop a call. -Avi Marcus BestFone On Wed, Mar 13, 2013 at 11:08 AM, Clive Lansink <clive@lansink.co.nz> wrote:
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 Mobile: +64 21 663-999 Fax: +64 21 789-150
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
Isn't fail2ban the usual solution here?
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 Mobile: +64 21 663-999 Fax: +64 21 789-150
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
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. 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. On 13 March 2013 10:28, Alex Lake <alex@digitalmail.com> wrote:
Isn't fail2ban the usual solution here?
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 Mobile: +64 21 663-999 Fax: +64 21 789-150
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
Ah, so presumably the OP doesn't have (for example) SIP handsets registered to his box (presumably that's done on port 5060, too)
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.
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.
On 13 March 2013 10:28, Alex Lake <alex@digitalmail.com <mailto:alex@digitalmail.com>> wrote:
Isn't fail2ban the usual solution here? > Hello. I hope someone can quickly see what I want to do and steer me in the right direction. > > 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. > > 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. > > 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. > > 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. > > 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. > > Hope you can help. > > > Clive Lansink > Email: Clive@Lansink.Co.NZ <mailto:Clive@Lansink.Co.NZ> > Phone: +64 9 520-4242 <tel:%2B64%209%20520-4242> > Mobile: +64 21 663-999 <tel:%2B64%2021%20663-999> > Fax: +64 21 789-150 <tel:%2B64%2021%20789-150> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org <mailto:consulting@freeswitch.org> > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com <http://www.avg.com> > Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13 > >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <mailto:info@cassidywebservices.co.uk> *03300 100 960 *F <mailto:info@cassidywebservices.co.uk> *03300 100 961 *E <mailto:info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk <mailto:andrew@cassidywebservices.co.uk> *W <mailto:info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk <http://www.cassidywebservices.co.uk>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
They could still be registering, but to a different profile. Possibly on an internal network. On 13 March 2013 11:43, Alex Lake <alex@digitalmail.com> wrote:
Ah, so presumably the OP doesn't have (for example) SIP handsets registered to his box (presumably that's done on port 5060, too)
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.
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.
On 13 March 2013 10:28, Alex Lake <alex@digitalmail.com> wrote:
Isn't fail2ban the usual solution here?
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 <%2B64%209%20520-4242> Mobile: +64 21 663-999 <%2B64%2021%20663-999> Fax: +64 21 789-150 <%2B64%2021%20789-150>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
When you say "to a different profile" - you're talking about on the same box, but a different port?
They could still be registering, but to a different profile. Possibly on an internal network.
On 13 March 2013 11:43, Alex Lake <alex@digitalmail.com <mailto:alex@digitalmail.com>> wrote:
Ah, so presumably the OP doesn't have (for example) SIP handsets registered to his box (presumably that's done on port 5060, too)
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.
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.
On 13 March 2013 10:28, Alex Lake <alex@digitalmail.com <mailto:alex@digitalmail.com>> wrote:
Isn't fail2ban the usual solution here? > Hello. I hope someone can quickly see what I want to do and steer me in the right direction. > > 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. > > 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. > > 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. > > 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. > > 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. > > Hope you can help. > > > Clive Lansink > Email: Clive@Lansink.Co.NZ <mailto:Clive@Lansink.Co.NZ> > Phone: +64 9 520-4242 <tel:%2B64%209%20520-4242> > Mobile: +64 21 663-999 <tel:%2B64%2021%20663-999> > Fax: +64 21 789-150 <tel:%2B64%2021%20789-150> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org <mailto:consulting@freeswitch.org> > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com <http://www.avg.com> > Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13 > >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <mailto:info@cassidywebservices.co.uk> *03300 100 960 <tel:03300%20100%20960> *F <mailto:info@cassidywebservices.co.uk> *03300 100 961 <tel:03300%20100%20961> *E <mailto:info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk <mailto:andrew@cassidywebservices.co.uk> *W <mailto:info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk <http://www.cassidywebservices.co.uk>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <mailto:info@cassidywebservices.co.uk> *03300 100 960 *F <mailto:info@cassidywebservices.co.uk> *03300 100 961 *E <mailto:info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk <mailto:andrew@cassidywebservices.co.uk> *W <mailto:info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk <http://www.cassidywebservices.co.uk>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
mod_sofia supports having different sip 'profiles'. Each one can be bound to a different IP address or port, and they can have different options, like different ACL settings, different codec settings, different NAT settings, etc. On 13 March 2013 12:20, Alex Lake <alex@digitalmail.com> wrote:
When you say "to a different profile" - you're talking about on the same box, but a different port?
They could still be registering, but to a different profile. Possibly on an internal network.
On 13 March 2013 11:43, Alex Lake <alex@digitalmail.com> wrote:
Ah, so presumably the OP doesn't have (for example) SIP handsets registered to his box (presumably that's done on port 5060, too)
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.
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.
On 13 March 2013 10:28, Alex Lake <alex@digitalmail.com> wrote:
Isn't fail2ban the usual solution here?
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 <%2B64%209%20520-4242> Mobile: +64 21 663-999 <%2B64%2021%20663-999> Fax: +64 21 789-150 <%2B64%2021%20789-150>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 <03300%20100%20960> *F<info@cassidywebservices.co.uk> *03300 100 961 <03300%20100%20961> *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
Ah! A different IP address. That's handy. Now I'll go away (OK, Avi? ;-P)
mod_sofia supports having different sip 'profiles'. Each one can be bound to a different IP address or port, and they can have different options, like different ACL settings, different codec settings, different NAT settings, etc.
On 13 March 2013 12:20, Alex Lake <alex@digitalmail.com <mailto:alex@digitalmail.com>> wrote:
When you say "to a different profile" - you're talking about on the same box, but a different port?
They could still be registering, but to a different profile. Possibly on an internal network.
On 13 March 2013 11:43, Alex Lake <alex@digitalmail.com <mailto:alex@digitalmail.com>> wrote:
Ah, so presumably the OP doesn't have (for example) SIP handsets registered to his box (presumably that's done on port 5060, too)
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.
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.
On 13 March 2013 10:28, Alex Lake <alex@digitalmail.com <mailto:alex@digitalmail.com>> wrote:
Isn't fail2ban the usual solution here? > Hello. I hope someone can quickly see what I want to do and steer me in the right direction. > > 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. > > 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. > > 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. > > 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. > > 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. > > Hope you can help. > > > Clive Lansink > Email: Clive@Lansink.Co.NZ <mailto:Clive@Lansink.Co.NZ> > Phone: +64 9 520-4242 <tel:%2B64%209%20520-4242> > Mobile: +64 21 663-999 <tel:%2B64%2021%20663-999> > Fax: +64 21 789-150 <tel:%2B64%2021%20789-150> > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org <mailto:consulting@freeswitch.org> > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com <http://www.avg.com> > Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13 > >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <mailto:info@cassidywebservices.co.uk> *03300 100 960 <tel:03300%20100%20960> *F <mailto:info@cassidywebservices.co.uk> *03300 100 961 <tel:03300%20100%20961> *E <mailto:info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk <mailto:andrew@cassidywebservices.co.uk> *W <mailto:info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk <http://www.cassidywebservices.co.uk>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <mailto:info@cassidywebservices.co.uk> *03300 100 960 <tel:03300%20100%20960> *F <mailto:info@cassidywebservices.co.uk> *03300 100 961 <tel:03300%20100%20961> *E <mailto:info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk <mailto:andrew@cassidywebservices.co.uk> *W <mailto:info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk <http://www.cassidywebservices.co.uk>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <mailto:info@cassidywebservices.co.uk> *03300 100 960 *F <mailto:info@cassidywebservices.co.uk> *03300 100 961 *E <mailto:info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk <mailto:andrew@cassidywebservices.co.uk> *W <mailto:info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk <http://www.cassidywebservices.co.uk>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com <http://www.avg.com> Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
Why do we have such a long thread on this??? If you KNOW what IPs are contacting you, then firewall it. If not or you don't want to do that, don't be surprised if calls hit FS. But if you route properly, then it's to a different context or whatever so there's NO harm done. If you don't even want CDRs on that then disable the CDR when calls come in: <action application="set" data="process_cdr=false"/> I don't think there's anything else to add... -Avi On Wed, Mar 13, 2013 at 2:07 PM, Andrew Cassidy < andrew@cassidywebservices.co.uk> wrote:
They could still be registering, but to a different profile. Possibly on an internal network.
On 13 March 2013 11:43, Alex Lake <alex@digitalmail.com> wrote:
Ah, so presumably the OP doesn't have (for example) SIP handsets registered to his box (presumably that's done on port 5060, too)
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.
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.
On 13 March 2013 10:28, Alex Lake <alex@digitalmail.com> wrote:
Isn't fail2ban the usual solution here?
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 <%2B64%209%20520-4242> Mobile: +64 21 663-999 <%2B64%2021%20663-999> Fax: +64 21 789-150 <%2B64%2021%20789-150>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director
*T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
I don't think the OP has even replied to the thread lol Sent from my iPhone On Mar 13, 2013, at 8:28 AM, Avi Marcus <avi@avimarcus.net> wrote:
Why do we have such a long thread on this???
If you KNOW what IPs are contacting you, then firewall it.
If not or you don't want to do that, don't be surprised if calls hit FS. But if you route properly, then it's to a different context or whatever so there's NO harm done. If you don't even want CDRs on that then disable the CDR when calls come in: <action application="set" data="process_cdr=false"/>
I don't think there's anything else to add...
-Avi
On Wed, Mar 13, 2013 at 2:07 PM, Andrew Cassidy <andrew@cassidywebservices.co.uk> wrote:
They could still be registering, but to a different profile. Possibly on an internal network.
On 13 March 2013 11:43, Alex Lake <alex@digitalmail.com> wrote:
Ah, so presumably the OP doesn't have (for example) SIP handsets registered to his box (presumably that's done on port 5060, too)
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.
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.
On 13 March 2013 10:28, Alex Lake <alex@digitalmail.com> wrote:
Isn't fail2ban the usual solution here?
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 Mobile: +64 21 663-999 Fax: +64 21 789-150
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- Andrew Cassidy BSc (Hons) MBCS SSCA Managing Director
T 03300 100 960 F 03300 100 961 E andrew@cassidywebservices.co.uk W www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
-- Andrew Cassidy BSc (Hons) MBCS SSCA Managing Director
T 03300 100 960 F 03300 100 961 E andrew@cassidywebservices.co.uk W www.cassidywebservices.co.uk
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
I have the exact same problem from time to time and it does consume bandwidth (~70KB/s) fail2ban is implemented in my system and it is great to protect freeswitch by banning the offending IP to reach FS but it doesn't stop the traffic to hit the box I have found as proposed earlier that firewall rules to block all traffic except for the SIP provider range to be the best solution Like that the bad guys never know that your port is opened. /Philippe On 13-03-13 06:28 AM, Alex Lake wrote:
Isn't fail2ban the usual solution here?
Hello. I hope someone can quickly see what I want to do and steer me in the right direction.
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.
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.
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.
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.
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.
Hope you can help.
Clive Lansink Email: Clive@Lansink.Co.NZ Phone: +64 9 520-4242 Mobile: +64 21 663-999 Fax: +64 21 789-150
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2240 / Virus Database: 2641/5668 - Release Date: 03/12/13
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.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 http://www.freeswitch.org
participants (6)
-
Alex Lake
-
Andrew Cassidy
-
Avi Marcus
-
Brian Foster
-
Clive Lansink
-
Philippe Le Toquin