Koozali.org: home of the SME Server

Open Port on 5.6

Lars

Open Port on 5.6
« on: February 07, 2003, 05:04:31 PM »
Hello
I want to open the ports so my counter strike server will work online, the server is running on the SME Server. Can someone tell me how too open ports and or if there is any addons for the server-manager

Many Thanks

// Lars

sixxxeight

Re: Open Port on 5.6
« Reply #1 on: February 07, 2003, 08:19:25 PM »
look for "Port Forwarding"

Robert Schutz


Lars

Re: Open Port on 5.6
« Reply #3 on: February 08, 2003, 05:37:55 PM »
i don't need to port forword or a how to install c's on SME, I only need to know how i can open a port.

Charlie Brady

Re: Open Port on 5.6
« Reply #4 on: February 08, 2003, 09:00:57 PM »
Lars wrote:
 
> i don't need to port forword or a how to install c's on SME,
> I only need to know how i can open a port.

Use a custom template fragment, like one of the existing /etc/e-smith/templates/etc/rc.d/init.d/masq/45Allow* templates fragments.

Charlie

Lars

Re: Open Port on 5.6
« Reply #5 on: February 09, 2003, 03:25:23 AM »
I have added the ports, that C*S/HL needs. but no one can connect :(

{
    my $status = ${'Counter-Strike'}{status} || "disabled";
    my $access = ${'Counter-Strike'}{access} || "public";

    $OUT = allow_udp_in(7002, 6003, 27005, 27010, 27011, 27015
       ($status eq "enabled") && ($access eq "public"));
}

that is my file i have called it 45AllowUdpCS and it is in /etc/e-smith/templates/etc/rc.d/init.d/masq/

Can someone tell me what i am doing wrong, since it doesn't want to work ?

// Lars

Jon Blakely

Re: Open Port on 5.6
« Reply #6 on: February 10, 2003, 01:39:13 AM »
Lars,

Unless you have set up C/S in the configuration data base, what you have done wont work. This will

{

$OUT = allow_udp_in(7002, 6003, 27005, 27010, 27011, 27015
(1));
}


Expand template
# /sbin/e-smith/expand-template /etc/rc.d/init.d/masq

Restart masq
# service masq restart

To see the new rules
# service masq status

Jon

Mark Farey

Re: Open Port on 5.6
« Reply #7 on: February 10, 2003, 07:55:27 PM »
Jon, where does this entry go please?

Mark.

>
> {
>
> $OUT = allow_udp_in(7002, 6003, 27005, 27010, 27011, 27015
> (1));
> }
>
>

Lars

Re: Open Port on 5.6
« Reply #8 on: February 11, 2003, 03:13:44 PM »
> {
>
> $OUT = allow_udp_in(7002, 6003, 27005, 27010, 27011, 27015
> (1));
> }
>
>
> Expand template
> # /sbin/e-smith/expand-template /etc/rc.d/init.d/masq

It doesn't work, i have saved the file in /etc/e-smith/templates/etc/rc.d/init.d/masq/ and called it 45AllowCS but when i run the expand template then it gives me this error
ERROR in /etc/e-smith/templates//etc/rc.d/init.d/masq/45AllowCS: Program fragment delivered error <> at template line 1
ERROR: Template processing failed for //etc/rc.d/init.d/masq: 1 fragment generated errors
 at /sbin/e-smith/expand-template line 66

I Hope that someone has come up with a solusion and wants to share it with me,

Thanks

Lars Nørgaard