Should I disable Linux iptables permanently?

Mujkanovic

Well-known member
Collaborate
Registered
Joined
Apr 24, 2016
Messages
424
Points
18
For the first time when i installed my hosting control panel on my new server, iptables might stop some ports from working. I stopped iptables and i could access my hosting control panel. I am wondering I should disable Linux iptables permanently or not? Please share your advice.
 

Hostsane

New member
Registered
Joined
Nov 24, 2018
Messages
9
Points
3
Never disable Iptables permanently , instead configure them according to your needs in order to make sure that your server is secured.
 

24x7CSM

Well-known member
Registered
Joined
Sep 27, 2016
Messages
263
Points
28
well disabling Iptables means opening up your for hackers , so do not disable it. Just configure the Iptables according to your needs , that is making sure that the required ports are open so that things on the server are accessible.
 

Mujkanovic

Well-known member
Collaborate
Registered
Joined
Apr 24, 2016
Messages
424
Points
18
Mujkanovic
Do you have any firewall software to use for Plesk that control iptables?

I doubted iptables stooped port 8443 of Plesk hence I could not access Plesk till I disabled iptables.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
VirtuBox
Hello,
here the commands to run to open all ports required for Plesk :

Bash:
iptables -I INPUT -p tcp --dport 21 -j ACCEPT
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
iptables -I INPUT -p tcp --dport 25 -j ACCEPT
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp --dport 110 -j ACCEPT
iptables -I INPUT -p tcp --dport 143 -j ACCEPT
iptables -I INPUT -p tcp --dport 443 -j ACCEPT
iptables -I INPUT -p tcp --dport 465 -j ACCEPT
iptables -I INPUT -p tcp --dport 993 -j ACCEPT
iptables -I INPUT -p tcp --dport 995 -j ACCEPT
iptables -I INPUT -p tcp --dport 8443 -j ACCEPT
iptables -I INPUT -p tcp --dport 8447 -j ACCEPT
iptables -I INPUT -p tcp --dport 8880 -j ACCEPT
After Plesk installation, you will be able to manage iptables with the Plesk Firewall extension.
 

HostechSupport

Active member
Registered
Joined
Jan 19, 2013
Messages
68
Points
8
Iptables is for security purpose which stops or block unwanted connection from port or direct so then to stop iptables service permanently its like giving invitation to hackers and make compromise with your server security. if you installed any new service or control panel then you can open its port in iptables after that you can easily access that panel or use that service with security.
 

manoaratefy

Well-known member
Hosting Provider
Registered
Joined
Sep 15, 2016
Messages
127
Points
18
Good morning,

It is a really bad idea to disable IPTables, unless you have any alternative firewall. Configure your IPTables firewall correctly and your control panel will work fine, even if IPTables is running.

I recommend you to start playing with IPTables on a sandbox environment (ex: a lowend VPS) to learn how it works and how you should configure it to allow legitimate traffic.
 
Latest Threads
Replies
0
Views
115
Replies
0
Views
65
Replies
0
Views
57
Replies
1
Views
87
Recommended Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top