Answer the question
In order to leave comments, you need to log in
How to fix open port on ubuntu?
There is a server on ubuntu. I launched an Express backend on it. It's not available. Opened ports:
iptables -A OUTPUT -p tcp --dport 3000 -j ACCEPT
iptables -A INPUT -p tcp --dport 3000 -j ACCEPT
Answer the question
In order to leave comments, you need to log in
iptables does not save its rules when the system is shut down.
for this Wexter advised me to install the iptables rule saver on reboot.
option 2: write the rules in the executable script in the dir /etc/network/if-up.d/ they are executed when the network is turned on and fill the new (after reboot) life of iptables with meaning :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question