我想把eth2上所有的GRE通信量(IP协议47)转发给我的机器上的br0。我怎么能这么做?
发布于 2012-01-23 16:02:12
我从来没有试过,但首先你需要与你想要的流量相匹配。您应该能够使用iptables和带有协议号的-p选项来做到这一点:
参数以下参数构成规则规范(用于添加、删除、插入、替换和附加命令)。
[!] -p, --protocol protocol
The protocol of the rule or of the packet to check. The speci‐
fied protocol can be one of tcp, udp, udplite, icmp, esp, ah,
sctp or all, or it can be a numeric value, representing one of
these protocols or a different one. A protocol name from
/etc/protocols is also allowed. A "!" argument before the pro‐
tocol inverts the test. The number zero is equivalent to all.
Protocol all will match with all protocols and is taken as
default when this option is omitted.https://serverfault.com/questions/351776
复制相似问题