Hi, I don't know if this is the right place to post this (sorry if it isn't), but I have a suggested diff for lib.cli to account for when running the Shorewall 'dump' command on Arch Linux.
Since Arch Linux hasn't had the 'netstat' nor 'arp' binaries installed for
a while, the diff makes it so that a check for the existence of 'netstat'
and 'arp' is done before running them. If they do not exist the
replacements 'ss' and 'ip neigh' are used instead.
Thanks,
-Martin
--- lib.cli.orig 2013-08-28 05:16:34.000000000 -0400
+++ lib.cli 2013-09-08 14:20:01.268239572 -0400
@@ -1503,7 +1503,11 @@
if [ $g_family -eq 4 ]; then
heading "ARP"
- arp -na
+ if [ -x arp ]; then
+ arp -na
+ else
+ ip -4 neigh ls
+ fi
else
heading "Neighbors"
ip -6 neigh ls
@@ -1525,10 +1529,18 @@
echo
- if qt netstat -4; then
- netstat -${g_family}tunap
+ if [ -x netstat ]; then
+ if qt netstat -4; then
+ netstat -${g_family}tunap
+ elif netstat -tunap; then
+ netstat -tunap
+ fi
else
- netstat -tunap
+ if ss -4; then
+ ss -${g_family}tunap
+ else
+ ss -tunap
+ fi
fi
if [ -n "$TC_ENABLED" ]; then
lib.cli.patch-for-arch-linux-and-iproute2
Description: Binary data
------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
