On 07/15/2013 08:23 AM, [email protected] wrote:
Hi Nigel

I updated to the newest "unstable" Cluebringer release
[2013/07/12-16:40:02 - 8543] [CBPOLICYD] NOTICE: Policyd v2 / Cluebringer - v2.1.x-201211111115

and tried to setup the policy to distinguish between IPv4 and IPv6. The IPv4 thing works fine, the IPv6 not.
I tried to use it with quota like this:
IPv4: SenderIP/32
IPv6: SenderIP/128

I tried several possibilities for the policy (according to the wiki, ::/0 should be OK). The errors with different configs: [2013/07/12-16:27:48 - 1175] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '::/0' is not a valid specification [2013/07/12-16:28:33 - 1175] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '::/0' is not a valid specification [2013/07/12-16:30:29 - 7198] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '::/0' is not a valid specification [2013/07/12-16:31:16 - 8256] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '::/0' is not a valid specification [2013/07/12-16:33:38 - 8337] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '::/0' is not a valid specification [2013/07/12-16:36:08 - 8384] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '[::]/0' is not a valid specification [2013/07/12-16:37:55 - 8429] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '::[/0]' is not a valid specification [2013/07/12-16:39:34 - 8487] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '[::[/0]' is not a valid specification [2013/07/12-16:40:12 - 8548] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '[::/0]' is not a valid specification [2013/07/12-16:41:11 - 8548] [POLICIES] WARNING: [ID:9/Name:Default_IPv6]: - Source '::' is not a valid specification

The DB config:
***
mysql> select * from policies;
+----+-----------------------+----------+--------------------------------+----------+
| ID | Name | Priority | Description | Disabled |
+----+-----------------------+----------+--------------------------------+----------+
| 1 | Default | 5 | Default System Policy | 0 | | 2 | Default Outbound | 10 | Default Outbound System Policy | 0 | | 3 | Default Inbound | 10 | Default Inbound System Policy | 0 | | 4 | Default Internal | 20 | Default Internal System Policy | 1 | | 6 | HOLD-MAILS | 100 | Hold Mails in queue | 0 | | 7 | Default Other Domains | 12 | Other non unibe domains | 0 | | 8 | Default_IPv4 | 6 | IPv4 policy | 0 | | 9 | Default_IPv6 | 6 | Default ipv6 policy | 0 |
+----+-----------------------+----------+--------------------------------+----------+
8 rows in set (0.00 sec)

***
mysql> select * from policy_members;
+----+----------+-----------------------------------------------------+-----------------------------------------+---------+----------+
| ID | PolicyID | Source | Destination | Comment | Disabled |
+----+----------+-----------------------------------------------------+-----------------------------------------+---------+----------+
| 1 | 1 | NULL | NULL | NULL | 0 | | 2 | 2 | %internal_ips,%internal_domains,!%exclude_senders | !%internal_domains,!%exclude_recipients | NULL | 0 | | 3 | 3 | !%internal_ips,!%internal_domains,!%exclude_senders | %internal_domains,!%exclude_recipients | NULL | 0 | | 4 | 4 | %internal_ips,%internal_domains | %internal_domains | NULL | 0 | | 6 | 6 | [email protected] | | | 1 | | 7 | 7 | !%internal_domains,!%exclude_senders | !%internal_domains,!%exclude_recipients | | 0 | | 8 | 8 | 0.0.0.0/0 | | | 0 | | 9 | 9 | ::/0 | | | 0 |
+----+----------+-----------------------------------------------------+-----------------------------------------+---------+----------+
8 rows in set (0.00 sec)

***
mysql> select * from quotas;
+----+----------+--------------+---------------+--------+---------+------+-----------+---------+----------+
| ID | PolicyID | Name | Track | Period | Verdict | Data | LastQuota | Comment | Disabled |
+----+----------+--------------+---------------+--------+---------+------+-----------+---------+----------+
| 3 | 8 | Default_IPv4 | SenderIP:/32 | 3600 | HOLD | 0 | 0 | | 0 | | 4 | 9 | Default_IPv6 | SenderIP:/128 | 3600 | HOLD | 0 | 0 | | 0 |
+----+----------+--------------+---------------+--------+---------+------+-----------+---------+----------+
2 rows in set (0.00 sec)

***
mysql> select * from quotas_limits;
+----+----------+--------------+--------------+---------+----------+
| ID | QuotasID | Type         | CounterLimit | Comment | Disabled |
+----+----------+--------------+--------------+---------+----------+
|  4 |        3 | MessageCount |          500 |         |      0 |
|  5 |        4 | MessageCount |          500 |         |      0 |
+----+----------+--------------+--------------+---------+----------+
2 rows in set (0.00 sec)

***

Thanks a lot in advance

This is a known bug, you can try prefix the v6 address with 0 for now. I'll get to fixing it asap.

-N

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to