diff -N -c -r freevrrpd-0.8.6/freevrrpd.8 freevrrpd-0.8.6-new/freevrrpd.8 *** freevrrpd-0.8.6/freevrrpd.8 Thu Jan 30 12:50:55 2003 --- freevrrpd-0.8.6-new/freevrrpd.8 Fri Mar 14 14:45:35 2003 *************** *** 1,28 **** ! A ! .Dd January 28, 2000 .Dt FREEVRRPD 8 ! .Os FreeBSD 4.3 .Sh NAME .Nm freevrrpd .Nd Virtual Redundancy Router Protocol Daemon for FreeBSD .Sh SYNOPSIS ! .Nm freevrrpd .Sh DESCRIPTION ! .Nm freevrrpd ! is a RFC2338 compliant daemon, you can use VRRP protocol with multiple interfaces and multiple VRID. For each VRID defined in the configuration file, ! .Nm freevrrpd ! create a thread for managing a poll of one or multiple virtual IP addresses. Thios daemon work only in IPv4 environnement and not in IPv6 yet. .Pp ! you can eliminate all point of failures of your network with this utility. When ! .Nm freevrrpd ! is started, it reads /usr/local/etc/freevrrpd.conf file and go to background. All options are defined in this file. For more informations, you can read comments on this file. .Pp ! List of functionnalities : .Bl -bullet -compact .It ! Support of multiples VRID .It ! Master announce state by sending multicast packets via BPF device .It Changing routes and IP in 3 seconds .It --- 1,56 ---- ! .Dd March 14, 2003 .Dt FREEVRRPD 8 ! .Os FreeBSD 4.8 .Sh NAME .Nm freevrrpd .Nd Virtual Redundancy Router Protocol Daemon for FreeBSD .Sh SYNOPSIS ! .Nm ! .Op Fl c Ar directory ! .Op Fl f Ar configfile ! .Op Fl h ! .Op Fl F .Sh DESCRIPTION ! .Nm ! is a RFC2338 compliant daemon, you can use VRRP protocol with multiple ! interfaces and multiple VRID. With this utility, it is possible to ! eliminate all points of failures of a network. .Pp ! The options are as follows: ! .Bl -tag -width Ds ! .It Fl c ! specify a directory to ! .Xr chroot 2 ! to on program startup. ! .It Fl f ! specify a pathname to a configuration file. The default pathname is ! .Pa /usr/local/etc/freevrrpd.conf. ! .It Fl F ! do not become a daemon and run in foreground. ! .It Fl h ! print a short usage summary. ! .El .Pp ! For each VRID defined in the configuration file, ! .Nm ! creates a thread for managing a poll of one or multiple virtual IP addresses. ! The daemon currently supports an IPv4 environment and has no IPv6 support yet. ! .Pp ! When ! .Nm ! is started, it reads ! .Pa /usr/local/etc/freevrrpd.conf ! file and goes to background. ! All possible options are defined in this file. See ! .Xr freevrrpd.conf 5 ! for information the configuration. ! .Pp ! List of functionalities : .Bl -bullet -compact .It ! Support of multiples VRID's .It ! Master announces state by sending multicast packets via BPF device .It Changing routes and IP in 3 seconds .It *************** *** 30,48 **** .It Election between differents SLAVE servers with differents priorities .It ! Same host can be a SLAVE and MASTER at the same time for different VRID .It ! Autmatic downgrade to SLAVE state if a MASTER is up again .It Support of plain text authentication described in RFC2338 .It Support netmask for virtual IP addresses .Sh IMPLEMENTATION NOTES ! This utility doesn't quit properly if you use the -KILL signal. If you want to stop freevrrpd, you can use kill [PID] and not kill -9 [PID], then it can delete virtual IP addresses and routes properly on shutdown. .Sh BUGS ! .Nm freevrrpd ! is in active developpement, please send me bugs report and suggestions. .Sh AUTHORS .An Sebastien Petit Aq spe@bsdfr.org .Sh HISTORY first appeared in FreeBSD-4.3 --- 58,84 ---- .It Election between differents SLAVE servers with differents priorities .It ! Same host can be a SLAVE and MASTER at the same time for different VRID's .It ! Automatic downgrade to SLAVE state if a MASTER is up again .It Support of plain text authentication described in RFC2338 .It Support netmask for virtual IP addresses .Sh IMPLEMENTATION NOTES ! .Nm ! doesn't quit properly if you use the -KILL signal. If you want to stop ! .Nm ! one should use kill [PID] so ! .Nm ! is able to delete the virtual IP addresses and routes properly on shutdown. .Sh BUGS ! .Nm ! is under active development, please send me bugs report and suggestions. ! .Sh SEE ALSO ! .Xr freevrrpd.conf 5 .Sh AUTHORS .An Sebastien Petit Aq spe@bsdfr.org + .Sh HISTORY first appeared in FreeBSD-4.3 diff -N -c -r freevrrpd-0.8.6/freevrrpd.conf.5 freevrrpd-0.8.6-new/freevrrpd.conf.5 *** freevrrpd-0.8.6/freevrrpd.conf.5 Thu Jan 1 01:00:00 1970 --- freevrrpd-0.8.6-new/freevrrpd.conf.5 Fri Mar 14 14:48:52 2003 *************** *** 0 **** --- 1,65 ---- + .Dd March 14, 2003 + .Dt FREEVRRPD.CONF 5 + .Os FreeBSD 4.8 + .Sh NAME + .Nm freevrrpd.conf + .Nd Virtual Redundancy Router Protocol Daemon configuration for FreeBSD + .Sh DESCRIPTION + .Xr freevrrpd(8) + is a RFC2338 compliant daemon used to provide automatic IP address switchover + in case of a network component failure. + When + .Xr freevrrpd(8) is started, it reads (by default) the file + .Pa /usr/local/etc/freevrrpd.conf + to configure itself. All possible options are defined in this file. + .Pp + The configuration file consists of keywords which start in column one followed + by one or more spaces or tabs, an equal sign, one or more spaces or tabs and + a keyword dependent parameter value. + .Pp + A line beginning with '#' is treated as a comment line. + .Pp + Each VRID Section must begin with the + .Em [VRID] + keyword in column one. + .Pp + The currently available configurations keywords are: + .Pp + .Bl -tag -width masterscript + .It Li serverid + specify the the number of this VRID. + .It Li interface + specify the nework interface name. + .It Li priority + specify the priority for this machine. + A priority of 255 is a MASTER of the VRID. + A priority less than 255 is a BACKUP with a priority of 0 to 254. + The default priority is 100. + .It Li addr + specify IP address(es) associated with this VRID. + It is possible to specify multiple addresses separated by a ','. + The netmask is specified with CIDR notation; the number after a '/' + represents the number of bits set to 1 for the netmask. + Example: /24 is 11111111 11111111 11111111 00000000 = 255.255.255.0 + .It Li password + specify a cleartext password to authenticate VRRP packets associated + with this VRID. + .It Li masterscript + specify the pathname of a script which is executed when this host becomes + the master for this VRID. + .It Li backupscript + specify the pathname of a script which is executed when this host becomes + the backup for this VRID. + .It Li vridsdep + specify one or more VRIDs that must go to backup state at the same time + (monitored circuits). + Useful to avoid blackholes with Firewalls with two interfaces. + .It Li advinterval + specify the advertisement interval in seconds (default 1 second). + .El + .Sh SEE ALSO + .Xr freevrrpd.conf 5 + .Sh AUTHORS + .An Sebastien Petit Aq spe@bsdfr.org + .Sh HISTORY + first appeared in FreeBSD-4.3 diff -N -c -r freevrrpd-0.8.6/freevrrpd.conf.sample freevrrpd-0.8.6-new/freevrrpd.conf.sample *** freevrrpd-0.8.6/freevrrpd.conf.sample Thu Jan 30 12:50:55 2003 --- freevrrpd-0.8.6-new/freevrrpd.conf.sample Fri Mar 14 13:57:07 2003 *************** *** 47,52 **** --- 47,55 ---- # This is extremly useful to avoir blackhole with Firewalls with two interfaces vridsdep = 2, 3 + # advertizing interval (default 1 second) + advinterval = 2 + [VRID] # specify a second VRID number 2 serverid = 2 diff -N -c -r freevrrpd-0.8.6/vrrp_conf.c freevrrpd-0.8.6-new/vrrp_conf.c *** freevrrpd-0.8.6/vrrp_conf.c Thu Jan 30 12:50:55 2003 --- freevrrpd-0.8.6-new/vrrp_conf.c Fri Mar 14 11:45:41 2003 *************** *** 256,261 **** --- 256,266 ---- vr->vridsdeps[i] = -1; vrrp_conf_freeargs(temp); } + if (!strcmp(option, "advinterval")) { + temp = vrrp_conf_split_args(arg, ','); + vr->adv_int = atoi(temp[0]); + vrrp_conf_freeargs(temp); + } } fgets(ligne, 1024, stream); }