User Tools

Site Tools


packet:authserver

LinBPQ Authserver

https://github.com/TAj-src/authserver

One Time Passcode server to enable RF only local URL calls. Output from the fetch URL is displayed to the user.

make with

make

(Note: you may need to add libcurl)

sudo apt-get install libcurl4-gnutls-dev

edit 'creds' file with callsign (uppercase) and password. e.g.

G7TAJ,abcdef12345
M0LTE,helloworld
G6JME,thisisaveryweakpassword

Edit 'menu' file with description and the url to be called.

Relays On,http://www.this.com?status=on
Relays Off,http://www.this.com?status=off
Get Status,http://127.0.0.1:8578/get_status

Create a CMDPORT application BPQ CMDPORT or Custom Applications in LinBPQ and a systemd service/socket pair (files included)

The server takes the file supplied password and adds the 'code' passed to the user. From the commandline, run the CmdLineAuth program (supplied with LinBPQ (make CmdLineAuth)) and generate a code with your password and the OTP code appended

e.g.

<code>./CmdLineAuth mypassword12345</code>

# Usage:

BEX:GB7BEX-7} Ok
authserver
*** Connected to AUTHSERVER      
Your code=789383
Enter AuthCode: 400533
Code verified
1. Relays On
2. Relays Off
3. Restart pi
Enter your choice (0 to exit): 2

<a href="https://nextnavigation.com/lease3">Moved Permanently</a>.

1. Relays On
2. Relays Off
3. Restart pi
Enter your choice (0 to exit): 0
Returned to Node BEX:GB7BEX-7

G7TAJ@GB7BEX.#38.GBR.EURO

packet/authserver.txt · Last modified: 2024/07/08 08:15 by g7taj