Open Ports In Centos 7
i've installed CentOS Web Hosting Panel. and now how can i open these ports.
Live IP XX.XX.XX.XX local IP 10.12.34.19 TCP IN: 20, 21, 22, 25, 53, 80, 110, 143, 443, 465, 587, 993, 995, 2030, 2031, 2082, 2083, 2086, 2087, 2095, 2096, 33022 OUT: 20, 21, 22, 25, 53, 80, 110, 113, 443, 2030, 2031, 2082, 2083, 2086, 2087, 2095, 2096, 587, 993, 995, 2080, 2443 UDP IN: 20, 21, 53 OUT: 20, 21, 53, 113, 123 |
A simple tool for managing the firewall is firewalld.
Code:
firewall-cmd --add-port 20/tcp Code:
firewall-cmd --add-service ftp Code:
firewall-cmd --get-services |
@berndbausch, unless the OP wants to add ports for the current session only, he needs --permanent.
@kohshan99, there are numerous tutorials in google for this. This is very thorough In a nutshell Code:
firewall-cmd --permanent --add-port=<xx>/<tcp/udp> Code:
firewall-cmd --zone=<Your Zone> --add-port=<xx>/<tcp/udp> --permanent |
OP, have you read the CWP documentation?
It appears to be pretty clear. (I'm presuming that if you're using CWP, you're not comfortable at the command line) |
++addendum,
@OP,enabling TCP and UDP BOTH for FTP ? why ? Please look at firewall rich rules for better controlling In/Out rules. Rich rules are pretty same as iptable rules. |
Good catch, scasey :)
|
Quote:
|
All times are GMT -5. The time now is 04:05 AM. |