Koozali.org: home of the SME Server

Open specific external port

Offline Nokia390

  • ****
  • 88
  • +0/-0
Open specific external port
« on: April 04, 2009, 04:34:25 PM »
Hello.
How i can open a specific external port? like 13000 or 14001.
Thanks.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Open specific external port
« Reply #1 on: April 04, 2009, 04:38:26 PM »
hi

is your SME in server & gateway mode? if so, go to "port forwarding" panel and create the rule you need

this information and more on the documentation (link above); please take some time to read it and remember to search the forums before posting :wink:

Thank you
Ciao
Stefano

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #2 on: April 04, 2009, 04:43:36 PM »
thank for replay.
my server is gateway, i´ve tray to portfoward but still closing specific ports

Offline versa

  • ****
  • 109
  • +0/-0
Re: Open specific external port
« Reply #3 on: April 04, 2009, 04:51:40 PM »
How about trying this
http://wiki.contribs.org/Firewall#DB_Settings

I used it to enable public access to a port on my server (in server only mode) and fordwarded the relevent port on my router.

Code: [Select]
config set "service-name" service access public status enabled TCPPort 13000
signal-event remoteaccess-update
......

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #4 on: April 04, 2009, 04:52:47 PM »
thanks

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #5 on: April 04, 2009, 05:36:22 PM »
it still closed...

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #6 on: April 04, 2009, 05:45:47 PM »
its not for a specified service, but for all services i need to open a port

Offline versa

  • ****
  • 109
  • +0/-0
Re: Open specific external port
« Reply #7 on: April 04, 2009, 06:02:18 PM »
paste the command you put in
I think you have to specify a name for this "service"
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Open specific external port
« Reply #8 on: April 04, 2009, 07:10:28 PM »
its not for a specified service, but for all services i need to open a port

which service are you referring?

please expose your problem and your setup, not your solution.

thank you
Ciao
Stefano
« Last Edit: April 04, 2009, 09:28:22 PM by Stefano a.k.a. nenonano »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Open specific external port
« Reply #9 on: April 04, 2009, 09:18:43 PM »
How i can open a specific external port? like 13000 or 14001.

Why do you want to do that? Your SME server is not running any services on port 13000 or port 14001.

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #10 on: April 05, 2009, 08:43:27 PM »
make a  "cccam" server for my dreambox
and i need to open the 13000 port to external servers
I did it in ubuntu, but i like mutch more sme.
Sory my english
Thanks

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Open specific external port
« Reply #11 on: April 05, 2009, 08:49:05 PM »
if the service listening on port 13000 is running on SME you should do in the SME's way

Code: [Select]
config set myprogam service access public status enabled TCPPort 13000
signal-event remoteaccess-update

if it's running on an internal server, then use the portforwarding panel

there's no other way.

anyway, you did not expose completely the problem.

Ciao
Stefano

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #12 on: April 05, 2009, 08:53:39 PM »
ok
i´m go to try
thanks a lot

Offline versa

  • ****
  • 109
  • +0/-0
Re: Open specific external port
« Reply #13 on: April 05, 2009, 09:26:43 PM »
The commands that I gave you above is what I used for CCcam
Plus CCcam runs on port 12000 by default did you change the port number ?
Is the service running ?
......

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #14 on: April 05, 2009, 10:38:40 PM »
Its in 12000 but i´m trying in other. i´m having some problems to implement the service in sme. My idea is run the service directly on sme. i can´t run the service gave-me error
i start whith  /var/bin$ sh cccam start
like in ubuntu but nothing hapens.
thanks

Offline versa

  • ****
  • 109
  • +0/-0
Re: Open specific external port
« Reply #15 on: April 05, 2009, 10:58:57 PM »
what happens if you start CCcam in debug mode will it run ?

Code: [Select]
/var/bin/CCcam.x86 -d
......

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: Open specific external port
« Reply #16 on: April 06, 2009, 12:29:55 AM »
Would the port opening contrib from swerts-knudsen work

Code: [Select]
rpm -Uvh http://sme.swerts-knudsen.com/downloads/dmc-mitel-portopening-0.0.1-4.noarch.rpm
/etc/e-smith/events/actions/navigation-conf

Bob
If you think you know whats going on, you obviously have no idea whats going on!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Open specific external port
« Reply #17 on: April 06, 2009, 03:30:17 AM »
Would the port opening contrib from swerts-knudsen work

No, it doesn't do anything that the db commands provided by Stefano will not do.

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #18 on: April 06, 2009, 11:24:46 AM »
bin]# sh cccam start
Starting CCcamd                                            [  OK  ]

the service is started

i must do:
bin]# config set CCcam..x86 service access public status enabled TCPPort 12000


or:

bin]# config set CCcam service access public status enabled TCPPort 12000

thanks

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #19 on: April 06, 2009, 11:30:08 AM »
but the port 12000 still closed

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Open specific external port
« Reply #20 on: April 06, 2009, 11:33:23 AM »
but the port 12000 still closed

evidently it is "closed" because no service is listening on it..

1) is CCcam service running? you said you've started it.. are you sure it's still running?

hint: ps will tell you

2) is CCcam service configured to listen to port 12000?

hint: netstat will tell you

HTH
Ciao
Stefano

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #21 on: April 06, 2009, 11:58:46 AM »
you are right it started but is not running
its litening on port 12000
« Last Edit: April 06, 2009, 12:00:40 PM by Nokia390 »

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #22 on: April 06, 2009, 12:22:10 PM »
how i put the service running?

Offline janet

  • *****
  • 4,812
  • +0/-0
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #24 on: April 06, 2009, 12:46:37 PM »
thanks i´m gone read it

Offline Nokia390

  • ****
  • 88
  • +0/-0
Re: Open specific external port
« Reply #25 on: April 06, 2009, 10:29:11 PM »
rpm -Uvh http://sme.swerts-knudsen.com/downloads/dmc-mitel-portopening-0.0.1-4.noarch.rpm
/etc/e-smith/events/actions/navigation-conf


Nice, it works
the service are runing and whith this contrib it make open the port.
Thanks a lot
« Last Edit: April 06, 2009, 10:30:54 PM by Nokia390 »