[764] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Setup of IP-Masquerading Help Please (Long)

daemon@ATHENA.MIT.EDU (Ambrose Au)
Thu Oct 24 14:27:42 1996

Date: Thu, 24 Oct 1996 14:26:35 -0400 (EDT)
From: Ambrose Au <linuxer@geocities.com>
To: redhat-list@redhat.com
cc: Steven Lembark <lembark@wrkhors.com>
In-Reply-To: <Pine.GSO.3.94.961024113358.19958A-100000@bigdog.fred.net>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


------------------------------------------
BOX1 Setup:

/etc/hosts:
127.0.0.1       localhost            


204.215.83.136  raven.fred.net      raven <--- This is my IP address given


try remarking the above line
^^^^^^^^^^^^^^^^^^^^^^^^^^^^



192.168.1.1     raven.comsat.net     raven      me by my ISP
192.168.1.2     picard.comsat.net    picard
-------------------------------------------
/etc/syconfig/network-scripts/ifcfg-eth0:
#!/bin/sh

#>>>Device type: ethernet

#>>>Variable declarations:
DEVICE=eth0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY=192.168.1.1



remove the above line
^^^^^^^^^^^^^^^^^^^^^



ONBOOT=yes
#>>>End variable declarations
----------------------------------
/etc/rc.d/rc.local:

# This will load IP Masquarding at startup
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_raudio.o
/sbin/modprobe ip_masq_irc.o
#Firewall Setup Info
/sbin/ipfwadm -F -p deny



/sbin/ipfwadm -F -a m -S 192.168.1.1/24 -D 0.0.0.0/0 <-- This came right out
the above line is unnecessary
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


/sbin/ipfwadm -F -a m -S 192.168.1.2/24 -D 0.0.0.0/0 <--    of the HOWTO


you can either put     
/sbin/ipfwadm -F -a m -S 192.168.1.2/32 -D 0.0.0.0/0
or
/sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0




Hope this helps...


--
  PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-HOWTO 
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post