Date: Tue, 15 Jun 2004 22:26:48 +0300 From: "Ilker Ozupak" <ilker.ozupak@mail.emu.edu.tr> To: <freebsd-questions@freebsd.org> Subject: RE: Keep log_in_vain Value Message-ID: <1D773859F73DD84696CCADD700C6F0CDA4E3FC@mail.emu.edu.tr>
next in thread | raw e-mail | index | archive | help
hello On Tuesday 15 June 2004 21:10, Matt "Cyber Dog" LaPlante wrote: > > -----Original Message----- > > From: David Fuchs [mailto:david@davidfuchs.ca] > > Sent: Tuesday, June 15, 2004 2:07 PM > > To: Matt "Cyber Dog" LaPlante > > Cc: freebsd-questions@freebsd.org > > Subject: Re: Keep log_in_vain Value > > > > Matt "Cyber Dog" LaPlante wrote: > > > Ah, grep saves the day again. It was being turned on in = rc.network. > > > Thanks. > > > > You sure it wasn't being turned on in rc.conf instead? Anything = else > > would mean that someone was messing with rc.network or > > /etc/default/rc.conf, which really should be left alone. > > > > -- > > Thanks, > > -David Fuchs BCIS (david@davidfuchs.ca) > > > > WWW: http://www.davidfuchs.ca/ > > MSN: david@davidfuchs.ca > > PGP: http://www.davidfuchs.ca/aboutme/433EEC91.pgp > > I'm positive...there is no log_in_vain entry in rc.conf. It only = appears > in rc.network, where both tcp and udp were set to 1. > > - > Matt > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" I am using 4.8 i think it was a problem with rc.network. even it says=20 log_in_vain=3D"0" # >=3D1 to log connects to ports w/o listeners. in /etc/defaults/rc.conf. rc.network is <code 1> network_pass4() { echo -n 'Additional TCP options:' case ${log_in_vain} in [Nn][Oo] | '') ;; *) echo -n ' log_in_vain=3DYES' sysctl -w net.inet.tcp.log_in_vain=3D1 >/dev/null sysctl -w net.inet.udp.log_in_vain=3D1 >/dev/null ;; esac echo '.' network_pass4_done=3DYES } </code> this is fixed in stable as far as i see. <code 2> network_pass4() { echo -n 'Additional TCP options:' case ${log_in_vain} in [Nn][Oo] | '') log_in_vain=3D0 ;; [Yy][Ee][Ss]) log_in_vain=3D1 ;; [0-9]*) ;; *) echo " invalid log_in_vain setting: ${log_in_vain}" log_in_vain=3D0 ;; esac if [ "${log_in_vain}" -ne 0 ]; then echo -n " log_in_vain=3D${log_in_vain}" sysctl net.inet.tcp.log_in_vain=3D"${log_in_vain}" = >/dev/null sysctl net.inet.udp.log_in_vain=3D"${log_in_vain}" = >/dev/null fi echo '.' network_pass4_done=3DYES } </code> in code 1 log_in_vain=3D* results it to be log_in_vain=3D1 if it is not NO=20 in code 2 log_in_vain=3D"0" works as predicted ... solution : 1 - put "log_in_vain=3D"NO" into /etc/rc.conf 2 - modify your rc.network ---=20 i did the second for my box and gone to single user=20 and back to multiuser and there was no problem .. Ps : code 2 is from src/etc/rc.network and 1 is 4.8's version -- IO
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1D773859F73DD84696CCADD700C6F0CDA4E3FC>