[ xray ] 优化clash节点的dns配置

This commit is contained in:
zeaslity
2024-04-26 16:25:40 +08:00
parent 4c0c54eacc
commit 97cadb9b7a
7 changed files with 84 additions and 8 deletions

View File

@@ -11,9 +11,10 @@ firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --permanent --add-port=80/udp
# 允许来自20000-30000的tcp udp端口
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source-port port-range="20000-30000" protocol="tcp" accept'
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source-port port-range="20000-30000" protocol="udp" accept'
sudo firewall-cmd --zone=drop --add-port=20000-30000/tcp --permanent
sudo firewall-cmd --zone=drop --add-port=20000-30000/udp --permanent
sudo firewall-cmd --reload
# 重新载入防火墙规则
firewall-cmd --reload