- 论坛徽章:
- 0
|
本帖最后由 南极雨 于 2011-07-26 11:27 编辑
回复 1# dongyc2000
这样规划的真不多见... 你的linux放外面应该是要做个代理吗?
不好做...经过路由器的报文不好区分是子网的哪个机器了... 应该可以根据MAC地址来做...
man iptables
。。。
MATCH EXTENSIONS
iptables can use extended packet matching modules. These are loaded
in two ways: implicitly, when -p or --protocol is specified, or with
the -m or --match options, followed by the matching module name;
after these, various extra command line options become available,
depending on the specific module. You can specify multiple extended
match modules in one line, and you can use the -h or --help options
after the module has been specified to receive help specific to that
module.
The following are included in the base package, and most of these
can be preceded by a ! to invert the sense of the match.
mac
--mac-source [!] address
Match source MAC address. It must be of the form
XX:XX:XX:XX:XX:XX. Note that this only makes sense for pack-
ets coming from an Ethernet device and entering the PREROUT-
ING, FORWARD or INPUT chains. |
|