title: How to open port in CentOS 7? (Proxmox, OVH)
body: <p>Trying to open port 60200 (for example) in CentOS 7. Virtual machine works via Proxmox hosted on SoYouStart/OVH dedicated. Other ports are working fine.</p>
  
  <p>Running this commands:</p>
  
  <pre><code>iptables -A INPUT -i eth0 -p tcp --dport 60200 -j ACCEPT
  service iptables save
  service iptables restart
  </code></pre>
  
  <p>Checking configuration:</p>
  
  <pre><code>[root@s1 ~]# iptables -L | grep 60200
  ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:60200
  </code></pre>
  
  <p>Then running web server listening that port and trying to connect from home PC, but got error: ERR_CONNECTION_TIMED_OUT.</p>
  
  <p>Trying to connect from another virtual machine in the same network:</p>
  
  <pre><code>[root@s2 ~]# wget https://my_ip:60200/
  --2020-01-07 20:18:21--  https://my_ip:60200/
  Connecting to my_ip:60200... failed: No route to host.
  </code></pre>
  
  <p>And finally, trying to connect from localhost. <strong>Works!</strong></p>
  
  <pre><code>[root@s1 ~]# wget https://my_ip:60200 --no-check-certificate
  --2020-01-08 03:19:53--  https://my_ip:60200/
  Connecting to my_ip:60200... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: unspecified [text/html]
  Saving to: ‘index.html.1’
  
      [ &lt;=&gt;                                   ] 5,768       --.-K/s   in 0.003s
  
  2020-01-08 03:19:54 (1.86 MB/s) - ‘index.html.1’ saved [5768]
  </code></pre>
  
  <p>How to open port for outcoming connections?</p>
  
  <p><strong>Important note</strong>: there is no firewall-cmd commands available on my server.</p>
  
  <pre><code>[root@s1 ~]# firewall-cmd --get-active-zones
  FirewallD is not running
  </code></pre>