Page 1 of 1

[RESOLVED] The deposit rule does not apply to agents

Published: May 17, 2022 - 4:31 PM
by a.messaoudi
Hello,
after installing a WAPT 2.2.1 server, I subsequently added two repositories on Linux machines:
the repositories are visible and synchronized correctly.
The rule is properly registered with an IP address pool.
The "Use repository access rules" option is checked.
And yet, despite all this, the agents are still pointing to the main server (screenshot attached).
Regards,

Re: The deposit rule does not apply to agents

Published: May 17, 2022 - 4:59 PM
by sfonteneau
Hello, I tested it directly with Python:

Code: Select all

>>> import ipaddress
>>> ipaddress.ip_network('10.100.22.0/22')
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "ipaddress.py", line 74, in ip_network
  File "ipaddress.py", line 1459, in __init__
ValueError: 10.100.22.0/22 has host bits set
>>> ipaddress.ip_network('10.100.22.0/24')
IPv4Network('10.100.22.0/24')

Therefore, the network is not valid

Since I'm not very good at calculating masks, I went here:


https://jodies.de/ipcalc?host=10.100.22 ... =22&mask2=

So I suppose I should put: 10.100.20.0/22 ;)

Re: The deposit rule does not apply to agents

Published: May 17, 2022 - 5:37 PM
by dcardon
Hello,

I'm submitting an internal ticket to add a protection feature to the interface to prevent incorrect subnet entries. In the meantime, please ensure you are entering a valid subnet.

Regards,

Denis