Koozali.org: home of the SME Server

how can I see what ports are being forwarded?

Offline steve288

  • *
  • 336
  • +0/-0
how can I see what ports are being forwarded?
« on: July 09, 2010, 06:22:00 PM »
I know the interface in the sme has a gui to see what ports are being forwarded but can anyone tell me if there is a command to see the current ports forwarded, some iptables command?? maybe and where this file is that contains the info about ip\ports being forwarded. I have searched but cant seem to find it definitively.
Thanks.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: how can I see what ports are being forwarded?
« Reply #1 on: July 09, 2010, 07:33:00 PM »
I know the interface in the sme has a gui to see what ports are being forwarded but can anyone tell me if there is a command to see the current ports forwarded, some iptables command?

"iptables-save" will show you all rules currently in effect. Look there in the NAT section.

Offline steve288

  • *
  • 336
  • +0/-0
Re: how can I see what ports are being forwarded?
« Reply #2 on: July 09, 2010, 07:55:14 PM »
Well thats a new one for me,
thanks.