环境操作系统版本分布:Ubuntu18.04.4LTS内核版本:Linux版本4.15.0-88-genericiproute2版本$ip-Vip实用程序,iproute2-ss180129iptables版本$iptables-Viptablesv1.6.1需要为192.168.0.36主机配置HTTP协议(80端口)。流量通过192.168.0.3,其余流量通过192.168.0.1。routingtableout3echo"3out3">>/etc/iproute2/rt_tables#添加默认路由iprouteadddefaultvia192.168.0.3tableout3#使用iptables标记数据访问tcp80端口iptables-tmangle-AOUTPUT-ptcp--dport80-jMARK--set-mark3#将标记数据关联到out3路由表ipruleaddfwmark3tableout3相关链接Linux系列—PolicyRouting,iprule,iproute本文来自qbitsnap
