Question
Cannot open port via iptables nor ufw
Hi,
I am trying to open port 53589 to start a taskwarrior server.
I did this:
sudo iptables -I INPUT -p tcp -m tcp --dport 53589 -j ACCEPT
and this:
sudo ufw allow 53589/tcp
I start the server, but it does not seem to work.
I tried to connect via telnet to test the port, but still nothing
telnet my.domain 53589
when I try to connect to port 80 or 22 it works
I am on Ubuntu 15.04
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
For the record, the command you gave is the correct one for both
iptables
andufw
, if we ignore previously existing rules.