b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | config global_defs |
| 2 | # option alt_config_file "/etc/keepalived/keepalived.conf" |
| 3 | # list notification_email "acassen@firewall.loc" |
| 4 | # list notification_email "failover@firewall.loc" |
| 5 | # list notification_email "sysadmin@firewall.loc" |
| 6 | # option notification_email_from "Alexandre.Cassen@firewall.loc" |
| 7 | # option smtp_server "192.168.200.1" |
| 8 | # option smtp_connect_timeout "30" |
| 9 | # option router_id "LVS_DEVEL" |
| 10 | # option vrrp_mcast_group4 "224.0.0.18" # optional, default 224.0.0.18 |
| 11 | # option vrrp_mcast_group6 "f02::12" # optional, default ff02::12 |
| 12 | # option linkbeat_use_polling "1" |
| 13 | # option vrrp_startup_delay "5" |
| 14 | |
| 15 | #config ipaddress |
| 16 | # option name "ipaddress0" |
| 17 | # option address "192.168.1.1/24" |
| 18 | # option device "eth0" |
| 19 | # option scope "global" |
| 20 | |
| 21 | #config ipaddress |
| 22 | # option name "ipaddress1" |
| 23 | # option address "192.168.1.2/24" |
| 24 | # option device "eth1" |
| 25 | # option scope "global" |
| 26 | |
| 27 | #config ipaddress |
| 28 | # option name "ipaddress2" |
| 29 | # option address "192.168.1.1/24" |
| 30 | # option device "eth0" |
| 31 | # option scope "link" |
| 32 | |
| 33 | #config ipaddress |
| 34 | # option name "ipaddress3" |
| 35 | # option address "192.168.1.2/24" |
| 36 | # option device "eth2" |
| 37 | # option scope "site" |
| 38 | |
| 39 | #config ipaddress |
| 40 | # option name "ipaddress4" |
| 41 | # option address "192.168.1.1/24" |
| 42 | # option device "eth0" |
| 43 | # option scope "host" |
| 44 | |
| 45 | #config ipaddress |
| 46 | # option name "ipaddress5" |
| 47 | # option address "192.168.1.2/24" |
| 48 | # option device "eth0" |
| 49 | # option scope "nowhere" |
| 50 | |
| 51 | #config route |
| 52 | # option name "route0" |
| 53 | # option address "192.168.1.1/24" |
| 54 | # option gateway "192.168.0.1" |
| 55 | # option device "eth0" |
| 56 | |
| 57 | #config route |
| 58 | # option name "route1" |
| 59 | # option address "192.168.2.1/24" |
| 60 | # option gateway "192.168.0.1" |
| 61 | # option device "eth0" |
| 62 | |
| 63 | #config route |
| 64 | # option name "route2" |
| 65 | # option address "127.0.0.1" |
| 66 | # option blackhole "1" |
| 67 | |
| 68 | #config static_ipaddress |
| 69 | # list address "ipaddress0" |
| 70 | # list address "ipaddress1" |
| 71 | |
| 72 | #config static_routes |
| 73 | # list route "route0" |
| 74 | # list route "route1" |
| 75 | |
| 76 | #config vrrp_sync_group |
| 77 | # option name "VI_sync_group_1" |
| 78 | # list group "VI_1" |
| 79 | # list group "VI_2" |
| 80 | # option smtp_alert "1" |
| 81 | # option notify_backup "<switch-backup-state-script>" |
| 82 | # option notify_master "<switch-master-state-script>" |
| 83 | # option notify_fault "<switch-fault-state-script>" |
| 84 | # option notify "<switch-any-state-script>" |
| 85 | # option global_tracking 1 |
| 86 | |
| 87 | #config track_interface |
| 88 | # option name "track_intf1" |
| 89 | # option value "eth0" |
| 90 | # option weight "1" |
| 91 | |
| 92 | #config track_interface |
| 93 | # option name "track_intf2" |
| 94 | # option value "eth1" |
| 95 | # option weight "2" |
| 96 | |
| 97 | #config track_script |
| 98 | # option name "track_script1" |
| 99 | # option value "<script-file1>" |
| 100 | # option weight "1" |
| 101 | |
| 102 | #config track_script |
| 103 | # option name "track_script2" |
| 104 | # option value "<script-file2>" |
| 105 | # option weight "2" |
| 106 | |
| 107 | #config vrrp_instance |
| 108 | # option name "VI_1" |
| 109 | # option use_vmac "eth0" |
| 110 | # option native_ipv6 "1" |
| 111 | # option state "MASTER" |
| 112 | # option interface "eth0" |
| 113 | # list track_interface "track_intf1" |
| 114 | # list track_interface "track_intf2" |
| 115 | # list track_script "track_script1" |
| 116 | # list track_script "track_script2" |
| 117 | # option dont_track_primary "1" |
| 118 | # list unicast_peer "192.168.0.1" |
| 119 | # list unicast_peer "192.168.1.1" |
| 120 | # list virtual_ipaddress "ipaddress2" |
| 121 | # list virtual_ipaddress "ipaddress3" |
| 122 | # list virtual_ipaddress_excluded "ipaddress4" |
| 123 | # list virtual_ipaddress_excluded "ipaddress5" |
| 124 | # list virtual_routes "route1" |
| 125 | # list virtual_routes "route2" |
| 126 | # option mcast_src_ip "224.0.0.1" |
| 127 | # option unicast_src_ip "192.168.0.1" |
| 128 | # option virtual_router_id "128" |
| 129 | # option priority "128" |
| 130 | # option advert_int "5" |
| 131 | # option nopreempt "1" |
| 132 | # option preempt_delay "500" |
| 133 | # option debug "2" |
| 134 | # option notify_backup "<switch-backup-state-script>" |
| 135 | # option notify_master "<switch-master-state-script>" |
| 136 | # option notify_fault "<switch-fault-state-script>" |
| 137 | # option notify_stop "<switch-stop-state-script>" |
| 138 | # option notify "<switch-any-state-script>" |
| 139 | # option smtp_alert "1" |
| 140 | # option accept "1" |
| 141 | |
| 142 | #config vrrp_script |
| 143 | # option script "<script-file>" |
| 144 | # option interval "5" |
| 145 | # option weight "10" |
| 146 | # option fall "2" |
| 147 | # option rise "3" |
| 148 | |
| 149 | #config virtual_server |
| 150 | # option enabled "1" |
| 151 | # option ipaddr "192.168.200.2" |
| 152 | # option port "80" |
| 153 | # option fwmark "0x42" |
| 154 | # option delay_loop "30" |
| 155 | # valid values for lb_algo rr|wrr|lc|wlc |
| 156 | # option lb_algo "rr" |
| 157 | # valid values for lb_kind NAT|DR|TUN |
| 158 | # option lb_kind "NAT" |
| 159 | # option persistence_timeout "50" |
| 160 | # option persistence_granularity "192.168.110.2" |
| 161 | # option virtualhost "www.domain1.com" |
| 162 | # valid values for protocol TCP|UDP |
| 163 | # option protocol "TCP" |
| 164 | # option sorry_server_ip "192.168.100.100" |
| 165 | # option sorry_server_port "80" |
| 166 | # list real_server "Server1" |
| 167 | # list real_server "Server2" |
| 168 | |
| 169 | #config real_server |
| 170 | # option enabled "1" |
| 171 | # option name "Server1" |
| 172 | # option weight "2" |
| 173 | # option check "HTTP_GET" |
| 174 | # only for check TCP_CHECK|HTTP_GET|SSL_GET |
| 175 | # option connect_port "80" |
| 176 | # option connect_timeout "3" |
| 177 | # only for check MISC_CHECK |
| 178 | # option misc_path "<user-defined-check-script>" |
| 179 | # only for check HTTP_GET | SSL_GET |
| 180 | # list url "url1" |
| 181 | # list url "url2" |
| 182 | # option nb_get_retry "3" |
| 183 | # option delay_before_retry "2" |
| 184 | |
| 185 | #config real_server |
| 186 | # option enabled "1" |
| 187 | # option name "Server2" |
| 188 | # option weight "2" |
| 189 | # option check "TCP_CHECK" |
| 190 | # option connect_port "80" |
| 191 | # option connect_timeout "3" |
| 192 | |
| 193 | #config url |
| 194 | # option name "url1" |
| 195 | # option path "/testurl/test1.jsp" |
| 196 | # option digest "11" |
| 197 | |
| 198 | #config url |
| 199 | # option name "url2" |
| 200 | # option path "/testurl/test2.jsp" |
| 201 | # option digest "22" |
| 202 | |