mirror of
https://github.com/D-Modem/login.git
synced 2026-11-28 20:38:06 -08:00
Building, running from app_dmodem, configuration, authentication, PPP, security notes and the tests move from the 827-line README into docs/, unchanged but for their heading levels and relative links. The README keeps a summary, the sample session, features, a quick start, the suite's repositories and the licence. D-Modem-RE becomes D-Modem. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
1.8 KiB
1.8 KiB
Security notes
- Asterisk usually runs as its own user: the users file (and modemmenu.conf, which may hold database and LDAP passwords) must be readable by it, and by no one else.
- Running as root (for
auth = systemwith local accounts, or forrun_as) means app_dmodem's Asterisk runs as root. - The password goes to the selection unless
pass_password = no. In the environment it is readable by the same user and root (/proc/PID/environ);session_filekeeps it out of the environment if the program reads the file instead. - Never put
{password}in a command line: other users see the arguments of every process. UseMODEM_PASSWORDor the session file. - Caller ID can be forged on many networks:
[number] userlogs in whoever presents the number. Use it only for numbers your own network vouches for. - Signup's
pending = yes(the default) keeps new accounts locked until you unlock them; withpending = no, anyone who calls gets an account and every item withoutusersorgroups. Give public itemsguest = yesand keep the rest to groups. - A server's socket is only as safe as its permissions: anyone who can
connect gets a login prompt, and with
trust_usera login as whoever they name. Keepsocket_modeandsocket_groupto Asterisk or the front menu. - The auth socket answers whether a password is right: whoever can
connect can guess passwords with it, each wrong one
fail_delaylate. Keep it to the BBS's user (socket_mode0660 or 0600,socket_group,allow_users); a mode open to others is refused, and so is TCP. - AutoPPP's PAP sends the password in clear on the line, as any PAP does: on a SIP trunk, give it SRTP or a network you trust.
- The log (syslog's auth facility by default) gets logins, failures and selections, never passwords. It is never the line: the caller would see it.