Created
June 19, 2022 17:32
-
-
Save gigabyteservice/9890c6e2f535b29a16ef4fbb6f771004 to your computer and use it in GitHub Desktop.
open port with iptables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# take the backup | |
iptables-save > iptables-backup.text | |
# open UDP port | |
iptables -I INPUT -p udp --dport 5443 -j ACCEPT | |
# save changes | |
iptables-save | |
# check the changes | |
sudo iptables -L -v -n | more | |
# if want open all udp ports | |
iptables -I INPUT -p udp -j ACCEPT | |
# then save | |
iptables-save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment