add nfs and qbittorrent to iptables
This commit is contained in:
1 parent
0d8ae83626
commit
db90b1ae36
1 file changed
+4
-1
@@ -142,7 +142,10 @@ if [ "$(cat /etc/passwd | grep -E "deluge-user:x:[0-9]{4}:[0-9]{4}")" != "" ]; t
|
||||
iptables -A INPUT -i ${NETIF} -s 192.168.0.0/24 -p tcp --dport 139 -m state --state NEW,ESTABLISHED -j ACCEPT
|
||||
iptables -A OUTPUT -o ${NETIF} -d 192.168.0.0/24 -p tcp --sport 139 -m state --state ESTABLISHED -j ACCEPT
|
||||
iptables -A INPUT -i ${NETIF} -s 192.168.0.0/24 -p tcp --dport 445 -m state --state NEW,ESTABLISHED -j ACCEPT
|
||||
|
||||
# qbittorrent
|
||||
iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
|
||||
# nfs to radarr/sonarr
|
||||
iptables -A INPUT -p tcp -s 192.168.0.4 --dport 2049 -j ACCEPT
|
||||
|
||||
if [ "${DELUGE_MODE}" == "true" ]; then
|
||||
printf "Local IP: ${LOCALIP}\nInterface: $NETIF\nVPN IP: $VPNIP\nVPN Interface: $VPNIF\nP2P IP: $P2PIP\nVPN User: ${VPNUSER}\nMarkID: ${MARK_ID}\n"
|
||||
|
||||
Reference in new issue
Block a user