Thanks Brian and Sean!
Could one of you possibly email me (off list) an output of an:
ls -la /etc/rc*
and,
ls -la init.d/
I'd like to see the exact setup and layout of those directories and
files?
Thanks in advance!
Rick
On Wed, 3 Nov 1999, Brian Lavender wrote:
> Ok, here is my firewall configuration on Debian.
>
> $ ls -la /etc/init.d/S40network
>
> lrwxrwxrwx 1 root root 17 Sep 3 16:05 /etc/rcS.d/S40network -> ../init.d/network
>
> $ cat /etc/init.d/network
>
> #! /bin/sh
> ifconfig lo 127.0.0.1
> route add -net 127.0.0.0
> IPADDR=207.212.133.10
> NETMASK=255.255.255.0
> NETWORK=207.212.133.0
> BROADCAST=207.212.133.255
> GATEWAY=207.212.133.254
> ifconfig eth1 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
> ##route add -net ${NETWORK}
> [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
> ifconfig eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
> # route add default gw 192.168.1.100 metric 1
>
> echo "1" > /proc/sys/net/ipv4/ip_forward
> ipchains -P forward DENY
> ipchains -A forward -s 192.168.1.0/24 -j MASQ
>
> On Wed, Nov 03, 1999 at 11:49:43AM -0800, Rick Johnson wrote:
> >
> > I posted this once but it never reached the list. So, i'm trying from a
> > different address.
>
> I don't know why that is happening. Are you sending your post to
>
> lug-nuts@cheapnet.net
>
> >
> >
> > Hi Everyone,
> >
> > I'm currently working on a project which i'd like to port to multiple
> > versions of Linux. To do this I need some help from my fellow geeks.
> >
> > What I need is the location of the init and runlevel directories and
> > files for different distributions.
> >
> > Example: Redhat & Mandrake start services with scripts located in
> > /etc/rc.d/init.d/
> >
> > Then they use symlinks in the actual runlevel directories
> > Example: /etc/rc.d/rc3.d or /etc/rc.d/rc5.d that point to the init.d
> > directories scripts.
> >
> > I'd like to know what distribution you are running (if different from
> > Redhat & Mandrake) and how your distro is setup for its startup files. Or
> > at least the location of the rc.local file (if one exists).
> >
> > For those who don't know, It is for my PMFirewall project for Ipchains. It
> > allows a novice to setup a firewall. I released it Monday on Freshmeat and
> > it already has over 1500 downloads. The website is http://www.pointman.org
> > if anyone is interested.
> >
> > Thanks in advance for any help you can give. :)
> >
> > Rick Johnson
> >
> > --
> > ===========================================================
> > Rick Johnson Voicemail: 530.325.5200
> > rick@pointman.org Fax: 530.325.5200
> > http://www.pointman.org AIM: rsjohn01
> > ===========================================================
> >
> > An imperfect plan executed violently is far superior to a perfect plan.
> > - George Patton
> >
> >
> >
>
> --
> Brian Lavender
> http://www.brie.com/brian/
>
This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:08 PST