iptables -t nat -I PREROUTING -i pppoe-wan -p udp --dport 53 -j REDIRECT --to-ports 5300
就是将指定的pppoe-wan接口的53端口udp请求转发到5300端口
检查:
iptables -n -t nat -L PREROUTING
iptables -t nat -I PREROUTING -i pppoe-wan -p udp --dport 53 -j REDIRECT --to-ports 5300
就是将指定的pppoe-wan接口的53端口udp请求转发到5300端口
检查:
iptables -n -t nat -L PREROUTING