ULX

Author Topic: ULX logs no longer show IP address of those joining  (Read 10750 times)

0 Members and 1 Guest are viewing this topic.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
ULX logs no longer show IP address of those joining
« on: January 23, 2014, 05:41:08 PM »
Hi I may have a conflicting addon but it used to be my logs showed this: XXXXXXX spawned in server (72.241.XXX.176:27005)<STEAM_0:0:2xxxx756. Now the IP no longer shows. Can you tell me how I can force this back on? Is there something I can put in the server.cfg?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX logs no longer show IP address of those joining
« Reply #1 on: January 23, 2014, 07:37:23 PM »
Storm, we were notified a few months ago that, due to a Valve security issue that allows files to be read by a client, it was a 'feature' that was easily being abused.
Some exploiters were using IP addresses to DDoS and other nasty functions of players on servers.
We removed the functionality.
I'd hoped we were going to add a boolean to allow the end user to decide how secure they wanted their logs, but, as a stopgap, I guess we decided total removal was best for now.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULX logs no longer show IP address of those joining
« Reply #2 on: January 23, 2014, 10:21:45 PM »
Was the removal to stop people from seeing a player's IP address post connection? Because you can still freely get IP address of connected players with 'status' in console.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: ULX logs no longer show IP address of those joining
« Reply #3 on: January 24, 2014, 01:42:37 AM »
Yes it was to get the IP of trolls after they ran from the server. Many players simply switch Steam ID's after they are banned and return to the server to do as much damage as possible.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX logs no longer show IP address of those joining
« Reply #4 on: January 24, 2014, 09:39:04 AM »
MrP. Yes.
The exploiter could hop on the server while no one was on, grab all the ulx log files, then leave and peruse the logs over past <x> hours and every IP would be there.

Storm, I can change my IP quicker than I can my SteamID. 1 minute for a router reboot, and it is often in a totally different range (ie, if banning me, you couldn't use a x.x.x.* ban)
(Then again, I don't have more than one Steam account)
If I did, changing my IP would only be about one minute longer, depending on Steam sign-in time.

I understand feature vs safety. Speaking for Megiddo/SticklyMan's latest code session, I believe they just decided it was safer to not have it, considering how easily volatile an IP address is.


"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULX logs no longer show IP address of those joining
« Reply #5 on: January 24, 2014, 09:47:10 AM »
Correct me if I'm wrong, but the default "log on" in server.cfg should log Steam ID and IP address (<Server dir>/logs/), unless that's a feature that ULX added.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX logs no longer show IP address of those joining
« Reply #6 on: January 24, 2014, 10:30:05 AM »
See your point. I'm not aware of it it does.
As I believe you're trying to question why we even did it 'since <x> does it anyway>' I'm going to turn it around.
1) That now places even more of a security enhancement back on Valve (a) FIX the exploit where users can grab files using whatever command it is, b) Is IP needed? ))
2) Places less need of ULX having IP in our logs.

We can only control ULX and ULib. We did it to try to make exploiting user's servers that much more difficult.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: ULX logs no longer show IP address of those joining
« Reply #7 on: January 24, 2014, 10:44:40 AM »
Yes it is available in regular logs but those arent available to me until server restarts. I have to either kick players off and restart it or wait for hours.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULX logs no longer show IP address of those joining
« Reply #8 on: January 24, 2014, 10:55:14 AM »
See your point. I'm not aware of it it does.
As I believe you're trying to question why we even did it 'since <x> does it anyway>' I'm going to turn it around.
1) That now places even more of a security enhancement back on Valve (a) FIX the exploit where users can grab files using whatever command it is, b) Is IP needed? ))
2) Places less need of ULX having IP in our logs.

We can only control ULX and ULib. We did it to try to make exploiting user's servers that much more difficult.
I wasn't actually trying to make that point, I was just trying to give Storm an alternative.

Yes it is available in regular logs but those arent available to me until server restarts. I have to either kick players off and restart it or wait for hours.
Look up the ConVar "sv_logflush". It will write to logs in realtime, but it may affect the server performance so be careful with that.
May I ask what gamemode you're running?
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX logs no longer show IP address of those joining
« Reply #9 on: January 24, 2014, 12:37:05 PM »
To be honest, any one with minimal lua knowledge could look at the diff of our code on github and see the line that changed, and simply make thier own addon that would add it back and create thier own 'join_log.txt' file. Those without lua knowledge would make it a great time to learn, g-lua, (it does use a Gmod hook not in lua by default)
You then run the risk of the above already mentioned issues though.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: ULX logs no longer show IP address of those joining
« Reply #10 on: January 24, 2014, 12:44:29 PM »
My servers are TTT, Prop Hunt, Murder, and Stop It Slender.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX logs no longer show IP address of those joining
« Reply #11 on: January 24, 2014, 03:41:31 PM »
We're actually planning on moving everything in ULX to be only Steam-ID based, but this made a good first step. What JamminR says is right, it's much better to ban by Steam ID than IP address, and we are definitely still logging the Steam ID.

As far as the Source logs, I'm not sure on the details of the file grab exploit, but I'd guess that it can't reach what's in the logs folder or Valve would have taken stronger action against the exploit.
Experiencing God's grace one day at a time.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given