that all it need to make user authencation . you can make as many username as you like , just add as "jonh 2qwerty " jonh is user name and 2qwert as password
if someone try to connect without usename ans password in log you will see this
daemon.err openvpn[4572]: 92.40.202.154:50155 TLS Error: Auth Username/Password was not provided by peer
Dec 7 00:33:30 DD-WRT daemon.err openvpn[4572]: 92.40.202.154:50155 TLS Error: TLS handshake failed
Dec 7 00:33:30 DD-WRT daemon.err openvpn[4572]: 92.40.202.154:50155 Fatal TLS error (check_tls_errors_co), restarting
Joined: 18 Mar 2014 Posts: 9601 Location: Netherlands
Posted: Fri Dec 10, 2021 12:21 Post subject:
Thanks for sharing, the OpenVPN setup guide has a simple script but if you have many users using a separate file with username password is a viable option and then iterate through the script or using conditional awk, like your script, is an elegant solution.
Joined: 04 Aug 2018 Posts: 1328 Location: Appalachian mountains, USA
Posted: Fri Dec 10, 2021 23:16 Post subject:
backticks: (Ever had a tick on your back??? I have, and I don't recommend it!)
On this I'm with @egc, as I can't opt for better eyes. Had laser surgery on one of them yesterday, but it won't make backticks suddenly distinguishable from apostrophes. These kinds of visual decisions in coding are generally made by young people, but they shouldn't be. _________________ Six Linksys WRT1900ACSv2 routers on 48141: VLANs, VAPs, NAS, client mode, OpenVPN client (AirVPN), DDNS, wireguard servers and clients (AzireVPN), three DNSCrypt DNS providers (incl Quad9) via VPN clients.
Joined: 04 Aug 2018 Posts: 1328 Location: Appalachian mountains, USA
Posted: Mon Dec 13, 2021 15:30 Post subject:
Well, I did finish my first programming course - Fortran - fifty years ago this month. And I brought up my first Unix system on a Vax 750 over 37 years ago now. So yeah, I have to admit to late middle age. _________________ Six Linksys WRT1900ACSv2 routers on 48141: VLANs, VAPs, NAS, client mode, OpenVPN client (AirVPN), DDNS, wireguard servers and clients (AzireVPN), three DNSCrypt DNS providers (incl Quad9) via VPN clients.
Joined: 31 Jul 2021 Posts: 784 Location: All over YOUR webs
Posted: Mon Dec 13, 2021 18:43 Post subject:
I think its high time mrjcd uses a different emoji, all look so angry all the time, no matter reply.
/me runs
Im not as old as @SuprisedItWorks, but age matters not. The only thing that changes with age which is meaningful to me and which really matters is, perspective! That matters more than anything else.
Joined: 16 Nov 2015 Posts: 5009 Location: UK, London, just across the river..
Posted: Wed Dec 15, 2021 11:11 Post subject:
haha back in the school days (my time): basic, pascal(turbo pascal), logo, fortran...ware pic one compulsory...than in the uni, there was a cobol, mumps, visual basic and java...my dad was one of the members of mumps users group that's gone forever...now SQL..
Funny how some of those ware done and dusted...now we have more efficient computers, way ahead of the IBM rooms with gigantic tapes spinning all day long, or the RISK architecture, or even before those, while i was spinning around my Dad i remember those perfocard's computers like late 70's, early 80's... gosh time fly's..
Am I off topic ... dang... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 48646 WAP
TP-Link WR1043NDv2 -DD-WRT 48865 Gateway,DNS,AP Isolation,Ad-Block,Firewall,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 -DD-WRT 48886 Gateway,DNS,Ad-Block,Firewall,Forced DNS,DoT,VPN,VLAN
TP-Link WR1043NDv2 -Gargoyle OS 1.13.0b AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear R7800 --DD-WRT 48886 Gateway,DNS,AD-Block,AP&Net Isolation,VLAN's,Firewall,DoT,Vanilla
Netgear R9000 --DD-WRT 48886 Gateway,DNS,AD-Block,AP Isolation,Firewall,Forced DNS,DoT,2,4Ghz only,Vanilla
Broadcom
Netgear R7000 ---DD-WRT 48886 Gateway,DNS,AD-Block,Firewall,Forced DNS,VLAN's,DoT,VPN
------------------------------------------------------
Stubby for DNS over TLS I DNSCrypt v2 by mac913