Koozali.org: home of the SME Server

how to open ports sme7

Offline arne

  • ****
  • 1,116
  • +0/-4
how to open ports sme7
« Reply #15 on: October 16, 2005, 01:27:33 PM »
I think I can see that the procedure in post no 2 is not completely right because it does make corrections to the "main template area" and not "the custom template area". But I believe that this priciples here in post 2 can be used.

http://forums.contribs.org/index.php?topic=20731.0

Also some info here:
http://no.longer.valid/phpwiki/index.php/Customizing


Please make a post of the working solution if/when its up and running  :-D

Keep cool but not cool only  :hammer:

Arne.
......

dub

how to open ports sme7
« Reply #16 on: October 16, 2005, 05:04:31 PM »
ok Arne
CharlieBrady give me the solution in this other post
http://forums.contribs.org/index.php?topic=29258.0

i spend a long time to find an other way to publish custom template in the right directory..
Very long and hasardious to.

the CharlieBrady way is so easy...i ask him for an other  need and when he give the way i publish a fully post for an example

Or i try it ...my linux knowledge is not so good (newbie)

thanks for your interest and see you next time

Offline arne

  • ****
  • 1,116
  • +0/-4
how to open ports sme7
« Reply #17 on: October 16, 2005, 10:31:03 PM »
Thanks for the info. I did not know about "the one line method" and I will certainly write it down.

The template system is something unic for the sme server, so if one try to use "ordinary linux books" as a refferance one can get rather confused.

It is rather difficult to get started with, but not that bad, when you get a bit used to it.

One very good part of it is that if you transfer the installation to a new PC all the template mods are within the automated data backup, so it is not neccessary to modify the next pc. All modifications are transfered automatically to the next PC, or a new PC eventually after a data crash. This mean you can change hardware in a one hour time or so. (If not to much datas. I think the limit is 4 GB now (??))
......

Offline gregswallow

  • *
  • 651
  • +1/-0
how to open ports sme7
« Reply #18 on: October 21, 2005, 08:56:46 AM »
Thanks for the instructions Charlie.  Added to the FAQ page for lack of a better place:
http://smeserver.sourceforge.net/sme70/FAQs

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
how to open ports sme7
« Reply #19 on: October 21, 2005, 12:52:16 PM »
Quote from: "gregswallow"
Thanks for the instructions Charlie.  Added to the FAQ page for lack of a better place:
http://smeserver.sourceforge.net/sme70/FAQs


Note that Charlie's instructions are slightly wrong (the Wiki doesn't like me at the moment, or I would fix them myself). They should be:

Code: [Select]
config set manta service access public status enabled TCPPort nnn

For UDP services, use UDPPort instead of TCPPort. Note that you can also set restrictions with AllowHosts and DenyHosts:

Code: [Select]
config setprop manta AllowHosts 1.2.3.4,10.11.12.0/24
config setprop manta DenyHosts 16.17.18.18
............

Offline gregswallow

  • *
  • 651
  • +1/-0
how to open ports sme7
« Reply #20 on: October 21, 2005, 07:59:31 PM »
Thanks Gordon, I updated the wiki:
http://smeserver.sourceforge.net/sme70/FAQs

tracksattak

how to open ports sme7
« Reply #21 on: December 16, 2005, 04:15:35 PM »
Hello

 I m looking for a way to open ports to be abble to
 run a counter strike server on my SME 7 , i followed
 the FAQ but it seems that my ports are still closed

 I need to open

 UDP 1200    (used for friends service)
 UDP 27000 to 27015 inclusive
 TCP 27020 to 27039 inclusive
 TCP 27040 and 27041 only for CyberCafe Owners

 Computers running Dedicated Servers need these  
 *ports* open:

 UDP: 27015 and 27020 (default HLDS, SRCDS and HLTV  port)
 TCP: 27015 (SRCDS Rcon port)

 So i tried for example

 config set steam service access public status
 enabled TCPPort 27015

 and then
 signal-event remoteaccess-update

 I did this for all the ports with no sucess

 Can you help ?

 Thanks

dub

how to open ports sme7
« Reply #22 on: December 16, 2005, 04:26:11 PM »
hi i think your problem is the service...

IS "steam" a service load at startup ??

tracksattak

how to open ports sme7
« Reply #23 on: December 16, 2005, 05:03:18 PM »
I think so too , no it s not a service loaded at
 startup.

 I just launch it when i want .

 Do you have a solution ?

 Rgds
 Tracks

dub

how to open ports sme7
« Reply #24 on: December 16, 2005, 11:25:55 PM »
//first create rules to start up the service 'steam' at boot

