furlongm / openvpn-monitor

openvpn-monitor is a web based OpenVPN monitor, that shows current connection information, such as users, location and data transferred.
http://openvpn-monitor.openbytes.ie
GNU General Public License v3.0
968 stars 294 forks source link

Feature Request - Use this (very useful) tool to generate Bind like zone file #192

Open ecorvalan opened 3 years ago

ecorvalan commented 3 years ago

Hi I've been using this very useful tool and find it great, thanks a lot. I was trying to setup a new bind9 zone for my VPN clients to be able to know them byt heir names (each client has an individual certificate). Thus I modified the Python script to include a "-b or --bind" option: parser.add_argument('-b', '--bind', action='store_true', required=False, default=False, help='Run to generate bind format database')

calling a different class (OpenvpnBindPrinter) if args.bind: OpenvpnBindPrinter(cfg, monitor) else: OpenvpnHtmlPrinter(cfg, monitor) and generates a Bind9 format to be included in a zone file

Perhaps it might be useful for others Thanks again