Re: FreeBSD network failover

2008-12-16 Thread Valentin Bud
On Tue, Dec 16, 2008 at 4:14 PM, Gabe  wrote:

> >Maybe try lagg(4) in Failover mode?
>
> On Tue, Dec 16, 2008 at 12:57 PM, Randy Bush  wrote:
>  I have a nat'd box which obviously has an internal and external ip
>  address. The box has a third interface which is configured to a
>  DSL connection. My goal is for that interface to be activated if
>  the external side fails so that outbound traffic still flows. Any
>  of you know of a way to accomplish this regardless of the type of
>  failure.
> >
>
> Lagg wouldn't work on my setup because the dsl  connection would be almost
> completely independent.  Unless you can provide an example.


Hello Gabe,

 You could use monit (http://mmonit.com/monit/) for example to monitor the
default gateway with a ping and if it fails
to exec a specific script in which you set up routes, send email and such
and of course
to (re)set the default stuff when the (default) connection is back online.

 There might be other tools designed especially for this so the others
can point you in a better direction.

a great day,
v


>
>
> /gabe
> ___
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
>
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: NTP - default /etc/ntp.conf

2009-06-05 Thread Valentin Bud
On Fri, Jun 5, 2009 at 4:52 PM, Sean C. Farley  wrote:

> On Fri, 5 Jun 2009, Edwin Groothuis wrote:
>
>  After pondering at conf/58595, I came with this text.
>>
>> The ntpd is not enabled by default, so the fact that the servers
>> are commented out should not be an issue.
>>
>> Any objections against adding it to the tree?
>>
>
> I like it.
>
> I would also add restrict lines to it since ntp defaults to being open to
> all packets.
>
> These would ignore everything except the pools (restricted) and localhost
> (open):
> restrict default ignore
> restrict pool.ntp.org nomodify nopeer noquery notrap
> restrict pool.ntp.org nomodify nopeer noquery notrap
> restrict 127.0.0.1
> restrict -6 ::1
>
>
>  Index: etc/ntp.conf
>> ===
>> --- etc/ntp.conf(revision 0)
>> +++ etc/ntp.conf(revision 0)
>> @@ -0,0 +1,28 @@
>> +#
>> +# $FreeBSD$
>> +#
>> +# Default NTP servers for the FreeBSD operating system.
>> +#
>> +# Don't forget to enable ntpd in /etc/rc.conf with:
>> +# ntpd_enable="YES"
>> +#
>> +
>> +driftfile /var/db/ntpd.drift
>> +
>> +#
>> +# Uncomment the following three lines to sync against three "local"
>> +# public NTP servers.
>> +#
>> +# server pool.ntp.org
>> +# server pool.ntp.org
>> +# server pool.ntp.org
>> +
>> +#
>> +# If you want to pick yourself which country's public NTP server
>> +# you want sync against, comment out the above servers, uncomment
>> +# the next ones and replace CC with the country's abbrevation.
>> +#
>> +# server CC.pool.ntp.org
>> +# server CC.pool.ntp.org
>> +# server CC.pool.ntp.org
>> +#
>> Index: etc/Makefile
>> ===
>> --- etc/Makefile(revision 193485)
>> +++ etc/Makefile(working copy)
>> @@ -14,7 +14,7 @@
>>hosts hosts.allow hosts.equiv \
>>inetd.conf libalias.conf login.access login.conf mac.conf motd \
>>netconfig network.subr networks newsyslog.conf nsswitch.conf \
>> -   phones profile protocols \
>> +   ntpd.conf phones profile protocols \
>>
>
> ntpd.conf or ntp.conf?


I guess it's a typo and should be ntp.conf.


>
>
> Sean
> --
> s...@freebsd.org
>
> ___
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
>

 That's a very good idea. It provides a starting point for new users of
ntpd.

my 7c,
v
-- 
network warrior since 2005
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"