Possible to sync dynamic list across a cluster?

Any and all non-support discussions

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

Possible to sync dynamic list across a cluster?

Postby carpenox » Thu Sep 23, 2021 9:00 am

Hey this may be a question for Matt or Kumba, but is there a way to sync the dynamic list across an entire cluster without having to login to each dynportal individually?
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Possible to sync dynamic list across a cluster?

Postby williamconley » Thu Jun 02, 2022 1:24 pm

Each server checks the dynamic list over time and will open for authorized IPs. It's just not instant, as it relies on the script running at one-minute intervals to grab new IPs when they are added.

This can be altered to force all machines to allow a new IP immediately, but that's custom and not needed in most cases.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Possible to sync dynamic list across a cluster?

Postby carpenox » Fri Jun 03, 2022 10:01 am

Thx bill, i also wrote an article on how to do it using rsync

https://dialer.one/how-to-use-one-dynam ... e-cluster/
Last edited by carpenox on Wed May 03, 2023 5:40 pm, edited 1 time in total.
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Possible to sync dynamic list across a cluster?

Postby williamconley » Fri Jun 03, 2022 1:08 pm

carpenox wrote:Thx bill, i also wrote an article on how to do it using rsync

https://cyburdial.net/how-to-use-one-dy ... e-cluster/


syncing to a file in /tmp/? Is that an instant access solution?

DGG used a device file (ie: not really a file, but treated like a file by the OS so you can add an IP directly to the firewall in the OS). In that case rsync would be instant. But does the DynPortal actually directly use a file in/tmp/ that can be synced? I don't remember that. 8-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Possible to sync dynamic list across a cluster?

Postby carpenox » Mon Jun 06, 2022 1:35 pm

yes the dynportal uses files in /tmp
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: Possible to sync dynamic list across a cluster?

Postby williamconley » Mon Jun 06, 2022 1:45 pm

carpenox wrote:yes the dynportal uses files in /tmp


Directly? LIVE? As in "a file in /tmp/ is directly in the firewall"?

NOT that /tmp/ is just where the firewall looks to "load" into IPTABLES? But ... already IN the firewall?

Whoa.

DGG uses files created in /proc/net/xt_recent/ which is a network device which belongs to the "recent" iptables module.

That freaks me out a little.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 59 guests