Skip to content

Instantly share code, notes, and snippets.

@gigabyteservice
Created June 19, 2022 17:32
Show Gist options
  • Save gigabyteservice/9890c6e2f535b29a16ef4fbb6f771004 to your computer and use it in GitHub Desktop.
Save gigabyteservice/9890c6e2f535b29a16ef4fbb6f771004 to your computer and use it in GitHub Desktop.
open port with iptables
# 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