论坛风格切换切换到宽版
  • 2244阅读
  • 3回复

[问题求助]ebtables流程图中关于BROUTING的疑问。 [复制链接]

上一主题 下一主题
离线冰之心.
 
发帖
2128
C币
-198361
威望
377
贡献值
1
银元
-6
铜钱
4807
人人网人气币
0
只看楼主 正序阅读 使用道具 楼主  发表于: 2009-05-01
http://upload.bbs.csuboy.com/Mon_1004/126_6810_9b620f33a380b5e.gif[/img]  http://upload.bbs.csuboy.com/Mon_1004/126_6810_e98a6fd16f6c49d.png[/img]下载 (23.26 KB)           鲜花

2010-04-09 1.5:30健康

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线涵冰.
发帖
2063
C币
-235248
威望
379
贡献值
1
银元
-1
铜钱
4644
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
传递给Routing Process,然后走到iptables那了。
离线黑咖啡.
发帖
1883
C币
-235722
威望
335
贡献值
1
银元
-2
铜钱
4227
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
-redirect-target target

我确信lz贴的那句话不完整
ebtables -t broute -A BROUTING -i eth0 -p ipv4 -j redirect --redirect-target DROP

离线my9449.
发帖
2057
C币
-139381
威望
379
贡献值
1
银元
-2
铜钱
4539
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
broute is used to make a brouter, it has one built-in chain: BROUTING. The targets DROP and ACCEPT have a special meaning in the broute table (these names are used instead of more descriptive names to keep the implementation generic). DROP actually means the frame has to be routed, while ACCEPT means the frame has to be bridged. The BROUTING chain is traversed very early. However, it is only traversed by frames entering on a bridge port that is in forwarding state. Normally those frames would be bridged, but you can decide otherwise here. The redirect target is very handy here.

那么ebtables -t broute -A BROUTING -p IPv4 --ip-dst 10.0.0.1 --ip-proto tcp --ip-dport 80 -j redirect会把针对10.0.0.1:80的包重定向到哪里(流程图中式Routing)呢?

快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个