Author Topic: L4D2 Server Guide (VPS/Dedicated Machine)  (Read 48888 times)

Sir

  • *
  • Posts: 915
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #30 on: September 16, 2013, 11:24:28 pm »
What do you do when you finish installing debian (commands etc)?

Then you happily follow this guide.. :D
Group Owner of :| SirPlease
Config Dev :| Zonemod 1.8

sethrow

  • ***
  • Posts: 183
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #31 on: September 17, 2013, 01:06:38 am »
No i mean if you do any other commands... if you reinstalled debian what do you install/update? like apt-get update.

Sir

  • *
  • Posts: 915
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #32 on: September 17, 2013, 02:20:24 am »
No i mean if you do any other commands... if you reinstalled debian what do you install/update? like apt-get update.

If you reinstall debian fresh you should already be fine, after following the notes I posted earlier any outdated files will be updated anyway.
Group Owner of :| SirPlease
Config Dev :| Zonemod 1.8

sethrow

  • ***
  • Posts: 183
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #33 on: September 17, 2013, 03:59:24 am »
I guess it was because I downloaded the full package. I installed with the network version and it downloaded everything :|

S-Server

  • *
  • Posts: 49
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #34 on: October 04, 2013, 01:42:07 pm »
Sorry to dissapoint, but OVH is known to null-route very quickly.
Their DDoS protection is a joke and it definitely doesn't work well as apparently you're still null-routed if you have a 100mbps "DDoS" inc on your 2gbps connection.
"The attack was causing other machines to suffer from lag" was their response.
This was back in 2011 and they offered the same kind of stuff.

 , check out the hack forums you will see OVH is protected 100% and a reseller is selling l4d2 servers 8 slots for 3£ a month

Quote
I've tried to take down some OVH Roubaix servers using some rooted linux servers. I think I might had over 20 gbps in total the server was hosting a website and other crap so I've took a look at the website at the start which was running perfectly fine and fast afterward I've hit it with my linux servers and I've cleared my cache and loaded the page again and It was as fast as it was before.. It pisses me off


http://www.hackforums.net/showthread.php?tid=3641627&page=17

these guys are the experts on hacking ;D and they cant do it =D

Sir

  • *
  • Posts: 915
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #35 on: October 04, 2013, 01:43:36 pm »
, check out the hack forums you will see OVH is protected 100% and a reseller is selling l4d2 servers 8 slots for 3£ a month

http://www.hackforums.net/showthread.php?tid=3641627&page=17

these guys are the experts on hacking ;D and they cant do it =D


I had a look at them recently and yeah, it's good to see they've stepped up their game majorly.
OVH was severely lacking back in the day, from what I heard they took a 190M Loan and did some work.
Too bad they're all sold out though. :)
Group Owner of :| SirPlease
Config Dev :| Zonemod 1.8

S-Server

  • *
  • Posts: 49
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #36 on: October 04, 2013, 01:45:50 pm »
I had a look at them recently and yeah, it's good to see they've stepped up their game majorly.
OVH was severely lacking back in the day, from what I heard they took a 190M Loan and did some work.
Too bad they're all sold out though. :)

yes true and there support is pretty bad , but this is a start to DDoS free hosting which is what we all want , and those little mad kiddies will have to find some spiders to dismember instead ;)

Sir

  • *
  • Posts: 915
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #37 on: October 04, 2013, 01:55:33 pm »
yes true and there support is pretty bad , but this is a start to DDoS free hosting which is what we all want , and those little mad kiddies will have to find some spiders to dismember instead ;)

Definitely agree, I'm protected by Staminus atm.
Getting pretty bored of seeing these silly attempts

