Author Topic: Change ULX to ban by ip? ???  (Read 11118 times)

0 Members and 1 Guest are viewing this topic.

Offline xikkub

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Change ULX to ban by ip? ???
« on: April 17, 2009, 05:29:31 PM »
My users.txt file is messed up.

"flo349"   
{
   "deny"   
   {
   }
   "type"   "steamid"
   "groups"   
   {
      "user"
   }
   "id"   "90.25.185.220"
   "pass"   ""
   "allow"   
   {
   }
}

Why does it say "steamid" when it prints the ip address? So I want to do one of two things:

1.  Fix the user system so it will ACTUALLY ban by steamid, or
2.  Change the server to ban by IP adddress

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Change ULX to ban by ip? ???
« Reply #1 on: April 17, 2009, 08:35:25 PM »
Your user.txt file has nothing to do with bans. It only controls group access.

ULX has no command to ban by IP address. I can change my IP address within minutes. Most trouble makers know this.
SteamID works best because it is less likely to change.
I've just done a quick search on google, and on the Valve developer wiki, and am not even sure the newest Source engine allows banning by IP (I can't find the command, but, I only looked about 5 minutes)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline xikkub

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Change ULX to ban by ip? ???
« Reply #2 on: April 17, 2009, 09:50:17 PM »
Thanks for the information. In that case, how can I get my users.txt file to display SteamIDs instead of IPs, so that I can ban those steamids if I know a person is raging and then left the server?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Change ULX to ban by ip? ???
« Reply #3 on: April 17, 2009, 10:42:22 PM »
ULX, by default, doesn't use IP addresses for users.txt. It uses SteamIDs.
I have no idea why yours is.
Are you using any non-standard Gmod?
Any offline version?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline xikkub

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Change ULX to ban by ip? ???
« Reply #4 on: April 18, 2009, 01:32:49 AM »
I'm hosting a dedicated gmod server (hldsupdatetool) with the newest wiremod, advdupe, ulib, and ulx addons including a few ulib/ulx plugins. I really need it to use steamids!

Here's an example of my logs. It shows IP in the logs as well as in the users/bans sections.

[00:00:00]Player<23.52.104.15> spawned model models/props_phx/cannonball.mdl

Offline Nuclear_Ice

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
Re: Change ULX to ban by ip? ???
« Reply #5 on: April 18, 2009, 10:30:17 PM »
[00:00:00]?

That's impossible time man.

It looks to me like you're missing files or have corrupt ones.

Offline xikkub

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
ULX will ban by SteamID but will only log IP Address?
« Reply #6 on: April 19, 2009, 10:57:41 PM »
[Post was moved here (thanks)]
My users.txt file stores IPs.
My bans.txt stores IPs. It used to store steamids, but I don't know how I did that before.
My banned_users.cfg stores steamids.

How can I make it so that my logs will only use SteamIDS? It's nice to have IP addresses, but I can't sort out players when I need to associate an IP with a steamid (which is impossible).
« Last Edit: April 20, 2009, 05:50:21 PM by xikkub »

Offline xikkub

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Change ULX to ban by ip? ???
« Reply #7 on: April 19, 2009, 10:59:08 PM »
lol. Nuclear Ice. I thought my intention was quite obvious, but I changed the IP for anonymity and the time to make it generic. It wasn't a literal log entry, dude.  ::)
« Last Edit: April 19, 2009, 11:00:55 PM by xikkub »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX will ban by SteamID but will only log IP Address?
« Reply #8 on: April 20, 2009, 05:11:29 PM »
Something is wrong.
ULX was not written to use IP.
Only SteamID
I said this in http://forums.ulyssesmod.net/index.php?topic=3999.0;topicseen

I don't know why all your SteamIDs are IP instead.
I believe you have an addon or exploit that changes the Gmod Player:SteamID() command to IP instead.
Please stop posting multiple posts about the same problem.

Can anyone else confirm his issue?

I'm merging this topic with http://forums.ulyssesmod.net/index.php?topic=3999.0;topicseen
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline xikkub

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Change ULX to ban by ip? ???
« Reply #9 on: April 20, 2009, 05:48:37 PM »
Thanks for the information. My friend set up the server for me, so I'm not exactly sure what he did to make it log by IP address. I'll look further into the problem and check back here for any possible solutions.

Offline xikkub

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Change ULX to ban by ip? ???
« Reply #10 on: April 20, 2009, 09:33:47 PM »
OMG. My one gmod expert friend looked at my server and he found a malicious addon was installed that gave my other friend access to my server! I was able to remove it, and now everything works fine. Luckily he didn't get a chance to do anything. Maybe it's worth looking into an addon that can scan for malicious lua? Thanks for all of your help btw.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Change ULX to ban by ip? ???
« Reply #11 on: April 21, 2009, 02:45:20 PM »
The way you even explained that would make me worry just as much.
"my one gmod expert friend" "found a malicious addon"
"that gave my other friend access to my server"

With friends like the second, can't you trust the first not to have added more himself??
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming