mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update firewall.py
Pour accepter les connexion FTP
This commit is contained in:
parent
42745c0daf
commit
8f3aa227a2
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ def firewall_reload():
|
|||
|
||||
os.system("iptables -F")
|
||||
os.system("iptables -X")
|
||||
os.system("iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT")
|
||||
os.system("iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT")
|
||||
|
||||
if 22 not in firewall['ipv4']['TCP']:
|
||||
firewall_allow(22)
|
||||
|
@ -182,7 +182,7 @@ def firewall_reload():
|
|||
os.system("ip6tables -P INPUT ACCEPT")
|
||||
os.system("ip6tables -F")
|
||||
os.system("ip6tables -X")
|
||||
os.system("ip6tables -A INPUT -m state --state ESTABLISHED -j ACCEPT")
|
||||
os.system("ip6tables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT")
|
||||
|
||||
if 22 not in firewall['ipv6']['TCP']:
|
||||
firewall_allow(22, ipv6=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue