Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: mike_mattos on August 06, 2008, 04:21:51 PM

Title: masq port forwarding info
Post by: mike_mattos on August 06, 2008, 04:21:51 PM
Is there a tool to extract the data from the masq file to allow documentation of port forwarding?

I'd like to keep the data in a Samba accessible file, hoped 'cat  masq | grep $tring  > /MYiBAY/ports would work, but grep isn't doing the job, gets source or destination but not both!

thx

Mike
Title: Re: masq port forwarding info
Post by: CharlieBrady on August 07, 2008, 12:06:41 AM
Is there a tool to extract the data from the masq file to allow documentation of port forwarding?

The port forwarding panel of the server manager will show you all ports which are being forwarded.

From the command line:

db portforward_tcp show
db portforward_udp show

will display all ports which are being forwarded.
Title: Re: masq port forwarding info
Post by: mike_mattos on August 07, 2008, 04:23:15 AM
[root@s****** ~]# db portforward_tcp show
[root@s****** ~]# db portforward_udp show


NO data came to the screen, and yes, the panel shows the data, but I'd like to be able to access the data when I'm NOT at the console!  When I'm at the console, the issue is moot!

but I will research the db show further
Title: Re: masq port forwarding info
Post by: mmccarn on August 07, 2008, 01:36:54 PM
If your port forwarding panel shows the info you want but db portforward_tcp show does not, something is out of whack...(However, if you mis-spell the database name, you will get no results)
Title: Re: masq port forwarding info
Post by: CharlieBrady on August 07, 2008, 10:26:34 PM
If your port forwarding panel shows the info you want but db portforward_tcp show does not, something is out of whack...

Or he has SME 7.1 or earlier.
Title: Re: masq port forwarding info
Post by: mike_mattos on August 12, 2008, 12:50:44 AM
you are right, Charlie!  thx