os-init/debian-12/apps/rinetd/rinetd.sh
2023-11-19 22:25:32 +01:00

13 lines
271 B
Bash

#!/bin/bash
apt install -y rinetd
nano /etc/rinetd.conf
systemctl restart rinetd
if [ -f "/etc/iptables/rules.v4" ]; then
sed -i '/^-A INPUT -i lo -j ACCEPT.*/a # RINETD' /etc/iptables/rules.v4
nano /etc/iptables/rules.v4
iptables-restore /etc/iptables/rules.v4
fi