From owner-freebsd-questions@FreeBSD.ORG Tue Jun 15 19:28:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FF0016A4CE for ; Tue, 15 Jun 2004 19:28:29 +0000 (GMT) Received: from mail.emu.edu.tr (mail.emu.edu.tr [193.140.41.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id B08FE43D41 for ; Tue, 15 Jun 2004 19:28:26 +0000 (GMT) (envelope-from ilker.ozupak@mail.emu.edu.tr) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 15 Jun 2004 22:26:48 +0300 Message-ID: <1D773859F73DD84696CCADD700C6F0CDA4E3FC@mail.emu.edu.tr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RE: Keep log_in_vain Value Thread-Index: AcRTDrOosz5QZL9nRR2yDBvEHlOQpw== From: "Ilker Ozupak" To: Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: RE: Keep log_in_vain Value X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2004 19:28:29 -0000 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 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 } this is fixed in stable as far as i see. 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 } 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