Re: network configuration scripts

2000-11-15 Thread will trillich
On Wed, Nov 15, 2000 at 03:27:14PM -0600, Keegan Prendergast wrote:
I have my debian linux box setup as a masqing gateway for the rest of
 the computers in the house.  The problem is, I did it by hand and have not
 rebooted since, because i could not figure out where i should put the
 commands =).  Should they go in /etc/init.d/networking, or some local init
 file. Also has the structure of the network startup changed, because all
 of the documentation i have found refers to paths or files, that are not
 the same as the ones i haveAt anyrate if any one knows the source of
 any detailed/current documentation on the way debian runs startup files,
 network configuration, or just has an answer to my question please
 reply...thanks...oh yeah...i am running potato..

/etc/network/interfaces is where you should set up potato
networking parameters, including your internal (192.168.*.*
probably) net card and your external net card; then

apt-get install ipmasq

and you should be done.

for your other computers, specify 192.168.debian.box as
their gateways. there's a bit more to it than this,
and someone's working on it, hot and heavy, over
at eGroups.com/group/newbieDoc...

-- 
There are only two places in the world where time takes
precedence over the job to be done.  School and prison. 
--William Glasser 

[EMAIL PROTECTED]***http://www.dontUthink.com/

volunteer to document your experience for next week's
newbies -- http://www.eGroups.com/messages/newbieDoc



Re: network configuration scripts

2000-11-15 Thread Silver
 the debian way is now to edit /etc/network/interfaces
 this is mine (there are 2 network cards in my box) :

 -- cut here --
 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

 # The loopback interface
 auto lo
 iface lo inet loopback

 # ADSL interface
 auto eth0
 iface eth0 inet static
 address 10.0.0.10
 netmask 255.255.255.0
 network 10.0.0.0
 broadcast 10.0.0.255
 up /etc/network/ipchains.rules

 # Local network
 auto eth1
 iface eht1 inet static
 address 192.168.1.1
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 -- cut here --

 note that it acts as a firewall and i run the ipchains rules when the
 interface comes up
 this way you can just do 'ifup eth0' and 'ifdown eth0' to raise/shutdown
an
 interface =)

 IMHO, there shouldnt be any customization in /etc/init.d, it's just a
place
 for startup and
 shutdown scripts (you can add yours for your particular services if you
 want).

 Silver

 - Original Message -
 From: Keegan Prendergast [EMAIL PROTECTED]
 To: debian-user@lists.debian.org
 Sent: Wednesday, November 15, 2000 10:27 PM
 Subject: network configuration scripts


 I have my debian linux box setup as a masqing gateway for the rest of
  the computers in the house.  The problem is, I did it by hand and have
not
  rebooted since, because i could not figure out where i should put the
  commands =).  Should they go in /etc/init.d/networking, or some local
init
  file. Also has the structure of the network startup changed, because all
  of the documentation i have found refers to paths or files, that are not
  the same as the ones i haveAt anyrate if any one knows the source of
  any detailed/current documentation on the way debian runs startup files,
  network configuration, or just has an answer to my question please
  reply...thanks...oh yeah...i am running potato..