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: 12915 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: 1447 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. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
Joined: 04 Aug 2018 Posts: 1447 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. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
Joined: 08 May 2018 Posts: 14246 Location: Texas, USA
Posted: Mon Dec 13, 2021 18:17 Post subject:
I doubt very many people on the forum even know Fortran or COBOL, let alone what a Vax is (was). I posted some nostalgic YouTube video links over the past couple of days elsewhere about the history of Unix and Linux, lol. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Joined: 31 Jul 2021 Posts: 2146 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: 6446 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 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913