数码资讯
FreeBSD双线路负载均衡NAT服务器的配置方法
点评:#六 / / rc.conf等 ================ + ============== + ================= defaultrouter =221.33.88.254 ifconfig_fxp0 =INET 192.168.0.1子网掩码255.255.255.0
选购提示
关注价格、性能、续航、售后和真实使用场景,理性比较后再下单。
点评:#六 / / rc.conf等
================ + ============== + =================
defaultrouter =221.33.88.254
ifconfig_fxp0 =INET 192.168.0.1子网掩码255.255.255.0
ifconfig_rl0 =INET 221.33.88.2 netmask 255.255.255.0
IFC
#六 / / rc.conf等
================ + ============== + =================
defaultrouter =221.33.88.254
ifconfig_fxp0 =INET 192.168.0.1子网掩码255.255.255.0
ifconfig_rl0 =INET 221.33.88.2 netmask 255.255.255.0
ifconfig_rl1 =INET 202.0.57.1 netmask 255.255.255.0
pf_enable =是
================ + ============== + =================
#六 / / pf.conf等
================ + ============== + =================
# #锚
lan_net =192.168.0.0 / 24
int_if =fxp0
ext_if1 =rl0
ext_if2 =1
ext_gw1 =221.33.88.254
ext_gw2 =61.0.57.254
# # NAT传出连接在每个网络接口
NAT ext_if1美元美元(美元lan_net任何ext_if1)->
NAT ext_if2美元美元(美元lan_net任何ext_if2)->
# #默认拒绝
从任何一个到任何一个
从任何一个到任何一个
# #通过所有传出的数据包的内部接口
通过在任何lan_net int_if美元美元
# #通过快速任何封包的网关本身
通过快速int_if美元美元美元int_if lan_net
# #传出TCP流量负载平衡来自内部网络。
通过对int_if美元路线
{($ ext_if1 ext_gw1美元(美元),ext_if2 ext_gw2美元)}轮转
原TCP lan_net美元任何旗帜的 / SA调节状态
# #负载平衡外向的UDP和ICMP流量从内部网络
通过对int_if美元路线
{($ ext_if1 ext_gw1美元(美元),ext_if2 ext_gw2美元)}轮转
原{ UDP,从$ lan_net任何保持状态ICMP }
# #一般通过外部接口规则
通过对ext_if1美元原TCP从任何旗帜的 /沙县
通过对ext_if1美元原{ UDP,ICMP }从任何保持
通过对ext_if2美元原TCP从任何旗帜的 /沙县
通过对ext_if2美元原{ UDP,ICMP }从任何保持
# #路由数据包从任何IP ext_if1美元美元ext_gw1和相同
# # ext_if2美元美元和ext_gw2
通过对ext_if1美元路线(ext_if2美元美元美元ext_gw2)ext_if2任何
通过对ext_if2美元路线(ext_if1美元美元美元ext_gw1)ext_if1任何
================ + ============== + =================
#六 / / sysctl.conf等
净。INET。IP转发= 1。
================ + ============== + =================
defaultrouter =221.33.88.254
ifconfig_fxp0 =INET 192.168.0.1子网掩码255.255.255.0
ifconfig_rl0 =INET 221.33.88.2 netmask 255.255.255.0
IFC
#六 / / rc.conf等
================ + ============== + =================
defaultrouter =221.33.88.254
ifconfig_fxp0 =INET 192.168.0.1子网掩码255.255.255.0
ifconfig_rl0 =INET 221.33.88.2 netmask 255.255.255.0
ifconfig_rl1 =INET 202.0.57.1 netmask 255.255.255.0
pf_enable =是
================ + ============== + =================
#六 / / pf.conf等
================ + ============== + =================
# #锚
lan_net =192.168.0.0 / 24
int_if =fxp0
ext_if1 =rl0
ext_if2 =1
ext_gw1 =221.33.88.254
ext_gw2 =61.0.57.254
# # NAT传出连接在每个网络接口
NAT ext_if1美元美元(美元lan_net任何ext_if1)->
NAT ext_if2美元美元(美元lan_net任何ext_if2)->
# #默认拒绝
从任何一个到任何一个
从任何一个到任何一个
# #通过所有传出的数据包的内部接口
通过在任何lan_net int_if美元美元
# #通过快速任何封包的网关本身
通过快速int_if美元美元美元int_if lan_net
# #传出TCP流量负载平衡来自内部网络。
通过对int_if美元路线
{($ ext_if1 ext_gw1美元(美元),ext_if2 ext_gw2美元)}轮转
原TCP lan_net美元任何旗帜的 / SA调节状态
# #负载平衡外向的UDP和ICMP流量从内部网络
通过对int_if美元路线
{($ ext_if1 ext_gw1美元(美元),ext_if2 ext_gw2美元)}轮转
原{ UDP,从$ lan_net任何保持状态ICMP }
# #一般通过外部接口规则
通过对ext_if1美元原TCP从任何旗帜的 /沙县
通过对ext_if1美元原{ UDP,ICMP }从任何保持
通过对ext_if2美元原TCP从任何旗帜的 /沙县
通过对ext_if2美元原{ UDP,ICMP }从任何保持
# #路由数据包从任何IP ext_if1美元美元ext_gw1和相同
# # ext_if2美元美元和ext_gw2
通过对ext_if1美元路线(ext_if2美元美元美元ext_gw2)ext_if2任何
通过对ext_if2美元路线(ext_if1美元美元美元ext_gw1)ext_if1任何
================ + ============== + =================
#六 / / sysctl.conf等
净。INET。IP转发= 1。
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。