Code: [Select]
72.20.56.150        Oct 4 10:52:22 PDT 2013        Oct 4 11:22:45 PDT 2013        4.59 Gbps        442,121 pps
72.20.56.150        Oct 4 09:05:22 PDT 2013        Oct 4 10:03:26 PDT 2013        7.61 Gbps        728,168 pps
72.20.56.150        Oct 4 00:36:24 PDT 2013        Oct 4 04:07:59 PDT 2013        23.89 Gbps        2,250,663 pps
72.20.56.150        Oct 3 15:27:23 PDT 2013        Oct 3 16:37:27 PDT 2013        1.77 Gbps        225,918 pps
72.20.56.150        Oct 3 11:52:21 PDT 2013        Oct 3 13:02:19 PDT 2013        7.24 Gbps        693,637 pps
72.20.56.150        Oct 3 08:26:23 PDT 2013        Oct 3 08:56:21 PDT 2013        814.15 Mbps        82,117 pps
72.20.56.150        Oct 3 07:14:16 PDT 2013        Oct 3 08:25:23 PDT 2013        15.02 Gbps        1,431,365 pps
72.20.56.150        Oct 3 05:57:51 PDT 2013        Oct 3 07:07:52 PDT 2013        11.61 Gbps        1,106,112 pps
72.20.56.150        Oct 3 03:42:25 PDT 2013        Oct 3 05:17:17 PDT 2013        15.57 Gbps        1,477,455 pps
72.20.56.150        Oct 2 10:25:11 PDT 2013        Oct 2 10:38:07 PDT 2013        529.63 Mbps        61,607 pps
72.20.56.150        Oct 2 05:25:07 PDT 2013        Oct 2 06:14:28 PDT 2013        14.23 Gbps        1,360,748 pps
72.20.56.150        Oct 1 11:11:20 PDT 2013        Oct 1 14:38:54 PDT 2013        18.62 Gbps        1,747,462 pps
72.20.56.150        Oct 1 08:56:23 PDT 2013        Oct 1 09:48:04 PDT 2013        6.79 Gbps        645,158 pps
72.20.56.150        Oct 1 06:49:01 PDT 2013        Oct 1 07:59:04 PDT 2013        5.74 Gbps        545,837 pps
72.20.56.150        Oct 1 04:14:32 PDT 2013        Oct 1 05:11:45 PDT 2013        9.90 Gbps        930,615 pps
72.20.56.150        Oct 1 02:11:51 PDT 2013        Oct 1 03:34:12 PDT 2013        22.99 Gbps        2,151,333 pps
72.20.56.150        Sep 30 12:25:37 PDT 2013        Sep 30 13:35:34 PDT 2013        3.10 Gbps        299,621 pps
72.20.56.150        Sep 30 11:09:36 PDT 2013        Sep 30 12:12:05 PDT 2013        2.37 Gbps        608,240 pps
72.20.56.150        Sep 30 09:21:27 PDT 2013        Sep 30 09:51:33 PDT 2013        1.08 Gbps        108,545 pps
72.20.56.150        Sep 30 08:00:06 PDT 2013        Sep 30 08:22:23 PDT 2013        3.20 Gbps        368,729 pps
72.20.56.150        Sep 30 01:28:35 PDT 2013        Sep 30 01:58:35 PDT 2013        21.04 Gbps        1,919,618 pps
72.20.56.150        Sep 29 23:51:21 PDT 2013        Sep 30 01:01:20 PDT 2013        22.68 Gbps        2,055,322 pps
72.20.56.150        Sep 29 16:05:28 PDT 2013        Sep 29 18:12:40 PDT 2013        16.84 Gbps        1,567,411 pps
« Last Edit: October 04, 2013, 01:58:06 pm by Sir »
Group Owner of :| SirPlease
Config Dev :| Zonemod 1.8

ZenDigital

  • ***
  • Posts: 143
  • I wanna fill yer hoohah with GOOF JUICE!!!!!!
    • View Profile
    • Team StickUpKidz MOTD
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #38 on: October 25, 2013, 08:20:40 pm »
I've discovered a few neat tricks in regards to the start/stop scripts you have on here.

First, and Epi gets credit for showing me this one...

Instead of saving the scripts as .sh files, just format them for unix and save them as the "All (*.*)" file type under the file type drop down menu.

And second,

In addition to your Start and Stop scripts, you can also create a Restart script by combining the contents of both the Start and Stop scripts. This is accomplished by Creating a file and inserting the Stop script contents above the Start script contents.

For Example:
Code: [Select]
#### Only kill existing ones, if you remove/added/renamed "screens" you'll have to edit this too.
screen -r server01 -X quit
screen -r server02 -X quit
screen -r server03 -X quit
screen -r server04 -X quit
screen -r server05 -X quit
screen -r server06 -X quit

#### Define your Server's External IP
SERVER_IP="xxx.xxx.xxx.xxx"

#### Define the path for your L4D2 Server Files
#### Change if needed!
SERVER_PATH="/home/l4d2/Steam/SteamApps/common/left 4 dead 2/srcds_run"

