Syntax Errors with Multihomed Hosts

Bug #53328 reported by Richard Laager
2
Affects Status Importance Assigned to Milestone
ipkungfu
New
Unknown
ipkungfu (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: ipkungfu

If you have a host with the same interface on two different subnets, you end up with syntax errors that prevent ipkungfu from working.

The fix, to /usr/sbin/ipkungfu is:

# Detect EXT_NET if not specified
if [ -z "$EXT_NET" ] ; then
 EXT_NET=`route -n | grep ^0.0.0.0 | awk '{print $8}'`
fi

becomes:

# Detect EXT_NET if not specified
if [ -z "$EXT_NET" ] ; then
 EXT_NET=`route -n | grep ^0.0.0.0 | awk '{print $8}' | head -n1`
fi

That is, add the "| head -n1" part.

Jim Qode (jimqode)
Changed in ipkungfu:
status: New → Confirmed
Revision history for this message
Marco Rodrigues (gothicx) wrote :

I've contacted author about this problem...

Changed in ipkungfu:
assignee: nobody → gothicx
Revision history for this message
Marco Rodrigues (gothicx) wrote :
Changed in ipkungfu:
assignee: gothicx → nobody
Changed in ipkungfu:
status: Unknown → New
Changed in ipkungfu:
importance: Undecided → Low
Revision history for this message
Richard Laager (rlaager) wrote :

For the record, I haven't used ipkungfu in years (since ufw was introduced). I've removed by direct subscription to this bug, as I no longer care.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.