CentOS 7 – Netcat: connection refused

If you are trying to use netcat on CentOS7 and see the following:

Netcat: Connection Refused

Don’t fret, this is because CentOS7 has firewalld on by default.

Stop firewalld by doing

systemctl stop firewalld

Check here for more info. http://www.liquidweb.com/kb/how-to-stop-and-disable-firewalld-on-centos-7/

The “correct” way though, is to leave the firewall on , and only add the services that you want into the firewalld “zone” that you are using. See here for more information. http://www.tecmint.com/configure-firewalld-in-centos-7/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s