Date: Fri, 13 Sep 2002 11:41:55 -0400 From: "Derek" <derek@durham.net> To: <Arie.Gerszt@student.unisg.ch>, <freebsd-isp@freebsd.org> Subject: Re: nat & load balancing Message-ID: <001c01c25b3c$1c0b6770$04fea8c0@motorcity.on.ca> References: <OF57F6F3CD.F792A65F-ONC1256C32.00456915@unisg.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
> What I was wondering is, if this can be done with a > FreeBSD box too, with 3 FE Interfaces. It could be done easily, given that what are behind the fbsd box are private IPs (10/8, 192.168/16, etc), you are not doing port forwarding (ie, hosting a web server), and that if a link fails, that termination of a TCP session is acceptable. Within this criteria you could run a cronjob that does something like if [ "`ping -c 4 [ISP1 Defaultgateway] | grep 100%`" != "" ]; then route delete default; route add default [ISP2 Defaultgateway]; fi If you wanted to get really tricky you could use some environmental variables like $CURRENT_GW, $BACKUP_GW, and swap the two when the link went down, that way when link 2 goes down, it knows to swap back to link 1. It would probably need massaging for your NAT rules as well. Derek To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c25b3c$1c0b6770$04fea8c0>