[b]Solved[/b]
I want to set up FastDL, but can't get it working.
server.cfg:
[code]sv_downloadurl "http://88.150.159.22/garrysmod/"
sv_allowupload "0"
sv_allowdownload "0"[/code]
Path to example model on server:
/home/gaming/gmod/garrysmod/models/weapons/w_sonicsd.vvd
Path to (same) example model on web:
/var/www/garrysmod/models/weapons/w_sonicsd.vvd.bz2
/home/gaming/gmod/garrysmod/lua/autorun/resources.lua: (also tried in autorun/server)
[url]http://pastebin.com/jb6Jgd1j[/url]
Neither client or server mention a single thing about downloading anything.
Client doesn't make any attempt at all to download a single thing.
I can access the files on my web host, see here:
[url]http://i.snag.gy/I4pgW.jpg[/url]
Any ideas what could be wrong?
Thanks
[highlight](User was banned for this post ("Help & Support" - Orkel))[/highlight]
Actually post your FastDL link; there's no need to censor it since player's can retrieve it when they're joining the server. Also, move your resources.lua to lua/autorun, not lua/autorun/server.
honestly fastdl is bad in my opinion, but yeah. What codegs said.
Moving it to lua/autorun made no difference.
FastDL link is [url]http://88.150.159.22/garrysmod/[/url] - also edited first post
FastDL is definitely still a thing. Workshop downloads suck IMO.
[QUOTE=sants1;44906775]honestly fastdl is bad in my opinion, but yeah. What codegs said.[/QUOTE]
[IMG]http://puu.sh/8Oi5M[/IMG]
Do you have
[code]exec server.cfg[/code]
in your autoexec.cfg?
[QUOTE=code_gs;44908022]Do you have
[code]exec server.cfg[/code]
in your autoexec.cfg?[/QUOTE]
I don't believe I do. However it is called because the server name and password, etc, is set.
Try putting it in there anyways.
[QUOTE=code_gs;44908382]Try putting it in there anyways.[/QUOTE]
Made no difference.
Join your server.
In console type: sv_downloadurl to check it's set properly.
For example:
[IMG]http://share.bybservers.co.uk/2014-05-25_23-27-13.png[/IMG]
Go to options to check your client is configured to download files:
[IMG]http://share.bybservers.co.uk/2014-05-25_23-27-34.png[/IMG]
Not sure why it told you to set sv_allowdownload/upload to 0. Don't these only effect ServerDL and not FastDL? Either way I have sv_allowdownload set to 1.
[IMG]http://share.bybservers.co.uk/2014-05-25_23-27-56.png[/IMG]
If all else fails post your server IP (or the bluewaffle password) and we can join to test it for you.
[QUOTE=Pantho;44908608]
Not sure why it told you to set sv_allowdownload/upload to 0. Don't these only effect ServerDL and not FastDL? Either way I have sv_allowdownload set to 1.
[/QUOTE]
sv_allowdownload 0 disables ServerDL completely, it's definitely not required as sv_downloadurl overrides it.
sv_allowupload 0 is a security measurement as an exploit is known to be bound to that and not yet confirmed its been resolved.
[QUOTE=Pantho;44908608]Join your server.
In console type: sv_downloadurl to check it's set properly.
For example:
Go to options to check your client is configured to download files:
Not sure why it told you to set sv_allowdownload/upload to 0. Don't these only effect ServerDL and not FastDL? Either way I have sv_allowdownload set to 1.
If all else fails post your server IP (or the bluewaffle password) and we can join to test it for you.[/QUOTE]
sv_downloadurl is set, options is set also.
Servers down.
[quote]
Connecting to 88.150.159.22...
Retrying 88.150.159.22...
[/quote]
[QUOTE=Pantho;44912039]Servers down.[/QUOTE]
Sorry, forgot to put it in a screen session before I went. Should be up now.
Works fine.
[T]http://share.bybservers.co.uk/Garry's_Mod_2014-05-26_11-07-25.png[/T]
[T]http://share.bybservers.co.uk/2014-05-26_11-08-26.png[/T]
[QUOTE=Pantho;44912322]Works fine.
[T]http://share.bybservers.co.uk/Garry%27s_Mod_2014-05-26_11-07-25.png[/T]
[T]http://share.bybservers.co.uk/2014-05-26_11-08-26.png/[T][/QUOTE]
Are you able to spawn (and see) the things you are downloading?
Under Entities
[QUOTE=Torran;44912327]Are you able to spawn (and see) the things you are downloading?
Under Entities[/QUOTE]
Yep, I fixed my second screenshot which shows the files downlaoded. You can see the files & creation dates there.
Gotta go so not got time to try spawning them, but this is fairly decent proof. Nice download speeds on that FastDL as well btw.
[QUOTE=Pantho;44912341]Yep, I fixed my second screenshot which shows the files downlaoded. You can see the files & creation dates there.
Gotta go so not got time to try spawning them, but this is fairly decent proof. Nice download speeds on that FastDL as well btw.[/QUOTE]
Alright, thanks for help. I'll have to look into why my game is not downloading anything.
EDIT: It must have corrupted or something the first time, I deleted everything in /download on client and it redownloaded when I joined and all is fine now, thanks for help once again.
[QUOTE=Svenskunganka;44908651]sv_allowdownload 0 disables ServerDL completely, it's definitely not required as sv_downloadurl overrides it.
sv_allowupload 0 is a security measurement as an exploit is known to be bound to that and not yet confirmed its been resolved.[/QUOTE]
Just to elaborate on this for further reading -
sv_allowdownload 0 does indeed disable ServerDL in its entirety and [I]is still worth doing[/I]. The most recent exploits that allowed for users to read server.cfg files was done via downloading that file itself, however those with sv_allowdownload set to 0 weren't affected by this.
sv_allowupload 0 fixes so many issues it's stupid really. Never have it set to 1. The only downside is that you can't use sprays, but sprays vs arbitrary uploads is a no-brainer really.
[QUOTE=Teddi Orange;44912613]Just to elaborate on this for further reading -
sv_allowdownload 0 does indeed disable ServerDL in its entirety and [I]is still worth doing[/I]. The most recent exploits that allowed for users to read server.cfg files was done via downloading that file itself, however those with sv_allowdownload set to 0 weren't affected by this.
sv_allowupload 0 fixes so many issues it's stupid really. Never have it set to 1. The only downside is that you can't use sprays, but sprays vs arbitrary uploads is a no-brainer really.[/QUOTE]
Eh, you shouldn't put such silly things in server.cfg anyway.
with sv_allowupload, I've only ever seen some idiots making a blank folder and that's about it. Can they actually do anything serious with this anymore?
[QUOTE=Pantho;44912941]Eh, you shouldn't put such silly things in server.cfg anyway.
with sv_allowupload, I've only ever seen some idiots making a blank folder and that's about it. Can they actually do anything serious with this anymore?[/QUOTE]
Yes, I can't seem to find the thread now but an entire server got infected with trojans 'cause of it, if I recall correctly. Either way it was severe.
[QUOTE=Svenskunganka;44913365]Yes, I can't seem to find the thread now but an entire server got infected with trojans 'cause of it, if I recall correctly. Either way it was severe.[/QUOTE]
I really can't see how, unless someone used it to run code from some silly addon running code from the data directory.
[QUOTE=Pantho;44913971]I really can't see how, unless someone used it to run code from some silly addon running code from the data directory.[/QUOTE]
Right this very second I can execute binary modules on any server with sv_allowupload 1.
Fixed next update for GMOD. Already fixed recently for other Source games.
[QUOTE=Willox;44914036]Right this very second I can execute binary modules on any server with sv_allowupload 1.
Fixed next update for GMOD. Already fixed recently for other Source games.[/QUOTE]
I'd love to understand how this is accomplished, I understand if you don't want to tell me as it could be abused badly.
Just I can't think of a way to accomplish that. To upload & execute the binary I mean.
Although if it's fixed on other source games it's partially public, so shouldn't hurt telling me right?
[QUOTE=Pantho;44914044]I'd love to understand how this is accomplished, I understand if you don't want to tell me as it could be abused badly.
Just I can't think of a way to accomplish that. To upload & execute the binary I mean.[/QUOTE]
I don't know how much is too much to post publicly. It's pretty simple when you get one part of it done.
[QUOTE=Pantho;44914044]Although if it's fixed on other source games it's partially public, so shouldn't hurt telling me right?[/QUOTE]
Partially public to Valve :v:. I'd be happy to tell you once it is fixed.
[QUOTE=Willox;44914036]Right this very second I can execute binary modules on any server with sv_allowupload 1.
Fixed next update for GMOD. Already fixed recently for other Source games.[/QUOTE]
So THATS why there were large packets from you Willox :v: Was wondering the fuck was going on.
[QUOTE=Phoenixf129;44914163]So THATS why there were large packets from you Willox :v: Was wondering the fuck was going on.[/QUOTE]
:x
what server? i didn't do anything naughty
[QUOTE=Willox;44914059]I don't know how much is too much to post publicly. It's pretty simple when you get one part of it done.
Partially public to Valve :v:. I'd be happy to tell you once it is fixed.[/QUOTE]
Assuming the usual case of setting cfg to read only / permissions so it cannot be written to by the srcds process fixes these? I thought sv_allowupload could only write to specific directories, unless your exploit is a way to reset the rcon password and then upload the binary this way?
[QUOTE=Pantho;44914212]Assuming the usual case of setting cfg to read only / permissions so it cannot be written to by the srcds process fixes these? I thought sv_allowupload could only write to specific directories, unless your exploit is a way to reset the rcon password and then upload the binary this way?[/QUOTE]
All files uploaded go inside the download directory.
Sorry, you need to Log In to post a reply to this thread.