Koozali.org: home of the SME Server

Create pinhole in Firewall

Offline smeerbartje

  • *
  • 71
  • +0/-0
Create pinhole in Firewall
« on: November 07, 2008, 11:59:47 AM »
At the excellent Wiki pages, I see this page which describes how to make a pinhole in the firewall in order to run certain deamons on the server itself. Is this better then adding a portforward for the same port to 127.0.0.1... which also does the job.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Create pinhole in Firewall
« Reply #1 on: November 07, 2008, 02:32:05 PM »
At the excellent Wiki pages, I see this page which describes how to make a pinhole in the firewall in order to run certain deamons on the server itself. Is this better then adding a portforward for the same port to 127.0.0.1... which also does the job.
This is the advised way (as you are quoting the developers guide, the guideline for development of SME Server) for public services running on the server itself, port forwards are a work around for it IMHO if they are pointing to localhost.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Create pinhole in Firewall
« Reply #2 on: November 07, 2008, 02:46:38 PM »
Okay, thanks for your quick reply. But is it possible to retrieve a list of all pinholed rules?

Offline mmccarn

  • *
  • 2,657
  • +10/-0
Re: Create pinhole in Firewall
« Reply #3 on: November 07, 2008, 04:29:34 PM »
Raw dump of configuration database for all services:
Code: [Select]
db configuration print | grep "=service"
List of service names for all services that have "access=public" and "status=enabled":
Code: [Select]
db configuration print |awk -F"[=|]" '/\=service.*public.*enabled/  {print $1}'
Raw dump of configuration database for public, enabled services:
Code: [Select]
db configuration print |awk -F"[=|]" '/\=service.*public.*enabled/  {print $_}'
« Last Edit: November 07, 2008, 04:36:03 PM by mmccarn »

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Create pinhole in Firewall
« Reply #4 on: November 07, 2008, 04:38:31 PM »
Cool, thanks!!