Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Tasha Smith <natasha3641@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: Re: Ineeed of major help with  Dynamic IP Addy for my IPTABLES :(((
Date: Wed, 16 Oct 2002 21:48:48 -0700 (PDT)	[thread overview]
Message-ID: <20021017044848.63963.qmail@web40701.mail.yahoo.com> (raw)
In-Reply-To: <20021017041844.56340.qmail@web40707.mail.yahoo.com>

Ohh just soo you guys know "was i suppose to do this part to the rc.pump.done
script": 
"chmod -u=rwx /etc/rc.d/rc.pump.done" or should i have left that part out?????

And 1 more thing when i changed in the script
"sh /etc/init.d/iptables panic "to ----->" /etc/init.d/firewall panic


#!/bin/bash

if [ "$1" = "down" ]; then
    exit 0
fi

if [ "$1" = "lease" ]; then
    echo address $3 assigned to network interface $2 >
/dev/console
fi

/sbin/pump -i eth0 -s > /var/tmp/pump.out

IPADDR=`fgrep IP: /var/tmp/pump.out | sed -e "s/.*IP:
//"`
NETMASK=`fgrep IP: /var/tmp/pump.out | sed -e
"s/.*Netmask: //"`
BROADCAST=`fgrep IP: /var/tmp/pump.out | sed -e
"s/.*Broadcast: //"`
NETWORK=`fgrep IP: /var/tmp/pump.out | sed -e
"s/.*Network: //"`
DHCP_SERVER=`fgrep IP: /var/tmp/pump.out | sed -e
"s/.*DHCP_SERVER: //"`
GATEWAY=`fgrep IP: /var/tmp/pump.out | sed -e
"s/.*Gateway: //"`
DOMAIN=`fgrep IP: /var/tmp/pump.out | sed -e
"s/.*Domain: //"`

rm /var/tmp/pump.out

echo IPADDR=$IPADDR . /etc/rc.d/pump.info
echo NETMASK=$NETMASK >> /etc/rc.d/pump.info
echo SUBNET_BASE=$NETWORK >> /etc/rc.d/pump.info
echo SUBNET_BROADCAST=$BROADCAST >>
/etc/rc.d/pump.info
echo GATEWAY=$GATEWAY >> /etc/rc.d/pump.info
echo HOSTNAME=$HOSTNAME >> /etc/rc.d/pump.info
echo DHCP_SERVER=$DHCP_SERVER>> /etc/rc.d/pump.info

sh /etc/init.d/iptables restart  <---when i changed iptables to firewall retsart

exit 0
********************************************************************************
AND HERE WHEN I CHANGE IPTABLES TO FIREWALL sh/etc/init.d/firewall panic 

if [ -f /etc/rc.d/pump.info ]; then
     . /etc/rc.d/pump.info
 else

 echo "rc.firewall: dhcp is not configured."
 sh /etc/init.d/iptables panic <---when i changed this to firewall panic
 exit 1 
fi
********************************************************************************
WHEN I CHANGES THOSE 2 THINGS IPTABLES TO FIREWALL AND RESTART MY MACHINE ALL IT
WILL DO WHEN IT starts it SAYS 
STARTING UP REDHAT NETWORK DAEMON
DHCP IS NOT CONFIGURED
DHCP IS NOT CONFIGURED
DHCP IS NOT CONFIGURED
DHCP IS NOT CONFIGURED
DHCP IS NOT CONFIGURED
DHCP IS NOT CONFIGURED
DHCP IS NOT CONFIGURED
DHCP IS NOT CONFIGURED
"AND KEEPS SAYING THIS!"

Just thought i would let you know i tryed that!!!! And thats what happen  


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com


  reply	other threads:[~2002-10-17  4:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-17  4:18 Ineeed of major help with Dynamic IP Addy for my IPTABLES :((( Tasha Smith
2002-10-17  4:48 ` Tasha Smith [this message]
2002-10-17  5:20   ` JeeBak Kim
  -- strict thread matches above, loose matches on Subject: below --
2002-10-17  7:56 Tasha Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021017044848.63963.qmail@web40701.mail.yahoo.com \
    --to=natasha3641@yahoo.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox