Raised This Month: $28 Target: $400
 7% 

Solved FastDL isnt working when I try to connect to my Server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Killua
Junior Member
Join Date: Jun 2024
Old 07-01-2024 , 22:26   FastDL isnt working when I try to connect to my Server
Reply With Quote #1

I dont know if this is the same for other people who connect to my server but i did have one guy quit while connecting so I would guess it doesnt work there too.

I have enabled developer 1 and the output is after canceling the slow download:
"
BUILD 9907 SERVER (0 CRC)
Server # 1
Serverinfo packet received.
Clearing memory
Remote host: [ZM] APSI Zombie Plague
Spooling demo header.
Using https://server/cstrike/ as primary download location
Verifying and downloading resources...
"
I have checked the fastDL server with curl:

"curl -k -o NUL "https://server/cstrike/models/player/alin/alin.mdl"" - link is my fastDL server
Output-shorted:

% Total % Received AverageDload SpeedUpload Current Speed
100 3631k 100 3631k 10.8M 0 10.9M


So its about 10 mbps which I would be happy with.

Meanwhile I get a download speed of 10kbps when I try to connect to my server.

My server.cfg file has:
"sv_allowdownload 1
sv_allowupload 1
sv_downloadurl "https://server/cstrike""

I do use a autoexec.cfg file so if you think there could be something causing this issue you can check it.

Client launch options:
"-high -noforcemaccel -noforcemparms -freq 144 -fullscreen -nofbo"

Server startup actions:
"./hlds_run -console -game cstrike -port 26069 -sport [hidden] +map zm_gold_dust +ip 0.0.0.0 -strictportbind +maxplayers 32 $( [ "$NOHLTV" == "0" ] || printf %s '-nohltv' ) $( [ "$NOVAC" == "0" ] || printf %s '-insecure' ) +sys_ticrate 10000 -norestart"


I am using a webhoster and they do create the fastDL server for me that i tested with curl. So i cant really change the startup actions since I cant connect into the server but if something you see here is a issue I could contact them to ask about it.


At last this is everything I can offer I did add the fastDL commands into amxx.cfg too since I saw some people suggesting it but it didnt fix it.
I have done a lot of research from allied mods to half-life github and everything that I could find in englisch but it still doenst seem to work.
I mean it might have to do with counter-strike or with my server I don't really know if someone has a way they used to fix a isssue like this I would appreciate it if you could share it.

And at last I do use Steam Version of cs 1.6 it didnt work on pre aniversary version either.
Attached Files
File Type: cfg autoexec.cfg (4.7 KB, 69 views)
__________________
Noob
ZM-Server(Online): 178.63.117.250:26069

https://apsizm.online/

Last edited by Killua; 07-02-2024 at 12:20. Reason: Solved
Killua is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-01-2024 , 22:42   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #2

IIRC, HTTPS is not supported, your fast download server must be HTTP only (you'll need to make sure your web server doesn't redirect to HTTPS).
__________________

Last edited by fysiks; 07-01-2024 at 23:03.
fysiks is offline
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 07-02-2024 , 06:34   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
IIRC, HTTPS is not supported, your fast download server must be HTTP only (you'll need to make sure your web server doesn't redirect to HTTPS).
That's weird. I use HTTPS.

PHP Code:
server {
    
listen 80;
    
server_name domain.se;
    return 
301 https://$server_name$request_uri;
}

server {
    
listen 443 ssl;
    
http2 on;
    
server_name domain.se;

    
root /var/www/fastdl;

    
add_header X-Frame-Options "SAMEORIGIN";
    
add_header X-Content-Type-Options "nosniff";

    
index index.php;

    
charset utf-8;

        
# SSL Configuration - Replace the example <domain> with your domain
    
ssl_certificate /etc/letsencrypt/live/domain.se/fullchain.pem;
    
ssl_certificate_key /etc/letsencrypt/live/domain.se/privkey.pem;
    
ssl_session_cache shared:SSL:10m;
    
ssl_protocols TLSv1.2 TLSv1.3;
    
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
    
ssl_prefer_server_ciphers on;

    
location / {
        
try_files $uri $uri/ /index.php?$query_string;
    }

    
location = /favicon.ico access_log offlog_not_found off; }
    
location = /robots.txt  access_log offlog_not_found off; }

    
error_page 404 /index.php;

    
location ~ \.php$ {
        
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include 
fastcgi_params;
        
fastcgi_hide_header X-Powered-By;
    }

    
location ~ /\.(?!well-known).* {
        
deny all;
    }

__________________

Last edited by Groven; 07-02-2024 at 06:34.
Groven is offline
Killua
Junior Member
Join Date: Jun 2024
Old 07-02-2024 , 11:26   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #4

Quote:
Originally Posted by Groven View Post
That's weird. I use HTTPS.

PHP Code:
server {
    
listen 80;
    
server_name domain.se;
    return 
301 https://$server_name$request_uri;
}

