- 论坛徽章:
- 0
|
楼主请看我以前发过的贴:
http://linux.chinaunix.net/bbs/thread-835936-1-1.html
我觉得使用多IP进行NAT不应该使用-j SNAT。
The history of SAME is to make a target act like SNAT, but choose the SAME source address for SAME destination address.
Before kernel 2.6.11 you could specify more than one --to-source option for SNAT, kernel will choose any of these addresses to do NAT. After 2.6.11 you could still assign a block of continuous address in --to-source, for example --to-source 192.168.0.1-192.168.0.5. But you can not assign multiple --to-source like --to-source 192.168.0.1 --to-source 192.168.1.1.
Instead, you should use SAME target,
iptables -A POSTROUTING -j SAME --to-source 192.168.0.1 --to-source 192.168.1.1
This gives a client the same source-/destination address for each connection.
贴个现截的图,前段时间的高峰流量近800M。
[ 本帖最后由 wchun 于 2008-7-9 21:31 编辑 ] |
|