[RESOLVED] The deposit rule does not apply to agents

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
a.messaoudi
Messages: 1
Registration: May 17, 2022 - 4:10 p.m.

May 17, 2022 - 4:31 PM

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,
Attachments
Capture3.PNG
Capture3.PNG (8.61 KB) Viewed 2151 times
Capture2.PNG
Capture2.PNG (50.46 KB) Viewed 2151 times
Capture1.PNG
Capture1.PNG (43.59 KB) Viewed 2151 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 17, 2022 - 4:59 PM

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 ;)
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 17, 2022 - 5:37 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked