Dynamic IPs from Dynamic Agent Portal not working

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Dynamic IPs from Dynamic Agent Portal not working

Postby webudo » Mon Jan 03, 2022 7:36 pm

I'm running ViciBox 10 (VERSION: 2.14-838a BUILD: 211217-0732)

I followed the Dynamic Agent Portal setup guide included on ViciBox installation manual, but after signing a user on the valid8.php page, the IP address doesn't access HTTPS GUI.
When running the VB-firewall.pl script manually it seems to make the necessary changes, as it confirms the IPs to add to the dynamic list:

Processing DynamicList...
DynamicList found 2 entries in ViciDial
Found 2 IPs for DynamicList
Getting firewall DynamicList entries...
Total 2 IPs in firewall

But when running
#
Code: Select all
firewall-cmd --ipset=dynamiclist --get-entries

I get nothing

Nevertheless if I manually add IPs to the Whitelist, and run
Code: Select all
firewall-cmd --ipset=whiteips --get-entries
I do get the list of IPs, and those IPs are able to access the HTTPS GUI.

I checked that the public interface on my server is assigned to "public" zone on the firewall, so I don't know what else to do.

Please advise.
webudo
 
Posts: 32
Joined: Wed Nov 21, 2012 11:17 am

Re: Dynamic IPs from Dynamic Agent Portal not working

Postby webudo » Tue Jan 04, 2022 6:05 pm

By checking each ipset's lists I found that the IPs were being added to the wrong ipset (blackips).
I got it working by changing the following lines on VB-firewall.pl:

Code: Select all
$IPBLACK='dynamiclist';
$DYNAMIC=1;
$BLACK=0;


For reference, the original values were:
Code: Select all
$IPBLACK='blackips';
$DYNAMIC=0;
$BLACK=1;
webudo
 
Posts: 32
Joined: Wed Nov 21, 2012 11:17 am

Re: Dynamic IPs from Dynamic Agent Portal not working

Postby carpenox » Fri Jan 07, 2022 3:45 am

Great postback. This had been a major pain in the ass. You rock
Alma Linux 9.3 | SVN Version: 3822 | DB Schema Version: 1711 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3 | Discord: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2247
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: No registered users and 91 guests