Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Lars 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
-
look for "Port Forwarding"
-
http://www.e-smith.org/docs/howto/contrib/final-cstrike-howto.html
-
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.
-
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
-
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
-
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
-
Jon, where does this entry go please?
Mark.
>
> {
>
> $OUT = allow_udp_in(7002, 6003, 27005, 27010, 27011, 27015
> (1));
> }
>
>
-
> {
>
> $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