[Comm-en] sharing Internet access
D&J Bouley
djbouley at shaw.ca
Mon Mar 31 20:29:03 MSD 2003
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
============================================
======
More information about the community-en
mailing list