From owner-freebsd-questions Tue Jun 10 07:35:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA07709 for questions-outgoing; Tue, 10 Jun 1997 07:35:26 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA07687 for ; Tue, 10 Jun 1997 07:35:15 -0700 (PDT) Received: by mail.EUnet.hu, id QAA17334; Tue, 10 Jun 1997 16:34:21 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id OAA00249; Tue, 10 Jun 1997 14:58:29 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199706101258.OAA00249@CoDe.hu> Subject: Re: How can I set ipforwarding=1? To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Tue, 10 Jun 1997 14:58:29 +0200 (MET DST) Cc: dima@stv.ee In-Reply-To: <33968DFC.944DDA41@stv.ee> from Dmitri Baranov at "Jun 5, 97 12:59:24 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hello > Does anybody knows how can I set ipforwarding=1 ???? > > My routed -s refuses to work. In your /etc/sysconfig (/etc/rc.config I don't know) set GATEWAY=YES or with sysctl -w net.inet.ip.forwarding=1 Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"