首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将所有GRE流量转发到特定的网络接口?

如何将所有GRE流量转发到特定的网络接口?
EN

Server Fault用户
提问于 2012-01-20 05:58:23
回答 1查看 607关注 0票数 1

我想把eth2上所有的GRE通信量(IP协议47)转发给我的机器上的br0。我怎么能这么做?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2012-01-23 16:02:12

我从来没有试过,但首先你需要与你想要的流量相匹配。您应该能够使用iptables和带有协议号的-p选项来做到这一点:

参数以下参数构成规则规范(用于添加、删除、插入、替换和附加命令)。

代码语言:javascript
复制
   [!] -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.
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/351776

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档