Author Topic: UBan -- Global ban system. Ban users from all servers connected to a single DB!  (Read 101446 times)

0 Members and 1 Guest are viewing this topic.

Offline AviZ

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
if its on a lan then you must use the lan ip address e.g 192.168.1.60 for the server to listen on, then user portwarding to the mysql port, the only way you can connect to it if its on your lan is use the lan ip, anyone else uses the external ip...

anyway this isnt a gban problem its a server problem.

Offline LUADuck

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
if its on a lan then you must use the lan ip address e.g 192.168.1.60 for the server to listen on, then user portwarding to the mysql port, the only way you can connect to it if its on your lan is use the lan ip, anyone else uses the external ip...

anyway this isnt a gban problem its a server problem.

Have you even read what I've been doing? I'm connecting via my LOCAL LAN!

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Why would you want a LAN server anyway? Go out and rent one

Offline LUADuck

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Why would you want a LAN server anyway? Go out and rent one

That's not what the scope of this is about  ::)

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
But still, Uban should only be used if you actually going to have a community of some kind with a lot of players, It's pointless if its only a LAN server that a few people will play.

Offline LUADuck

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
But still, Uban should only be used if you actually going to have a community of some kind with a lot of players, It's pointless if its only a LAN server that a few people will play.

:/

I'M RUNNING THE SQL SERVER ON MY NETWORK, AND IT WILL EVENTUALLY BE CONNECTED TO THROUGH THE NET, BUT I CAN'T EVEN CONNECT TO MY SQL SERVER FROM A SERVER THAT'S RUNNING IN MY LAN!!! AND YES, I HAVE A COMMUNITY!!!

Can you read that?
« Last Edit: June 19, 2008, 02:14:53 PM by LUADuck »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Did you try a MySQL client yet?
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
This was in reply to Megiddo asking if he'd try connecting with an SQL client.

LuaDuck, is that the output when you connected?
1hour, 15 mins remaining (1.5 kbps)

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

Offline LUADuck

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
It downloaded, and it got a connection.

So it must be UBans somewhere.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Quote
Can you read that?

No need to be rude.

Offline LUADuck

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Helpful.

Still no luck. I'll try some router-fu later.

Offline LUADuck

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Still not working  :'(

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]

root @ DuckyStudios has attributes : ALL PRIVILEGES


I have no direct SQL experience, but I do come from a broad background of various IT related projects.
I'll grasp for straws here for you.
Various applications and operating systems won't let you log in as 'root' remotely, only locally.
When you attempted to connect using a MySQL client, were you logging in from the same machine you're running Gmod/UBan on?
If so, were you using root to log in? (If yes, then my theory gets blown out the window)
If not, I suggest trying from the same machine running Gmod, and attempt root.
If that fails, try creating another username (uban_rox_when_I_can_get_it_working? :D ) with all privileges, and try again.

Also, with MySQL, does case sensitivity count? Would bantable and gbans for database and table name be same as BanTable and GBans?
Perhaps verify your database and table names match case too.

My straws for now.
« Last Edit: June 24, 2008, 03:05:56 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline LUADuck

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
I've set my Webserver's MySQL table to use it, and, with phpMyAdmin on the webserver changed privilages to allow root to be logged into anywhere.

I've got some good ideas in mah head, I'll report back.

Offline LUADuck

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
I managed to get it working! I'm running a SQL table on the Gameserver.

Slight problem though. When I try to ban an ID, I get
Code: [Select]
UBan failure. Error is: autorun/server/uban.lua:158: Column 'serverip' cannot be null
Global ban failed! See server console for error.

Ideas?