File areas and FTP
[[area]] code = "MAIN" name = "Main files" path = "main" # under files/, or a full path download_level = 0 upload_level = 90
Copy files into the folder and they appear. Descriptions come from FILES.BBS (or DESCRIPT.ION) in the folder, or FILE_ID.DIZ inside zips. Callers download with Zmodem, Ymodem or Xmodem (Z is the default), as a batch.
The File Manager (section 18, or the web admin's Files page) edits descriptions, moves, copies and removes files, lists files in a folder that aren't listed yet (and records whose file has gone), and imports a FILES.BBS list.
Upload validation. With
[uploads] validate = true
new uploads (terminal and FTP) are listed as waiting: only sysops and the caller who sent the file see them, until you validate them in the File Manager (V) or on the web admin's Files page. Sysops' own uploads never wait. Off by default.
FTP
With [servers] ftp = "0.0.0.0:21" callers can use any FTP client (FileZilla, WinSCP, a browser add-on, curl, lftp, Windows Explorer) with their BBS name and password, as on Synchronet. The top folder holds one folder per file area the caller may see, named by the area code (MAIN, UPLOADS; any case works); inside are the area's files with their sizes and dates. Nothing else on the computer can be reached: paths are only matched against area codes and the file list, .. stops at the top, and links that point out of an area folder are not shown or sent.
The terminal's rules apply. Downloads: restriction D refuses them, credits are charged and the ratio is checked (section 17), and the download is counted (the file's download count, the caller's downloads and bytes, credits taken) only when the whole file has gone. Clients can resume a broken download (REST); a resumed download is charged in full when it finishes, an unfinished one costs nothing. Uploads go only into areas the caller may upload to (upload_level, upload_access, not with restriction U, never guests). Each file lands in the temp folder first and gets the same checks as a Zmodem upload (file.can, duplicates, the zip test and test_commands, scan_command, the quarantine folder); then it moves into the area, with its FILE_ID.DIZ as the description (empty otherwise; the caller or sysop can add one later), and earns upload credits. A name already in the area is refused, so files are never overwritten. FTP callers can't delete, rename or make folders. Restriction T (no file section) refuses the FTP login. Deleted users can't log in; a failed login counts towards [security] max_login_failures like any other, and ip.can, ip-silent.can, host.can and blocks apply on connect. The log shows ftp: NAME logged in from IP, downloads, uploads and refusals. FTP callers don't take a node and aren't in Who's online.
[ftp] passive_port_min = 50000 # data connections (passive mode) use these ports passive_port_max = 50099 passive_address = "" # behind NAT: your public IPv4 address or host name anonymous = true # "anonymous" or "ftp" logs in as the guest account max_sessions = 10 # FTP connections at once idle_timeout_secs = 300 max_upload_mb = 512 # largest upload taken
- Anonymous: with
anonymous = trueand a guest account (ironbark user add Guest 10 --guest, the name in[security] guest_name), the namesanonymousandftplog in as the guest with any password (an e-mail address, by custom). Guests only download, from the areas the guest may see (download_access = "!GUEST"hides an area).falserefuses the guest account over FTP. - Firewall and router: open the FTP port (21) and the passive range. On a router, forward both to the BBS computer and set
passive_addressto your public address or host name (callers from private addresses, 10.x, 192.168.x, 172.16-31.x, 100.64.x, still get the BBS's own address). Active mode (PORT/EPRT) also works, but only back to the caller's own address and to ports from 1024 up, so the server can't be used to attack someone else. Linux: the systemd service may bind port 21 (CAP_NET_BIND_SERVICE); with ufw, for example,sudo ufw allow 21/tcpandsudo ufw allow 50000:50099/tcp. Windows: the installer's Firewall rule allowsironbark.exeon every port, so the passive range is covered. - No encryption: this is plain FTP; names, passwords and files cross the network as they are, as with telnet. There is no FTPS (TLS) and no SFTP. Callers who care can use SSH and Zmodem instead.
- Transfer type A (ASCII) is accepted, but files are always sent as they are (binary).
From the Ironbark Sysop Guide, which is also in every download as SYSOP-GUIDE.txt.
