Ich möchte unabhängig von der Installationsanleitung in # Post 9 die S I C H E R H E I T der BBS bzw. von TCPSER weiter erhöhen.
Hierzu ist es ratsam eine Firewall (iptables) unter Raspbian lite (Buster / 10) zu konfigurieren. Diese ist im Grundsetup bereits installiert steht allerdings auf Durchzug. 
Anbei eine Installationsanleitung:
# login: pi / passwd: raspberry
# root login permanent
sudo su -
# Script für Automatisches starten beim Booten
nano /etc/network/if-pre-up.d/iptablesload
#inhalt:
#!/bin/sh
iptables-restore < /etc/iptables.rules
exit 0
# Script für Automatisches Sichern beim shutdown:
nano /etc/network/if-post-down.d/iptablessave
#inhalt:
#!/bin/sh
iptables-save -c > /etc/iptables.rules
if [ -f /etc/iptables.downrules ]; then
iptables-restore < /etc/iptables.downrules
fi
exit 0
# löscht alle iptables regeln
iptables --flush
#Firewall regeln: nur ping (icmp), ssh und BBS Telnet Port 64128 werden erlaubt, IP 213.217.0.105/32 aus Russland wird z.B. geblockt. 
# zugriffe von interface lo generell erlauben
iptables -I INPUT -i lo -j ACCEPT
# statefull verbindungen erlauben
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
# allow ICMP/ping
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
# ssh erlauben
iptables -A INPUT -p tcp --dport ssh -j ACCEPT
# fuck the russians
iptables -A INPUT -s 213.217.0.105/32 -j DROP
# iptables -A INPUT -s 213.217.0.0/23 -j DROP # deny auf 213.217.0.0 - 213.217.1.255 (ganzes Netz/Segment)
# BBS erlauben
iptables -A INPUT -p tcp --dport 64128 -j ACCEPT
# log all denied
iptables -I INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
# drop all am Ende
iptables -A INPUT -j DROP
exit
#-------
iptables-save > /etc/iptables.rules # sichert alle aktuellen Regeln in der Datei /etc/iptables.rules
iptables -L -v # listet alle regeln mit Nutzungsstatistik
HAVE SECURITY PHUN 

