略去导航.
主页
The image verification code you entered is incorrect.

给大家一些NAT配置文

给大家一些NAT配置文件的借鉴

! Configuration File for keepalived

vrrp_sync_group VG1 {
group {
VI_1
VI_2
}
}

vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.0.75
}
}

vrrp_instance VI_2 {
state MASTER
interface eth0
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
177.0.10.253
}
}

virtual_server 192.168.0.75 80 {
delay_loop 6
lb_algo wlc
lb_kind NAT
persistence_timeout 600
protocol TCP

real_server 177.0.10.2 80 {
weight 100
TCP_CHECK {
connect_timeout 3
}
}
}

###############################
###############################
BACKUP config
! Configuration File for keepalived

vrrp_sync_group VG1 {
group {
VI_1
VI_2
}
}

vrrp_instance VI_2 {
state BACKUP
interface eth0
virtual_router_id 51
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.0.75
}
}

vrrp_instance VI_2 {
state BACKUP
interface eth0
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
177.0.10.253
}
}

virtual_server 192.168.0.75 80 {
delay_loop 6
lb_algo wlc
lb_kind NAT
persistence_timeout 600
protocol TCP

real_server 177.0.10.2 80 {
weight 100
TCP_CHECK {
connect_timeout 3
}
}
}

回复

  • 允许 HTML标签: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 行和段被自动切分。
  • 你可以用[inline:xx] 标记来内嵌显示上传的文件或者图片。
更多格式化选项信息 Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.