iprule(解决路由冲突)

iptables -t mangle -A OUTPUT -d 192.168.8.192/28 -j MARK --set-mark 1
echo "200 custom_table" | sudo tee -a /etc/iproute2/rt_tables
ip rule add fwmark 1 table custom_table
ip route add default via 192.168.8.193 dev eth0 table custom_table

 

 

解决路由冲突

posted on 2024-12-09 15:45  吃草的青蛙  阅读(21)  评论(0)    收藏  举报

导航