论坛风格切换切换到宽版
  • 833阅读
  • 2回复

[问题求助]问一个关于ebtables的问题。 [复制链接]

上一主题 下一主题
离线frt0502.
 
发帖
2022
C币
-132196
威望
355
贡献值
1
银元
-2
铜钱
4484
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
broute:
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 n.ames to keep the implementation generic). DROP actually means the frame h.as to be routed, while ACCEPT means t.he frame ha.s to be bridg.ed. The BROUT.ING chain is traversed very early. However, it is only traversed by frames entering on a bridge port that is in forwarding state. N.ormally those frames would be. bridge.d, but you can .decide otherwise here. The redirect target is very handy. here..

redirect
The redirec.t target will change the MAC target address to that of the bridge device. the frame arrived on. This target can o.nly be used in the BROUTI.NG chain of the broute table and the PREROUTING chain of the nat table. In .the BROUTING chain, the MAC address of the bri.dge port is used as dest.ination address, in the PREROUTING chain, the. MAC address of the bridge is used. .

两块网.卡使用brctl做了个桥,然后:外贸
ebtables -t broute -A BROU.TING -p IPv4 --ip-dst 192.168.1.1 --ip-proto --ip-dp.ort 21 -j redirec.t学习
ebtabl.es -t broute -A BROUTING -p IPv4 --ip-src 1.92.168.1.1 --ip-proto --ip-sport 2.1 -j redirect[成人用品]

中文文档很少,即便有,讲的也不.细,英文文档看了半天也不大明白,请熟悉ebtables的哥.们指点一下,谢谢。.

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

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线dk97531.
发帖
2014
C币
2762
威望
379
贡献值
1
银元
-1
铜钱
4492
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
二层也有routing吗?
概念有点模糊,这里的route难道指的是查arp表?

离线dm15.
发帖
2010
C币
-60893
威望
371
贡献值
1
银元
-1
铜钱
4454
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13

不知道,看的云里雾里的。

快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个