- 论坛徽章:
- 0
|
# ******************************************** #
# Edit By Sunwaylove #
# Support:010-85XXXXX #
# Mail:sunwaylove@163.com #
# ******************************************** #
# Macros
ext_addr="202.130.235.1"
tc_hosts1="10.101.2.98"
tc_hosts2="10.101.2.95"
# Global Options
interval 10
timeout 1000
prefork 16
# Each table will be mapped to a pf table.
#table <fallback> { 127.0.0.1, 10.101.2.98, 10.101.2.95 }
table <webjy> { $tc_hosts1, $tc_hosts2 }
# Services will be mapped to a rdr rule.
protocol tc {
# The TCP_NODELAY option is required for "smooth" terminal sessions
tcp nodelay
}
relay webjy {
# Run as a simple TCP relay
listen on $ext_addr port 7777
protocol tc
# Forward to the shared carp(4) address of an internal gateway
forward to <webjy> port 7777 mode loadbalance check tcp
# forward to <fallback> port 7777 timeout 60 check icmp
}
*****************************************
这个只是草稿,等我全测试通过会写个文档给OBer分享一下
*****************************************
回congli,就是我想在一块网卡上配置多IP(202.130.235.1~32)怎么实现吧
[ 本帖最后由 sunwaylove 于 2008-5-13 11:34 编辑 ] |
|