How to stop my services from trying to bind to IPv6?

Redd Vinylene reddvinylene at gmail.com
Mon Aug 11 13:47:20 UTC 2008


I just don't want my logs filling up with useless error messages ;)

Thanks!

On Mon, Aug 11, 2008 at 3:42 PM, Curt Micol <asenchi at gmail.com> wrote:
> On Mon, Aug 11, 2008 at 9:38 AM, Redd Vinylene <reddvinylene at gmail.com> wrote:
>> I use the default sshd config file, I'd rather not maintain one.
>>
>> As for my named.conf, I haven't enabled no IPv6 setting there either.
>>
>> Perhaps an ipv6_enable="NO" in rc.conf will do the trick?
>>
>> Honestly though, shouldn't FreeBSD assume I don't use IPv6 unless I
>> tell it that I do?
>
> Nope, quite the opposite.  IPv6 is in a lot of services, and keeping
> it on is a good idea (at least imho).  In rc.conf you can set many
> *_flags to listen on IPv4.   For example:
>
> sshd_flags="-4"
>
> You could also simply block all traffic on IPv6 (in pf):
> block all inet6
>
> HTH,
>
> --
> # Curt Micol
>



-- 
http://www.home.no/reddvinylene


More information about the freebsd-questions mailing list