How do I open port 25 (or any other port)?

How do I open a port on my Linode? I'm currently trying to open port 25.

1 Reply

Allowing traffic to either enter or leave your Linode is done with iptables. If you are unfamiliar with iptables then check out the following guide as it covers iptables in detail and will show you how to open or close specific ports:

The following iptables rule should help you get started:

sudo iptables -I INPUT -p tcp -m tcp --dport 25 -j ACCEPT

You can also use ufw as an alternative to using iptables. UFW is covered here:


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct