On 7/9/2015 11:55 AM, Cyril Lashkevich wrote: > Hello, > I'm using version 4.6.11, and show connections command works fine, but > prints to stderr: > > $ sudo shorewall show connections | wc > /usr/share/shorewall/lib.cli: line 1015: show_connections: command not found > conntrack v1.4.2 (conntrack-tools): 604 flow entries have been shown. > 606 8872 101849 > The attached patch seems to correct the problem.
patch /usr/share/shorewall/lib.cli < CONNECTIONS.patch
-Tom
--
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli
index 99c60c1..28b36b2 100644
--- a/Shorewall-core/lib.cli
+++ b/Shorewall-core/lib.cli
@@ -1012,7 +1012,6 @@ show_command() {
case "$1" in
connections)
- show_connections
if [ $g_family -eq 4 ]; then
if [ -d /proc/sys/net/netfilter/ ]; then
local count
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