server {
    
listen 443 ssl;
    
http2 on;
    
server_name domain.se;

    
root /var/www/fastdl;

    
add_header X-Frame-Options "SAMEORIGIN";
    
add_header X-Content-Type-Options "nosniff";

    
index index.php;

    
charset utf-8;

        
# SSL Configuration - Replace the example <domain> with your domain
    
ssl_certificate /etc/letsencrypt/live/domain.se/fullchain.pem;
    
ssl_certificate_key /etc/letsencrypt/live/domain.se/privkey.pem;
    
ssl_session_cache shared:SSL:10m;
    
ssl_protocols TLSv1.2 TLSv1.3;
    
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
    
ssl_prefer_server_ciphers on;

    
location / {
        
try_files $uri $uri/ /index.php?$query_string;
    }

    
location = /favicon.ico access_log offlog_not_found off; }
    
location = /robots.txt  access_log offlog_not_found off; }

    
error_page 404 /index.php;

    
location ~ \.php$ {
        
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include 
fastcgi_params;
        
fastcgi_hide_header X-Powered-By;
    }

    
location ~ /\.(?!well-known).* {
        
deny all;
    }

Will hit you back after I test it. If it makes a difference for me.
__________________
Noob
ZM-Server(Online): 178.63.117.250:26069

https://apsizm.online/
Killua is offline
Killua
Junior Member
Join Date: Jun 2024
Old 07-02-2024 , 10:50   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
IIRC, HTTPS is not supported, your fast download server must be HTTP only (you'll need to make sure your web server doesn't redirect to HTTPS).
Ehm I have now checked with curl if the link does redirect to HTTPS and it does.

Input "curl -v -o alin.mdl http://link/cstrike/models/player/alin/alin.mdl
alin/alin.mdl"

relevant Output:
"* Request completely sent off
< HTTP/1.1 301 Moved Permanently
...
Location:https://link/cstrike/models/player/alin/alin.mdl
"
And than it proceeds to not download anything relevant.

So pretty much curl cant download the file without the -L -k flags. After adding the flags I do download the right file with the desired download speed. I think I will try to make a http server to host the files and test if it works ill than contact the webhoster about this.
__________________
Noob
ZM-Server(Online): 178.63.117.250:26069

https://apsizm.online/
Killua is offline
Killua
Junior Member
Join Date: Jun 2024
Old 07-02-2024 , 12:25   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #6

[Solved] Thank you guys for your Input so I made a free http webserver and now fastdl instant downloads the files I have uploaded and slow downloads the ones that are missing. Basically now i will contact my webhost and tell them about the findings and will go from there.
__________________
Noob
ZM-Server(Online): 178.63.117.250:26069

https://apsizm.online/
Killua is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 07-03-2024 , 08:47   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #7

Removing "return 301 https://$server_name$request_uri;" that alone will work, because GoldSrc does not understand as browser do forcing it to switch from HTTP to HTTPS.

But that isn't the best ideea , better will be to create a subdomain only on HTTP.
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Killua
Junior Member
Join Date: Jun 2024
Old 07-03-2024 , 18:23   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #8

Quote:
Originally Posted by CryWolf View Post
Removing "return 301 https://$server_name$request_uri;" that alone will work, because GoldSrc does not understand as browser do forcing it to switch from HTTP to HTTPS.

But that isn't the best ideea , better will be to create a subdomain only on HTTP.
I would happly just change how that server works but I dont have access so I am using an alternative until they find out how to fix it.
__________________
Noob
ZM-Server(Online): 178.63.117.250:26069

https://apsizm.online/
Killua is offline
Groven
AlliedModders Donor
Join Date: Apr 2011
Location: Sweden
Old 07-05-2024 , 11:42   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #9

Quote:
Originally Posted by CryWolf View Post
Removing "return 301 https://$server_name$request_uri;" that alone will work, because GoldSrc does not understand as browser do forcing it to switch from HTTP to HTTPS.

But that isn't the best ideea , better will be to create a subdomain only on HTTP.
Doesn't matter since it works for me. I use this NGINX.conf as a standard only thats why it's there.
__________________
Groven is offline
Killua
Junior Member
Join Date: Jun 2024
Old 07-05-2024 , 21:06   Re: FastDL isnt working when I try to connect to my Server
Reply With Quote #10

Quote:
Originally Posted by Groven View Post
Doesn't matter since it works for me. I use this NGINX.conf as a standard only thats why it's there.
I dont know dude for me personally in cs 1.6 not a single time did a https server work. Are you talking about cs 1.6 too ? Somewhere I saw that for other valve games there was https support but cs 1.6 wasnt there it was a Github thingy and I didnt look at it 100% anyways let you got the IP-Adrress I can check it out.
__________________
Noob
ZM-Server(Online): 178.63.117.250:26069

https://apsizm.online/
Killua is offline
Reply


Thread Tools
Display Modes

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 11:26.


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