iptables学习笔记

# iptables放行tcp端口
iptables -A INPUT -p tcp --dport 46782 -j ACCEPT
# iptables放行udp端口
iptables -A INPUT -p udp --dport 46782 -j ACCEPT