272,003 views
0 votes
0 votes
You have configured the following rules. What is the effect? sudo iptables -A INPUT -p tcp --dport 25 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT sudo iptables -A OUTPUT -p tcp --sport 25 -m conntrack --ctstate ESTABLISHED -j ACCEPT

User Frederiko Ribeiro
by
2.6k points

1 Answer

17 votes
17 votes

Answer:

Allow Simple Mail Transfer Protocol (SMTP) traffic. Since SSH is on TCP port 22, these rules will have no effect on SSH.

Step-by-step explanation:

Allow Simple Mail Transfer Protocol (SMTP) traffic.

Inbound and outbound SMTP connections on TCP port 25, which is SMTP's default port, would not be prevented by these rules.

These rules use the Accept action to ensure that Simple Mail Transfer Protocol (SMTP) and Secure Shell (SSH) are not blocked.

Since SSH is on TCP port 22, these rules will therefore have no effect on SSH.

User YellowB
by
2.7k points