ln -s /etc/init.d/steam/etc/rc.d/rc7.d/S56steam
ln -s /etc/init.d/steam/etc/rc.d/rc6.d/K03steam

/sbin/e-smith/db configuration setprop steam status enabled
/sbin/e-smith/signal-event console-save


// then...openning ports for this service


config set steam service access public status enabled TCPPort 4900

signal-event remoteaccess-update


Finally i prefer to reboot

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
how to open ports sme7
« Reply #25 on: December 16, 2005, 11:55:20 PM »
Quote from: "dub"

Finally i prefer to reboot


If you are content to reboot, then you can simplify your steps somewhat:

ln -s ../init.d/e-smith-service /etc/rc7.d/S56steam
config set steam service \
 access public \
 status enabled \
 TCPPort 4900
signal-event post-upgrade
signal-event reboot

tracksattak

how to open ports sme7
« Reply #26 on: December 18, 2005, 06:27:26 PM »
Thanks for your help

 Excuse me but i m a noob .

 Steam is a software that i launch when i want ,
 you ask me to create rules for the service steam

 But there s no service steam , how can i create it ?

 steam is in an ibay , and i need to open few ports
 for it .
 Can i use iptables ?

 Rgds
 Tracks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
how to open ports sme7
« Reply #27 on: December 18, 2005, 07:12:31 PM »
Quote from: "tracksattak"

 Steam is a software that i launch when i want ,
 you ask me to create rules for the service steam

 But there s no service steam , how can i create it ?


Follow the instructions you have been given above.

However ....

The instructions above refer to a service which is running on your SME server box, and offering services to the outside world. From what google tells me, "steam" is client software which connects to outside servers. If that is so, there's no need to open any ports - all you expect to receive is return traffic, and that is already allowed automatically.

Why do you think you need to open ports, and what ports do you think you need to open. Can you post a URL which contains the information?

tracksattak

how to open ports sme7
« Reply #28 on: December 18, 2005, 07:32:54 PM »
Again a big thanks for your help

 Steam is a software i can use to create a game server
 called counter strike on Linux

 Here is the link of the official web site

 http://www.steampowered.com/

 I m used this software and sme , i was running a
 server on my 6.01 sme. The only thing i had to do  
 was to open few ports with port opening
 
 Here they are

 UDP 1200 (used for friends service)
 UDP 27000 to 27015 inclusive
 TCP 27020 to 27039 inclusive
 TCP 27040 and 27041 only for CyberCafe Owners

 Computers running Dedicated Servers need these
 *ports* open:

 UDP: 27015 and 27020 (default HLDS, SRCDS and HLTV  
 port)
 TCP: 27015 (SRCDS Rcon port)

 As you can read here

 http://support.steampowered.com/cgi-bin/steampowered.cfg/php/enduser/std_adp.php?p_faqid=160&p_created=1093381261&p_sid=r_CZGnXh&p_lva=&p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9MjQmcF9wcm9kcz0wJnBfY2F0cz0wJnBfcHY9JnBfY3Y9JnBfc2VhcmNoX3R5cGU9YW5zd2Vycy5zZWFyY2hfbmwmcF9wYWdlPTEmcF9zZWFyY2hfdGV4dD1wb3J0cw**&p_li=&p_topview=1

 Port opening is not working anymore on the 7.0 , so  
 i m looking for a way to do it

 I did the instructions given by Dub , but it seems not working because under root with winscp , i have two red arrow on S56steam and K03steam , and when i look at db/configuration , only one port is enable ,
the one i did at last (27020)

 Sorry again to be such a noob ....

 Rgds
 Tracks

tracksattak

how to open ports sme7
« Reply #29 on: December 19, 2005, 12:46:38 PM »
I forgot to say that i followed the above
 instructions again , when i look at  

 /sbin/e-smith/config show  

 I can see the steam service with all the ports
 enabled

 steam=service
    TCPort=27015,27020,27021,27022,27023,27024,27025,27026,27027,27028,27029,27030,27031,27032,27033,27034,27035,27036,27037,27038,27039
    UDPPort=1200,27020,27000,27001,27002,27003,27004,27005,27006,27007,27008,27009,27010,27011,27012,27013,27014,27015
 access=public
 status=enabled

 But my server is still not viewable on the net .

 And when i look at the log

 Dec 19 12:33:04 sme-tracker steam: /etc/rc7.d/S56steam: Couldn't find/execute init script for service steam
Dec 19 12:33:04 sme-tracker rc.e-smith: Démarrage de steam : failed


 Also i checked in etc/rc.d/rc7.d and i have s56steam
 but when i check etc/rc.d/rc6.d , i don t see the
 K03steam file.

 If i try to scan my UDP / TCP ports , none of the one i need are open

 Please help

 Rgds
 Tracks