I have a situation, where my server can't connect to an SMTP server, while my PC can. But the same server can connect to another SMTP server. I think that my firewall might be blocking it. How can I reliably test, if this issue caused by my firewall/iptables? Ideally, with or each one alone.
There are many rules in the iptables and I may miss things. I was thinking of a tool, which would tell me if a e.g. outgoing connection to a host at port with TCP or UDP would be blocked or not.
PS: it is a Debian server and my laptop and the server are in different networks.
How can I reliably test, if this issue caused by my firewall/iptables?first step I would do is check the configuration of firewall/iptables – Jaromanda X Apr 13 '23 at 06:18There are many rules in the iptables and I may miss thingsjust show your rules and we can tell you if they are a problem or not. – Gerald Schneider Apr 13 '23 at 08:10nc -vz TARGET_IP TARGET_PORT. – paladin Apr 13 '23 at 10:12drop, instead of areject. For internal network, you should always use areject, only for external networks, or public networks, adropis a good choice. – paladin Apr 13 '23 at 13:24