translator
11,127
edits
(Created page with "Чтобы загрузить правила из файла: $usercmdE") Tags: Mobile web edit Mobile edit |
(Created page with "Чтобы разрешить ssh-соединения: $usercmdF $usercmdG") |
||
Line 109: | Line 109: | ||
{{UserCmd|command=sudo sh -c "iptables-restore > /etc/iptables/iptables.rules"}} | {{UserCmd|command=sudo sh -c "iptables-restore > /etc/iptables/iptables.rules"}} | ||
Чтобы разрешить ssh-соединения: | |||
{{UserCmd|command=sudo iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT}} | {{UserCmd|command=sudo iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT}} | ||
{{UserCmd|command=sudo iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT}} | {{UserCmd|command=sudo iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT}} |