Hi,
So, I am learning meteor.js and signed up for a (cheap, i.e no support) VPS to host my Meteor app. Everything is running fine but I am trying to understand better how Linux works so here is my question:
I am running CentOS 7 on the VPS but it still uses iptables for its firewall.
I had to enable port 80 to access the web server. However, if I reboot the server, it stops working until I do
Code:
iptables -F
Then everything works. But I am thinking that -F might not be the best thing. I have changed the default SSH port from 22 to something else and that also works but I don't think I ever added it to the iptables rules.
If I do a port scan, the new SSH port is indicated as open as well as port 80 but others are closed as they are supposed to be.
Any idea what is doing on behind the scenes that requires iptables -F for the web access to work properly and if I shouldn't be doing iptables -F (I have it in the rc.local file), what is the right way of doing it?
(BTW, I am computer literate but not that familiar with Linux, which I am trying to learn now.)
Kamal