Created
September 26, 2016 06:11
-
-
Save dungmanh88/51bc83dddacc7d6ece62a8c6a84178c9 to your computer and use it in GitHub Desktop.
Open port firewall for ntp service and dns service
This file contains hidden or 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
/sbin/iptables -A INPUT -i $my_interface -s 0/0 -d $my_local_ip -m state --state ESTABLISHED,RELATED -j ACCEPT | |
/sbin/iptables -A OUTPUT -o $my_interface -s $my_local_ip -p udp -m multiport --dport 53,123 -j ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment