[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: connect() with AF_INET6 freezes on some Debian/unstable machine



On 2015-04-08 11:39:22 +0300, Reco wrote:
> > > > > The correct way to deal with this then is to disable
> > > > > accepting RAs on your host:
> > > > > 
> > > > > echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra
> > > > 
> > > > I did *not* do that yet, but I can see:
> > > > 
> > > > ypig:~> cat /proc/sys/net/ipv6/conf/all/accept_ra
> > > > 1
> > > > 
> > > > i.e. it is already 1 (ditto for /proc/sys/net/ipv6/conf/eth0/accept_ra).
> > > > Or do you mean 0?
> > > 
> > > My bad. Zero to disable, one to enable.
> > 
> > OK. I suppose that I should use /etc/sysctl.conf to make this setting
> > permanent.
> 
> net.ipv6.conf.all.accept_ra = 0

Done on this desktop machine.

This still doesn't solve the problem for laptops, which may need to
accept RA's on some networks. However I think that the solution is to
disable accepting RA's in general, and accept them dynamically when
needed, e.g. via /etc/network/interfaces configuration with something
like for the concerned networks:

  pre-up echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra
  post-down echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: