Difference between revisions of "Firewalls/fa"

Created page with "برای اجازه دادن به اتصالات ssh: $usercmdF $usercmdG"
(Created page with "برای بارگذاری قوانین از یک پرونده: $usercmdE")
(Created page with "برای اجازه دادن به اتصالات ssh: $usercmdF $usercmdG")
Line 111: Line 111:
{{UserCmd|command=sudo sh -c "iptables-restore > /etc/iptables/iptables.rules"}}
{{UserCmd|command=sudo sh -c "iptables-restore > /etc/iptables/iptables.rules"}}


To allow ssh connections
برای اجازه دادن به اتصالات 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}}


=See Also=
=See Also=
translator
1,103

edits