- 论坛徽章:
- 0
|
请教openbsd的HA方案。。。
这个是sixxs-heartbeat的配置文件,
看不懂啊,哪位大哥给解释解释??
# Configuration for SixXS Heartbeat Client
# SixXS - http://www.sixxs.net
#
# Commentlines start with semicolon ( , hash (#),
# double slash (//) or a space ( ).
# Empty lines are ignored.
# Argument values may be quoted using single (') and double (" quotes.
#
# examples:
# os linux
# os "linux"
# os 'linux'
# Operating System (linux/freebsd/openbsd/netbsd/winxp)
os "openbsd"
# Interface the tunnel should go over
# used for detecting the local IPv4 endpoint
ipv4_interface "tun0"
# IPv4 address of the POP (nlams01/nlams02/nlams04/demun01/iedub01/dkcop01)
# This is also the address to where heartbeats are sent
ipv4_pop "[POP].sixxs.net"
# ipv4_local is figured out automatically
# from the ipv4_interface
# Special case for people having their
# endpoint behind a NAT
#hb_behindnat 1
#
# Don't change the local tunnel endpoint
#hb_statictunnel 1
#
# The hostname or IP of the 'external' IP
# from which the heartbeat should originate
# Note that mismatching IP's will be dropped
#ipv4_local_resolve public-ip.example.net
# Interface to be used for the tunnel
# will be created on the OS's that need that
ipv6_interface "gif0"
# The local and remote sides of the tunnel
ipv6_pop "2001:db8::1"
ipv6_local "2001:db8::2"
# The prefix length of the tunnel
# Tunnel space is thus ipv6_pop/ipv6_prefixlen
ipv6_prefixlen 64
# The Heartbeat password for this tunnel
hb_password "hartslag"
# The interval at which to send the heartbeat
hb_sendinterval 60
# Informational: after this timeout the tunnel
# is taken down at the POP side
hb_timeout 300
# Put the client in the background? (default)
# Set to 0 to keep in foreground, eg for daemontools
# Non-daemonized will also cause logs to be send to stdout
# daemonize 1
下面这个是readme
SixXS Heartbeat Client/Server
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The heartbeat protocol as described in the draft
uses the IANA assigned port 3740 (*1) for communication
to notify a POP of IPv4 endpoint changes and the
reachability of the client.
In short it sends a heartbeat every 60 seconds containing:
HEARTBEAT TUNNEL 2001:db8::2 10.100.13.42 1063665852 hartslag
This is md5'd, password removed, md5 added and thus the
following string is transmitted to the POP's IPv4 per UDP:
HEARTBEAT TUNNEL 2001:db8::2 10.100.13.42 1063665852 da46fdc28f568bb62d29661f73758095
If there is no heartbeat for 300 seconds the POP automatically
disables the tunnel. If the IPv4 address changes, the tunnel
is again automatically reconfigured to the new address.
If the tunnel was down it is configured to be up on the heartbeat.
All of this makes sure that traffic won't be transmitted
to unsuspecting endpoints in case an endpoint is on a
dialup connection or other fast-changing endpoint.
Note: Keep your machine NTP synced, if the timestamp difference
is bigger than 120 seconds the heartbeat will be silently dropped.
Comments and questions should be directed to info@sixxs.net
or the SixXS Forums for discussions.
Server/POP side of the code is closed for the time being.
Jeroen Massar / SixXS Staff
jeroen@sixxs.net
The software can be downloaded from:
http://www.sixxs.net/archive/heartbeat/
*1 = IANA port 3740
http://www.iana.org/assignments/port-numbers
heartbeat 3740/tcp Heartbeat Protocol
heartbeat 3740/udp Heartbeat Protocol
# Jeroen Massar <jeroen@unfix.org>; April 2003
我用的openbsd3.7做的网关,现在想做一个HA。
敬请指点指点!!!!! |
|