然后2个代理我访问,出口ip都是主网卡的公网ip152.136.168.204,
按照gpt添加了路由后
#!/bin/sh
ip rule add from 192.168.0.15 table 100
ip route add default via 192.168.0.1 dev eth0 table 100
ip rule add from 192.168.0.8 table 101
ip route add default via 192.168.0.1 dev eth1 table 101
iptables -t mangle -A OUTPUT -p tcp --sport 10938 -j MARK --set-mark 100
ip rule add fwmark 100 table 100
iptables -t mangle -A OUTPUT -p tcp --sport 40671 -j MARK --set-mark 101
ip rule add fwmark 101 table 101