标签:res -- alt yum move status amp http wrap
firewall-cmd --state
systemctl start firewalld
firewall-cmd --permanent --add-rich-rule=‘rule family=ipv4 forward-port port=162 protocol=udp to-port=20162‘
firewall-cmd --permanent --add-rich-rule=‘rule family=ipv4 forward-port port=161 protocol=udp to-port=20161‘
firewall-cmd --permanent --add-rich-rule=‘rule family=ipv4 forward-port port=514 protocol=udp to-port=20514‘
firewall-cmd --permanent --zone=public --add-port=8885/tcp
firewall-cmd --permanent --zone=public --add-port=9092/tcp
firewall-cmd --permanent --zone=public --add-port=161/tcp
firewall-cmd --permanent --zone=public --add-port=162/tcp
firewall-cmd --permanent --zone=public --add-port=514/udp
firewall-cmd --permanent --zone=public --add-port=20161/tcp
firewall-cmd --permanent --zone=public --add-port=20162/tcp
firewall-cmd --permanent --zone=public --add-port=20514/udp
firewall-cmd --permanent --zone=public --add-port=9996/udp
firewall-cmd --permanent --zone=public --add-port=8082/tcp
iptables -t nat -A PREROUTING -p udp -m udp --dport 162 -j REDIRECT --to-ports 20162
iptables -t nat -A PREROUTING -p udp -m udp --dport 161 -j REDIRECT --to-ports 20161
iptables -t nat -A PREROUTING -p udp -m udp --dport 514 -j REDIRECT --to-ports 20514
标签:res -- alt yum move status amp http wrap
原文地址:https://www.cnblogs.com/shwang/p/12015678.html