#### Add/Remove/Change lines if needed, I'm sure you get the basic idea now
#### I personally remove "-tickrate" when using a 30 Tick Server, leaving it in shouldn't cause any harm if you have the tickrate enabler installed.
#### Taskset is to assign a Server to a certain CPU Core, if you don't define it the server will pick the least busy core. (0 = Core 1, 1 = Core 2, etc)
screen -mdS server01 taskset -c 0 "$SERVER_PATH" -game left4dead2 -tickrate 60 -maxplayers 16 -ip $SERVER_IP +map c5m1_waterfront +exec run01.cfg
screen -mdS server02 taskset -c 1 "$SERVER_PATH" -game left4dead2 -tickrate 60 -maxplayers 16 -ip $SERVER_IP +map c5m1_waterfront +exec run02.cfg
screen -mdS server03 taskset -c 2 "$SERVER_PATH" -game left4dead2 -tickrate 100 -maxplayers 16 -ip $SERVER_IP +map c5m1_waterfront +exec run03.cfg
screen -mdS server04 taskset -c 3 "$SERVER_PATH" -game left4dead2 -tickrate 60 -maxplayers 16 -ip $SERVER_IP +map c5m1_waterfront +exec run04.cfg
screen -mdS server05 taskset -c 4 "$SERVER_PATH" -game left4dead2 -tickrate 60 -maxplayers 16 -ip $SERVER_IP +map c5m1_waterfront +exec run05.cfg
screen -mdS server06 taskset -c 5 "$SERVER_PATH" -game left4dead2 -tickrate 60 -maxplayers 16 -ip $SERVER_IP +map c5m1_waterfront +exec run06.cfg

you can name the file "restart" or just "rs" like I do. so when I want to do a quick restart I just login to putty and enter "./rs".

For those of you who run multiple sockets, I.E. multiple game servers on the same VDS, I highly suggest creating Start, Stop, and Restart scripts for each individual server, this will avoid interrupting any servers in use should you only want to start, stop, or restart one of them.

For example, I have 2 L4d2 servers running on a dual core VDS, so my scripts (in command form) are listed as so:

  • ./s - starts both servers
  • ./q - stops both servers
  • ./rs - restarts both servers
  • ./s1 - starts server 1
  • ./q1 - stops server 1
  • ./rs1 - restarts server 1
  • ./s2 - starts server 2
  • ./q2 - stops server 2
  • ./rs2 - restarts server 2

Granted this might seem a bit overboard but it makes things a lot easier and quicker especially if you happen to be in the middle of a game and someone requests a restart for a server.
"You're completely retarded and more toxic than chemical waste. Get lost." ~Visor 2016

fig newtons

  • *
  • Posts: 1882
    • View Profile
    • configs
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #39 on: October 26, 2013, 06:00:19 pm »
The extension shouldn't matter with any of this. It's a good idea to get in the habit of including a shebang in every script though:

Code: [Select]
#!/bin/bash

winged_box

  • *
  • Posts: 12
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #40 on: November 30, 2013, 02:20:13 pm »
I managed to set-up my VPS with a L4D2 dedicated server and it was running fine.

However, it always start in coop mode even though I already set sv_gametype "versus" in my server.cfg

Any idea why is it so?

Sir

  • *
  • Posts: 915
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #41 on: November 30, 2013, 03:08:59 pm »
I managed to set-up my VPS with a L4D2 dedicated server and it was running fine.

However, it always start in coop mode even though I already set sv_gametype "versus" in my server.cfg

Any idea why is it so?

sv_gametypes is used to prevent random lobbies from creating gametypes you don't allow on your server.
It can be overwritten at any time by forcing the server as a lobby leader or by a simple server start-up, if you want your server to start in versus you should install Sourcemod and add "sm_cvar mp_gamemode versus" to your server.cfg
Group Owner of :| SirPlease
Config Dev :| Zonemod 1.8

winged_box

  • *
  • Posts: 12
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #42 on: December 01, 2013, 08:18:54 am »
sv_gametypes is used to prevent random lobbies from creating gametypes you don't allow on your server.
It can be overwritten at any time by forcing the server as a lobby leader or by a simple server start-up, if you want your server to start in versus you should install Sourcemod and add "sm_cvar mp_gamemode versus" to your server.cfg

Already did that in my server.cfg

Anyway, it's solved now.

I add a command "+map c8m1_apartment versus' when launching and now it always start in versus mode.

sethrow

  • ***
  • Posts: 183
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #43 on: January 16, 2014, 06:51:18 am »
@sir
I have a problem with your iptabes. Can't connect and doesn't show the server on lan.

Sir

  • *
  • Posts: 915
    • View Profile
Re: L4D2 Server Guide (VPS/Dedicated Machine)
« Reply #44 on: January 16, 2014, 07:02:30 am »
@sir
I have a problem with your iptabes. Can't connect and doesn't show the server on lan.

Did you actually adjust the file or did you just throw it in and execute it?
It has loads of comments in it to help people understand what every line does, just follow those and you should be good to go. :)
Group Owner of :| SirPlease
Config Dev :| Zonemod 1.8

 

A dedicated community website to competitive L4D and L4D2, ran by the community, for the community. L4DNation supports all continents of play and focuses on bringing together the community as a whole to a central hub of information.