Discussion:
[asterisk-dev] FW: Question about permit/deny in pjsip endpoints
Floimair Florian
2018-10-25 07:54:20 UTC
Permalink
UPDATE:
Additionally, I see this message in the logs:

["2018-10-25 07:52:40.6837"] WARNING[123176]: named_acl.c:333 ast_named_acl_find: ACL 'deny/permit' does not exist. The ACL will be marked as undefined and will automatically fail if applied.




Hello all!

I wanted to try limiting incoming SIP packets to the IP of my Kamailio loadbalancer.
Since I’m using a database backend I tried to achieve this using the permit and deny attributes in ps_endpoints table.
So I set permit=”192.168.1.10/32” and deny to “0.0.0.0/0”, and while this seems to work in general, I get lots of the following WARNINGS in the logs:

["2018-10-25 07:41:34.7761"] WARNING[116934]: acl.c:740 ast_apply_acl: SIP ACL: Rejecting '192.168.1.10' due to use of an invalid ACL 'deny/permit'.

What is the problem with this configuration?
Of course I could alternatively define a named ACL and assign it using acl=name instead, but then what’s the point of the permit and deny options after all?

BR, Florian
Floimair Florian
2018-10-29 14:42:18 UTC
Permalink
No one with any idea about this?


-----

UPDATE:
Additionally, I see this message in the logs:

["2018-10-25 07:52:40.6837"] WARNING[123176]: named_acl.c:333 ast_named_acl_find: ACL 'deny/permit' does not exist. The ACL will be marked as undefined and will automatically fail if applied.




Hello all!

I wanted to try limiting incoming SIP packets to the IP of my Kamailio loadbalancer.
Since I’m using a database backend I tried to achieve this using the permit and deny attributes in ps_endpoints table.
So I set permit=”192.168.1.10/32” and deny to “0.0.0.0/0”, and while this seems to work in general, I get lots of the following WARNINGS in the logs:

["2018-10-25 07:41:34.7761"] WARNING[116934]: acl.c:740 ast_apply_acl: SIP ACL: Rejecting '192.168.1.10' due to use of an invalid ACL 'deny/permit'.

What is the problem with this configuration?
Of course I could alternatively define a named ACL and assign it using acl=name instead, but then what’s the point of the permit and deny options after all?

BR, Florian
Seán C. McCord
2018-10-29 15:06:17 UTC
Permalink
I would suspect some syntax problem. Can you post the actual relevant
config file bits rather than a paraphrase?
Post by Floimair Florian
No one with any idea about this?
-----
["2018-10-25 07:52:40.6837"] WARNING[123176]: named_acl.c:333
ast_named_acl_find: ACL 'deny/permit' does not exist. The ACL will be
marked as undefined and will automatically fail if applied.
Hello all!
I wanted to try limiting incoming SIP packets to the IP of my Kamailio loadbalancer.
Since I’m using a database backend I tried to achieve this using the
permit and deny attributes in ps_endpoints table.
So I set permit=”192.168.1.10/32” and deny to “0.0.0.0/0”, and while this
["2018-10-25 07:41:34.7761"] WARNING[116934]: acl.c:740 ast_apply_acl: SIP
ACL: Rejecting '192.168.1.10' due to use of an invalid ACL 'deny/permit'.
What is the problem with this configuration?
Of course I could alternatively define a named ACL and assign it using
acl=name instead, but then what’s the point of the permit and deny options
after all?
BR, Florian
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
https://www.asterisk.org/community/astricon-user-conference
asterisk-dev mailing list
http://lists.digium.com/mailman/listinfo/asterisk-dev
--
Seán C McCord
CyCore Systems, Inc
+1 888 240 0308
PGP/GPG: http://cycoresys.com/scm.asc
Loading...