Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you have iptables
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
iptables -I INPUT -p tcp --dport 21 -j ACCEPT
service iptables save
firewall-cmd --zone=public --add-port=22/tcp --permanent
firewall-cmd --zone=public --add-port=21/tcp --permanent
sudo ufw allow 22/tcp
sudo ufw allow 21/tcp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question