直接进ssh放行udp端口就行
iptables(cetnos6)
- iptables -I INPUT -p tcp -m state --state NEW -m udp --dport 80 -j ACCEPT
- service iptables save
复制代码
firewall (centos7)
- firewall-cmd --permanent --zone=public 80/udp > /dev/null 2>&1
- firewall-cmd --reload
复制代码
ufw (ubuntu/debian/deepin)
- ufw allow 80/udp
- ufw reload
复制代码 |