Bug#47632: marked as done (ipmasq: Loops in configuration file question YNDZ all answers loop.)
Your message dated Tue, 19 Oct 1999 19:12:45 -0400
with message-id <19991019191244.C31061@lappy.djj.state.va.us>
and subject line Bug#47541: general: apt-get install failing ipmasq rules, cannot select Y or N, cycles
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Darren Benham
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Oct 1999 08:21:22 +0000
Received: (qmail 19361 invoked from network); 17 Oct 1999 08:21:22 -0000
Received: from dsld129.phnx.uswest.net (HELO nomadz.uswest.net) (root@209.180.145.128)
by master.debian.org with SMTP; 17 Oct 1999 08:21:22 -0000
Received: (from js@localhost)
by nomadz.uswest.net (8.9.3/8.9.3/Debian 8.9.3-6) id BAA00651;
Sun, 17 Oct 1999 01:21:20 -0700
Date: Sun, 17 Oct 1999 01:21:20 -0700
Message-Id: <199910170821.BAA00651@nomadz.uswest.net>
From: "John K. Stevenson" <js@nomadz.uswest.net>
Subject: ipmasq: Loops in configuration file question YNDZ all answers loop.
To: submit@bugs.debian.org
X-Mailer: bug 3.2.6
Package: ipmasq
Version: 3.4.0
Severity: important
pmasq cannot complete install. It dies at configuration question. It loops
-- System Information
Debian Release: potato
Kernel Version: Linux nomadz 2.2.10 #7 Wed Sep 15 23:07:11 MST 1999 i586 unknown
Versions of the packages ipmasq depends on:
ii netbase 3.16-3 Basic TCP/IP networking binaries
--- Begin /etc/ppp/ip-up.d/00ipmasq (modified conffile)
Config file not present or no permissions for access
--- End /etc/ppp/ip-up.d/00ipmasq
--- Begin /etc/ppp/ip-down.d/00ipmasq (modified conffile)
Config file not present or no permissions for access
--- End /etc/ppp/ip-down.d/00ipmasq
--- Begin /etc/ipmasq/rules/A00path.def (modified conffile)
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
--- End /etc/ipmasq/rules/A00path.def
--- Begin /etc/ipmasq/rules/A00sanitycheck.def (modified conffile)
if [ ! -e /proc/net/ip_forward -a ! -e /proc/sys/net/ipv4/ip_forward ]; then
echo "IP Forwarding has not been enabled in the kernel."
exit 1
fi
if [ ! -e /proc/net/ip_masquerade ]; then
echo "IP Masquerade has not been enabled in the kernel."
exit 1
fi
--- End /etc/ipmasq/rules/A00sanitycheck.def
--- Begin /etc/ipmasq/rules/A01interfaces.def (modified conffile)
EXTERNAL=$(default-if | sort -u)
INTERNAL=$(enumerate-if | sort -u | grep -v lo)
if [ -n "$EXTERNAL" ]; then
for i in $EXTERNAL; do
INTERNAL=$(echo $INTERNAL | sed -e s/$i//)
done
fi
if [ "$SHOWRULES" = "yes" ]; then
echo "Interfaces found:"
fi
if [ -n "$EXTERNAL" -o -n "$INTERNAL" ]; then
for i in $EXTERNAL $INTERNAL; do
ii=$(echo $i | sed -e 's/\:/_/g')
ip=$(ipofif $i)
nm=$(nmofif $i)
eval "IPOFIF_$ii=$ip"
eval "NMOFIF_$ii=$nm"
if [ "$SHOWRULES" = "yes" ]; then
echo -e " $i\t$ip/$nm"
fi
done
fi
--- End /etc/ipmasq/rules/A01interfaces.def
--- Begin /etc/ipmasq/rules/A02masqmethod.def (modified conffile)
IPFWADM=/sbin/ipfwadm
IPCHAINS=/sbin/ipchains
if [ -e /proc/net/ip_fwchains ]; then
test -x $IPCHAINS || exit 1
MASQMETHOD=ipchains
else
test -x $IPFWADM || exit 1
MASQMETHOD=ipfwadm
fi
if [ "$SHOWRULES" = "yes" ]; then
IPFWADM="echo $IPFWADM"
IPCHAINS="echo $IPCHAINS"
fi
--- End /etc/ipmasq/rules/A02masqmethod.def
--- Begin /etc/ipmasq/rules/A03flush.def (modified conffile)
case $MASQMETHOD in
ipfwadm)
$IPFWADM -I -p deny
$IPFWADM -O -p deny
$IPFWADM -F -p deny
$IPFWADM -I -f
$IPFWADM -O -f
$IPFWADM -F -f
;;
ipchains)
$IPCHAINS -P input DENY
$IPCHAINS -P output DENY
$IPCHAINS -P forward DENY
$IPCHAINS -F input
$IPCHAINS -F output
$IPCHAINS -F forward
;;
esac
--- End /etc/ipmasq/rules/A03flush.def
--- Begin /etc/ipmasq/rules/A04functions.def (modified conffile)
ipnm_cache () {
privatei=$(echo $1 | sed -e 's/\:/_/g')
eval "IPOFIF=\$IPOFIF_$privatei"
eval "NMOFIF=\$NMOFIF_$privatei"
return
}
--- End /etc/ipmasq/rules/A04functions.def
--- Begin /etc/ipmasq/rules/I10lo.def (modified conffile)
case $MASQMETHOD in
ipfwadm)
$IPFWADM -I -a accept -W lo
;;
ipchains)
$IPCHAINS -A input -j ACCEPT -i lo
;;
esac
--- End /etc/ipmasq/rules/I10lo.def
--- Begin /etc/ipmasq/rules/I50external.def (modified conffile)
#
if [ -n "$EXTERNAL" ]; then
for i in $EXTERNAL; do
ipnm_cache $i
case $MASQMETHOD in
ipfwadm)
$IPFWADM -I -a accept -W $i -D $IPOFIF/32
;;
ipchains)
$IPCHAINS -A input -j ACCEPT -i $i -d $IPOFIF/32
;;
esac
done
fi
--- End /etc/ipmasq/rules/I50external.def
--- Begin /etc/ipmasq/rules/I70masq.def (modified conffile)
if [ -n "$INTERNAL" -a -n "$EXTERNAL" ]; then
for j in $EXTERNAL; do
for i in $INTERNAL; do
ipnm_cache $i
case $MASQMETHOD in
ipfwadm)
$IPFWADM -I -a deny -W $j -S $IPOFIF/$NMOFIF -o
;;
ipchains)
$IPCHAINS -A input -j DENY -i $j -s $IPOFIF/$NMOFIF -l
;;
esac
done
done
fi
--- End /etc/ipmasq/rules/I70masq.def
--- Begin /etc/ipmasq/rules/M70masq.def (modified conffile)
#
if [ -n "$INTERNAL" -a -n "$EXTERNAL" ]; then
for j in $EXTERNAL; do
for i in $INTERNAL; do
ipnm_cache $i
case $MASQMETHOD in
ipfwadm)
$IPFWADM -F -a masq -W $j -S $IPOFIF/$NMOFIF
;;
ipchains)
if [ -n "$PEEROFIF" ]; then
$IPCHAINS -A forward -j MASQ -i $j -s $PEEROFIF/$NMOFIF
else
$IPCHAINS -A forward -j MASQ -i $j -s $IPOFIF/$NMOFIF
fi
;;
esac
done
done
fi
--- End /etc/ipmasq/rules/M70masq.def
--- Begin /etc/ipmasq/rules/O10lo.def (modified conffile)
case $MASQMETHOD in
ipfwadm)
$IPFWADM -O -a accept -W lo
;;
ipchains)
$IPCHAINS -A output -j ACCEPT -i lo
;;
esac
--- End /etc/ipmasq/rules/O10lo.def
--- Begin /etc/ipmasq/rules/O30internal.def (modified conffile)
if [ -n "$INTERNAL" ]; then
for i in $INTERNAL; do
ipnm_cache $i
case $MASQMETHOD in
ipfwadm)
$IPFWADM -O -a accept -W $i -D $IPOFIF/$NMOFIF
$IPFWADM -O -a accept -W $i -D 244.0.0.0/240.0.0.0 -P udp
$IPFWADM -O -a accept -W $i -D 224.0.0.0/240.0.0.0 -P icmp
;;
ipchains)
$IPCHAINS -A output -j ACCEPT -i ${i%%:*} -d $IPOFIF/$NMOFIF
$IPCHAINS -A output -j ACCEPT -i ${i%%:*} -d 224.0.0.0/240.0.0.0 -p ! tcp
;;
esac
done
fi
--- End /etc/ipmasq/rules/O30internal.def
--- Begin /etc/ipmasq/rules/O50external.def (modified conffile)
if [ -n "$EXTERNAL" ]; then
for i in $EXTERNAL; do
ipnm_cache $i
case $MASQMETHOD in
ipfwadm)
$IPFWADM -O -a accept -W $i -S $IPOFIF/$NMOFIF
;;
ipchains)
$IPCHAINS -A output -j ACCEPT -i $i -s $IPOFIF/$NMOFIF
;;
esac
done
fi
--- End /etc/ipmasq/rules/O50external.def
--- Begin /etc/ipmasq/rules/O70masq.def (modified conffile)
if [ -n "$INTERNAL" -a -n "$EXTERNAL" ]; then
for j in $EXTERNAL; do
for i in $INTERNAL; do
ipnm_cache $i
case $MASQMETHOD in
ipfwadm)
$IPFWADM -O -a deny -W $j -D $IPOFIF/$NMOFIF -o
;;
ipchains)
$IPCHAINS -A output -j DENY -i $j -d $IPOFIF/$NMOFIF -l
;;
esac
done
done
fi
--- End /etc/ipmasq/rules/O70masq.def
--- Begin /etc/ipmasq/rules/Z90kernelforward.def (modified conffile)
if [ -e /proc/sys/net/ipv4/ip_forward ]; then
if [ "$SHOWRULES" = "yes" ]; then
echo "echo \"1\" > /proc/sys/net/ipv4/ip_forward"
else
echo "1" > /proc/sys/net/ipv4/ip_forward
fi
fi
--- End /etc/ipmasq/rules/Z90kernelforward.def
--- Begin /etc/ipmasq/rules/Z99ipmasqrules.def (modified conffile)
if [ -e /etc/ipmasq.rules ]; then
if [ "$SHOWRULES" = "yes" ]; then
echo ". /etc/ipmasq.rules"
else
. /etc/ipmasq.rules
fi
fi
--- End /etc/ipmasq/rules/Z99ipmasqrules.def
--- Begin /etc/ipmasq/rules/ZZZdenyandlog.def (modified conffile)
Config file not present or no permissions for access
--- End /etc/ipmasq/rules/ZZZdenyandlog.def
--- Begin /etc/ipmasq/ipmasq-down/A00path.def (modified conffile)
Config file not present or no permissions for access
--- End /etc/ipmasq/ipmasq-down/A00path.def
--- Begin /etc/ipmasq/ipmasq-down/A00sanitycheck.def (modified conffile)
Config file not present or no permissions for access
--- End /etc/ipmasq/ipmasq-down/A00sanitycheck.def
--- Begin /etc/ipmasq/ipmasq-down/A02masqmethod.def (modified conffile)
Config file not present or no permissions for access
--- End /etc/ipmasq/ipmasq-down/A02masqmethod.def
--- Begin /etc/ipmasq/ipmasq-down/A03flush.def (modified conffile)
Config file not present or no permissions for access
--- End /etc/ipmasq/ipmasq-down/A03flush.def
---------------------------------------
Received: (at 47541-done) by bugs.debian.org; 19 Oct 1999 23:09:48 +0000
Received: (qmail 31695 invoked from network); 19 Oct 1999 23:09:46 -0000
Received: from ppp08.ts2-3.newportnews.visi.net (HELO lappy.djj.state.va.us) (209.8.197.136)
by master.debian.org with SMTP; 19 Oct 1999 23:09:46 -0000
Received: from bmc by lappy.djj.state.va.us with local (Exim 3.03 #1 (Debian))
id 11diQv-0008Jy-00; Tue, 19 Oct 1999 19:12:45 -0400
Date: Tue, 19 Oct 1999 19:12:45 -0400
From: Ben Collins <bcollins@debian.org>
To: "John K. Stevenson" <js@nomadz.uswest.net>, 47541-done@bugs.debian.org,
47542-done@bugs.debian.org
Subject: Re: Bug#47541: general: apt-get install failing ipmasq rules, cannot select Y or N, cycles
Message-ID: <19991019191244.C31061@lappy.djj.state.va.us>
References: <199910160703.AAA13524@nomadz.uswest.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/1.0pre4i
In-Reply-To: <199910160703.AAA13524@nomadz.uswest.net>; from js@nomadz.uswest.net on Sat, Oct 16, 1999 at 12:03:45AM -0700
On Sat, Oct 16, 1999 at 12:03:45AM -0700, John K. Stevenson wrote:
> Package: general
> Version: 19991016
> Severity: important
>
>
> apt-get install failing ipmasq rules, cannot select Y or N, cy
> cles
It's not a failure. ipmasq has about 15 conffiles. I first installed 3.3.5
then immediately upgraded to 3.4.0. Upon which I was promtped 8 times
about changed conffiles (all of them different ones, not a loop). To avoid
this in the future you can have apt.conf add --force-confdef to dpkg's
command line, and it will use the default answer to the questions for all
the conffiles in all packages (please read the man page before doing this).
Since this is not a bug, I am closing both of these bug reports.
Ben
Reply to: