Koozali.org: home of the SME Server

masq port forwarding info

Offline mike_mattos

  • *
  • 313
  • +0/-0
masq port forwarding info
« 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
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: masq port forwarding info
« Reply #1 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.

Offline mike_mattos

  • *
  • 313
  • +0/-0
Re: masq port forwarding info
« Reply #2 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
...

Offline mmccarn

  • *
  • 2,657
  • +10/-0
Re: masq port forwarding info
« Reply #3 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)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: masq port forwarding info
« Reply #4 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.

Offline mike_mattos

  • *
  • 313
  • +0/-0
Re: masq port forwarding info
« Reply #5 on: August 12, 2008, 12:50:44 AM »
you are right, Charlie!  thx

...