[ LUGOS ] diald

Marko Cuk marko.cuk na guest.arnes.si
Ned Avg 17 20:54:55 CEST 1997


The Creator wrote:
> 
> > Jaz ga uporabljam ze cca pol leta... pa dela brez problema..
> >
> > Kar se pa pinga tice, se mi zdi, da se skozi IP Masquerading ne bo
> > prebil... Nisem pa 100% preprican :)
> >
> > Basicaly... Ce ti dela iz lokalne mashine, potem bi moralo tudi iz vseh
> > ostalih, seveda ce je lokalna mreza postimana tkao kot treba :)
> >
> Nisi me cisto razumel.
> 
> Zanima me kaj moram nastaviti na masinah. To da dela vem.
> 
>                                 Andy


Ping se bo prebil cez masquarading !!

Tukaj so fileji, ki so meni pomagali:

/etc/rc.d/rc3.d/firewall.init

#!/bin/sh
#
# Firewall.init Set up the firewall on this box.          
#
# Version:      @(#) /etc/init.d/firewall.init 1.00 12-Jul-1997
#
# Author:       Miquel van Smoorenburg, <miquels na drinkel.nl.mugnet.org>
#

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        ipfwadm -F -p deny
        ipfwadm -F -a m -S 192.168.2.0/24 -D 0.0.0.0/0 
        touch /var/lock/subsys/firewall
        ;;
  stop)
        ipfwadm -F -f
        rm -f /var/lock/subsys/firewall
        ;;
  *)
        echo "Usage: firewall.init {start|stop}"
        exit 1
esac

exit 0





IN

/etc/rc.d/rc3.d/ip_masq.init 


#!/bin/sh
#
# ip_masq.init  Example file to build /etc/init.d scripts.
#
# Version:      @(#) /etc/init.d/ip_masq 1.00 12-Jul-1997 
#
# Author:       Bas Vermeulen, <Bas.Vermeulen na tip.nl>                  
#

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        depmod -a
        modprobe ip_masq_cuseeme.o
        modprobe ip_masq_irc.o
        modprobe ip_masq_ftp.o
        modprobe ip_masq_quake.o
        modprobe ip_masq_raudio.o
        modprobe ip_masq_vdolive.o
        touch /var/lock/subsys/ip_masq 
        ;;
  stop)
        rmmod ip_masq_cuseeme.o
        rmmod ip_masq_irc.o
        rmmod ip_masq_ftp.o
        rmmod ip_masq_quake.o
        rmmod ip_masq_raudio.o
        rmmod ip_masq_vdolive.o
        rm -f /var/lock/subsys/ip_masq 
        ;;
  *)
        echo "Usage: ip_masq.init {start|stop}"
        exit 1
esac

exit 0




Dodatne informacije o seznamu Starilist