ALT Linux users (in English only)
 help / color / mirror / Atom feed
From: D&J Bouley <djbouley@shaw.ca>
To: community-en@altlinux.org
Subject: [Comm-en] sharing Internet access
Date: Mon, 31 Mar 2003 10:29:03 -0600
Message-ID: <200303311029.03630.djbouley@shaw.ca> (raw)

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
============================================
======



             reply	other threads:[~2003-03-31 16:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31 16:29 D&J Bouley [this message]
2003-03-31 17:15 ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200303311029.03630.djbouley@shaw.ca \
    --to=djbouley@shaw.ca \
    --cc=community-en@altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux users (in English only)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community-en/0 community-en/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community-en community-en/ http://lore.altlinux.org/community-en \
		community-en@lists.altlinux.org community-en@lists.altlinux.ru community-en@lists.altlinux.com
	public-inbox-index community-en

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community-en


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git