mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Azuracast ports in iiab-gen-iptables
This commit is contained in:
parent
c88979a6fa
commit
77bbfa381b
1 changed files with 6 additions and 0 deletions
|
@ -52,6 +52,9 @@ gui_port={{ gui_port }}
|
|||
iiab_gateway_enabled={{ iiab_gateway_enabled }}
|
||||
block_DNS={{ block_DNS }}
|
||||
|
||||
azuracast_ports="{{ azuracast_port_range_prefix }}000:{{ azuracast_port_range_prefix }}100"
|
||||
azuracast_https_port={{ azuracast_https_port }}
|
||||
azuracast_http_port={{ azuracast_http_port }}
|
||||
calibre_port={{ calibre_port }}
|
||||
calibreweb_port={{ calibreweb_port }}
|
||||
cups_port={{ cups_port }}
|
||||
|
@ -140,6 +143,9 @@ if [ "$wan" != "none" ]; then
|
|||
|
||||
# 3 = ssh + http-or-https + common IIAB services
|
||||
if [ "$ports_externally_visible" -ge 3 ]; then
|
||||
$IPTABLES -A INPUT -p tcp --dport $azuracast_ports -m state --state NEW -i $wan -j ACCEPT
|
||||
$IPTABLES -A INPUT -p tcp --dport $azuracast_http_port -m state --state NEW -i $wan -j ACCEPT
|
||||
$IPTABLES -A INPUT -p tcp --dport $azuracast_https_port -m state --state NEW -i $wan -j ACCEPT
|
||||
$IPTABLES -A INPUT -p tcp --dport $calibre_port -m state --state NEW -i $wan -j ACCEPT
|
||||
$IPTABLES -A INPUT -p tcp --dport $calibreweb_port -m state --state NEW -i $wan -j ACCEPT
|
||||
$IPTABLES -A INPUT -p tcp --dport $cups_port -m state --state NEW -i $wan -j ACCEPT
|
||||
|
|
Loading…
Reference in a new issue