it can but this is not the purpose of using iptables. all he needs is just one "ip" command or "route" command for a static route.
【在 E*V 的大作中提到】 : i think iptables can do that right?
h*x
11 楼
怎么用一条简单的解决呢?我现在的办法不是这样的,还有别的方法吗?
时使 的话 也是
【在 z**r 的大作中提到】 : 你这个需求就是一条最简单的static route的问题
h*x
12 楼
还没有那么复杂。
风,
【在 E*V 的大作中提到】 : i think iptables can do that right?
h*x
13 楼
I use 2 ip commands to solve this problems. 但是怎么用route commnad来解决呢?我一直想办法用route搞,但是似乎route命令只 能对mail routing table做修改。
【在 z**r 的大作中提到】 : it can but this is not the purpose of using iptables. all he needs is just : one "ip" command or "route" command for a static route.
r*t
14 楼
版主喜欢用牛刀
【在 E*V 的大作中提到】 : i think iptables can do that right?
z*r
15 楼
you need just one "ip" command, the key is to make your desired gateway has longer match. same for route command. another thing you may need to consider is the "metric" or you can use source based routing, it can do more complicated routing, this can be done by "ip rule" and I think that's what you are using now they all can work, even with "iptables"
【在 h*******x 的大作中提到】 : I use 2 ip commands to solve this problems. : 但是怎么用route commnad来解决呢?我一直想办法用route搞,但是似乎route命令只 : 能对mail routing table做修改。