Raised This Month: $32 Target: $400
 8% 

ports open/close CSF


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 11-09-2017 , 08:39   ports open/close CSF
Reply With Quote #1

CSF
Which ports are in use for basic cs 1.6 server and necessary to open?
consider i am having apache too in vps and i am using winscp [SFTP] to access server file

Quote:
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,99 5"
TCP_OUT = "20,21,22,25,53,80,110,113,443,587,993,99 5"
UDP_IN = "20,21,53"
UDP_OUT = "20,21,53,113,123"
how many hit count should i add ?
Quote:
PORTFLOOD = “port;protocol;hit_count;interval_in_sec onds”
PORTFLOOD = “80;tcp;50;10”
Connection Limit Protection
Quote:
CONNLIMIT = “port;limit”
CONNLIMIT = "80;10,21;2"
Can anyone give me his csf.conf file
Thanks

Last edited by indraraj striker; 11-09-2017 at 08:56.
indraraj striker is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 11-09-2017 , 09:21   Re: ports open/close CSF
Reply With Quote #2

I added port 27015 to 28015 UDP since I wasn't sure what ports client connect on or if it's even needed and it works fine

can't remember the dos protection setting
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 11-09-2017 , 10:28   Re: ports open/close CSF
Reply With Quote #3

Quote:
Originally Posted by aron9forever View Post
I added port 27015 to 28015 UDP since I wasn't sure what ports client connect on or if it's even needed and it works fine

can't remember the dos protection setting
how to set range ?
indraraj striker is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 11-10-2017 , 05:41   Re: ports open/close CSF
Reply With Quote #4

UDP_IN = "20,21,53,27015:28015" as example for port range, just add the last part no need to replace the whole thing
UDP_OUT = "20,21,53,113,123,334343523,27015:28015"

here's the flood settings I use which seem to work fine on a machine with several hlds server on it
it also stopped an ongoing DOS attack (some split packet bullshit)

CONNLIMIT = "27015;5"
I guess you wouldn't have more than 5 players from the same address

PORTFLOOD = "27015;udp;5;10"
nobody should connect more than 5 connections in 10 seconds, otherwise they get blocked for 10 seconds
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 11-10-2017 , 05:59   Re: ports open/close CSF
Reply With Quote #5

aron9forever Thanks a lot.
one question should i remove this as game uses UDP i don't think all ports required for basic server
Quote:
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,99 3,99 5"
TCP_OUT = "20,21,22,25,53,80,110,113,443,587,993,99 5"

Last edited by indraraj striker; 11-10-2017 at 06:14.
indraraj striker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-10-2017 , 09:40   Re: ports open/close CSF
Reply With Quote #6

Many ports have specific purposes: 20/21 = FTP, 22 = SSH/SFTP, 80 = HTTP, 443 = HTTPS, etc.

If you don't need any of them you can remove them. Granted, if you are hosting your server at home, your primary router should have all of this stuff blocked and you would only route the ones you need.
__________________

Last edited by fysiks; 11-10-2017 at 09:41.
fysiks is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 11-10-2017 , 13:55   Re: ports open/close CSF
Reply With Quote #7

fysiks Thanks a lot.
indraraj striker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode