F
F
Funny_Man2017-07-01 11:21:43
iptables
Funny_Man, 2017-07-01 11:21:43

Why do I need to open the port again when I restart the server?

Opened the port using the iptables -I INPUT -p tcp -m tcp --dport 1111 -j ACCEPT command, but when the server is rebooted, you need to enter this command again.
Why is this happening and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2017-07-01
@pfg21

iptables does not save settings on shutdown.
Google autosave iptables settings. There are a couple of lines to enter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question