Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Nokia390 on April 04, 2009, 04:34:25 PM

Title: Open specific external port
Post by: Nokia390 on April 04, 2009, 04:34:25 PM
Hello.
How i can open a specific external port? like 13000 or 14001.
Thanks.
Title: Re: Open specific external port
Post by: Stefano 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
Title: Re: Open specific external port
Post by: Nokia390 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
Title: Re: Open specific external port
Post by: versa 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
Title: Re: Open specific external port
Post by: Nokia390 on April 04, 2009, 04:52:47 PM
thanks
Title: Re: Open specific external port
Post by: Nokia390 on April 04, 2009, 05:36:22 PM
it still closed...
Title: Re: Open specific external port
Post by: Nokia390 on April 04, 2009, 05:45:47 PM
its not for a specified service, but for all services i need to open a port
Title: Re: Open specific external port
Post by: versa 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"
Title: Re: Open specific external port
Post by: Stefano 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
Title: Re: Open specific external port
Post by: CharlieBrady 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.
Title: Re: Open specific external port
Post by: Nokia390 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
Title: Re: Open specific external port
Post by: Stefano 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
Title: Re: Open specific external port
Post by: Nokia390 on April 05, 2009, 08:53:39 PM
ok
i´m go to try
thanks a lot
Title: Re: Open specific external port
Post by: versa 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 ?
Title: Re: Open specific external port
Post by: Nokia390 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
Title: Re: Open specific external port
Post by: versa 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
Title: Re: Open specific external port
Post by: crazybob 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
Title: Re: Open specific external port
Post by: CharlieBrady 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.
Title: Re: Open specific external port
Post by: Nokia390 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
Title: Re: Open specific external port
Post by: Nokia390 on April 06, 2009, 11:30:08 AM
but the port 12000 still closed
Title: Re: Open specific external port
Post by: Stefano 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
Title: Re: Open specific external port
Post by: Nokia390 on April 06, 2009, 11:58:46 AM
you are right it started but is not running
its litening on port 12000
Title: Re: Open specific external port
Post by: Nokia390 on April 06, 2009, 12:22:10 PM
how i put the service running?
Title: Re: Open specific external port
Post by: janet on April 06, 2009, 12:41:54 PM
Nokia390

See the Developer Manual
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual

http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual#Process_startup.2C_supervision_and_shutdown
Title: Re: Open specific external port
Post by: Nokia390 on April 06, 2009, 12:46:37 PM
thanks i´m gone read it
Title: Re: Open specific external port
Post by: Nokia390 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