From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 31 Mar 2003 10:29:03 -0600 From: D&J Bouley To: community-en@altlinux.org Message-id: <200303311029.03630.djbouley@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.5 Subject: [Comm-en] sharing Internet access Sender: community-en-admin@altlinux.org Errors-To: community-en-admin@altlinux.org X-BeenThere: community-en@altlinux.org X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community-en@altlinux.org X-Reply-To: djbouley@shaw.ca List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: In reference to the instructions I received concerning the setup of network sharing, can anyone tell me... I named our local network "VirtualSkyNet" and my gateway address to 192.168.0.1 during the set-up. Do I replace the $LOCALNET=192.168.9.0/24 variable with $VirtualSkyNet=192.168.0.1/24 in the script below? I assume I only have to run this script once to get Internet sharing functional. David. D&J Bouley wrote: > > Greetings, > > First, let me say how pleased I am with the new release of Junior 2.2. I > installed it on my PC over the weekend and have been enjoying it ever since. > > I do have a problem I cannot seem to overcome, regarding sharing my Internet > connection over my home network. I get an error from the ALT Linux Control > Center application that I do not know how to overcome. I was able to do this > easily using my old Mandrake 8.2 OS (which I replaced with Junior 2.2). > You can use this small ease script for sharing Internet to localnetwork: ################### #!/bin/sh modprobe ipchains IPCHAINS=/sbin/ipchains Any="0.0.0.0/0" localhost_localdomain="127.0.0.1/32" $LOCALNET="192.168.9.0/24" $IPCHAINS -P input ACCEPT $IPCHAINS -P forward ACCEPT $IPCHAINS -P output ACCEPT $IPCHAINS -F $IPCHAINS -X # input rules # forward rules $IPCHAINS -A forward -s $LOCALNET -d $Any -j MASQ # output rules ################### $LOCALNET - is your local network, change this if need. Before set FORWARD_IPV4=true in file /etc/sysconfig/network and say: service network restart -- ============================================ (o_ //\ \/_/ E-mail powered by Linux ============================================ ======