1. Вы находитесь в сообществе Rubukkit. Мы - администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на различные языки плагины наших коллег из других стран.
    Скрыть объявление
Скрыть объявление
В преддверии глобального обновления, мы проводим исследования, которые помогут нам сделать опыт пользования форумом ещё удобнее. Помогите нам, примите участие!

Помогите AuthMeReloaded всегда показывает last_ip 127.0.0.1

Тема в разделе "Помощь", создана пользователем Mes, 16 июл 2020.

Метки:
Статус темы:
Закрыта.
  1. Автор темы
    Mes

    Mes Активный участник Пользователь

    Баллы:
    61
    Стоит плагин AuthMe-5.6.0-SNAPSHOT подключенный к mysql и когда заходит любой игрок его ip в БД в столбце last_ip сохраняется как 127.0.0.1 ! С чем это может быть связанно ?

    Если это важно то AutchMe подключен к сайту на WordPress через mysql.
    Plugins (3): AuthMe, LuckPerms, WorldEdit

    Конфиг AutchMe
    Код:
    DataSource:
        # What type of database do you want to use?
        # Valid values: SQLITE, MYSQL, POSTGRESQL
        backend: MYSQL
        # Enable the database caching system, should be disabled on bungeecord environments
        # or when a website integration is being used.
        caching: true
        # Database host address
        mySQLHost: IP БД
        mySQLPort: 'ПОРТ БД'
        # Connect to MySQL database over SSL
        mySQLUseSSL: true
        # Verification of server's certificate.
        # We would not recommend to set this option to false.
        # Set this option to false at your own risk if and only if you know what you're doing
        mySQLCheckServerCertificate: true
        # Username to connect to the MySQL database
        mySQLUsername: ЮЗЕР БД
        # Password to connect to the MySQL database
        mySQLPassword: 'ПАРОЛЬ БД'
        # Database Name, use with converters or as SQLITE database name
        mySQLDatabase: ТАБЛИЦА БД
        # Table of the database
        mySQLTablename: wp_users
        # Column of IDs to sort data
        mySQLColumnId: id
        # Column for storing or checking players nickname
        mySQLColumnName: user_login
        # Column for storing or checking players RealName
        mySQLRealName: realname
        # Column for storing players passwords
        mySQLColumnPassword: user_pass
        # Column for storing players passwords salts
        mySQLColumnSalt: ''
        # Column for storing players emails
        mySQLColumnEmail: user_email
        # Column for storing if a player is logged in or not
        mySQLColumnLogged: isLogged
        # Column for storing if a player has a valid session or not
        mySQLColumnHasSession: hasSession
        # Column for storing a player's TOTP key (for two-factor authentication)
        mySQLtotpKey: totp
        # Column for storing the player's last IP
        mySQLColumnIp: last_ip
        # Column for storing players lastlogins
        mySQLColumnLastLogin: last_login
        # Column storing the registration date
        mySQLColumnRegisterDate: regdate
        # Column for storing the IP address at the time of registration
        mySQLColumnRegisterIp: regip
        # Column for storing player LastLocation - X
        mySQLlastlocX: x
        # Column for storing player LastLocation - Y
        mySQLlastlocY: y
        # Column for storing player LastLocation - Z
        mySQLlastlocZ: z
        # Column for storing player LastLocation - World Name
        mySQLlastlocWorld: world
        # Column for storing player LastLocation - Yaw
        mySQLlastlocYaw: yaw
        # Column for storing player LastLocation - Pitch
        mySQLlastlocPitch: pitch
        # Column for storing players uuids (optional)
        mySQLPlayerUUID: ''
        # Overrides the size of the DB Connection Pool, default = 10
        poolSize: 10
        # The maximum lifetime of a connection in the pool, default = 1800 seconds
        # You should set this at least 30 seconds less than mysql server wait_timeout
        maxLifetime: 1800
    ExternalBoardOptions:
        # Column for storing players groups
        mySQLColumnGroup: ''
        # -1 means disabled. If you want that only activated players
        # can log into your server, you can set here the group number
        # of unactivated users, needed for some forum/CMS support
        nonActivedUserGroup: -1
        # Other MySQL columns where we need to put the username (case-sensitive)
        mySQLOtherUsernameColumns: []
        # How much log2 rounds needed in BCrypt (do not change if you do not know what it does)
        bCryptLog2Round: 10
        # phpBB table prefix defined during the phpBB installation process
        phpbbTablePrefix: phpbb_
        # phpBB activated group ID; 2 is the default registered group defined by phpBB
        phpbbActivatedGroupId: 2
        # IP Board table prefix defined during the IP Board installation process
        IPBTablePrefix: ipb_
        # IP Board default group ID; 3 is the default registered group defined by IP Board
        IPBActivatedGroupId: 3
        # Xenforo table prefix defined during the Xenforo installation process
        XFTablePrefix: xf_
        # XenForo default group ID; 2 is the default registered group defined by Xenforo
        XFActivatedGroupId: 2
        # Wordpress prefix defined during WordPress installation
        wordpressTablePrefix: wp_
    settings:
        sessions:
            # Do you want to enable the session feature?
            # If enabled, when a player authenticates successfully,
            # his IP and his nickname is saved.
            # The next time the player joins the server, if his IP
            # is the same as last time and the timeout hasn't
            # expired, he will not need to authenticate.
            enabled: true
            # After how many minutes should a session expire?
            # A player's session ends after the timeout or if his IP has changed
            timeout: 10
        # Message language, available languages:
        # https://github.com/AuthMe/AuthMeReloaded/blob/master/docs/translations.md
        messagesLanguage: ru
        # Forces authme to hook into Vault instead of a specific permission handler system.
        forceVaultHook: false
        # Log level: INFO, FINE, DEBUG. Use INFO for general messages,
        # FINE for some additional detailed ones (like password failed),
        # and DEBUG for debugging
        logLevel: DEBUG
        # By default we schedule async tasks when talking to the database. If you want
        # typical communication with the database to happen synchronously, set this to false
        useAsyncTasks: true
        # The name of the server, used in some placeholders.
        serverName: BW LOBBY
        restrictions:
            # Can not authenticated players chat?
            # Keep in mind that this feature also blocks all commands not
            # listed in the list below.
            allowChat: false
            # Hide the chat log from players who are not authenticated?
            hideChat: false
            # Allowed commands for unauthenticated players
            allowCommands:
            - /login
            - /register
            - /l
            - /reg
            - /email
            - /captcha
            - /2fa
            - /totp
            # Max number of allowed registrations per IP
            # The value 0 means an unlimited number of registrations!
            maxRegPerIp: 1
            # Minimum allowed username length
            minNicknameLength: 3
            # Maximum allowed username length
            maxNicknameLength: 16
            # When this setting is enabled, online players can't be kicked out
            # due to "Logged in from another Location"
            # This setting will prevent potential security exploits.
            ForceSingleSession: true
            ForceSpawnLocOnJoin:
                # If enabled, every player that spawn in one of the world listed in
                # "ForceSpawnLocOnJoin.worlds" will be teleported to the spawnpoint after successful
                # authentication. The quit location of the player will be overwritten.
                # This is different from "teleportUnAuthedToSpawn" that teleport player
                # to the spawnpoint on join.
                enabled: false
                # WorldNames where we need to force the spawn location
                # Case-sensitive!
                worlds:
                - world
                - world_nether
                - world_the_end
    ...
        security:
            # Minimum length of password
            minPasswordLength: 5
            # Maximum length of password
            passwordMaxLength: 30
            # Possible values: SHA256, BCRYPT, BCRYPT2Y, PBKDF2, SALTEDSHA512,
            # MYBB, IPB3, PHPBB, PHPFUSION, SMF, XENFORO, XAUTH, JOOMLA, WBB3, WBB4, MD5VB,
            # PBKDF2DJANGO, WORDPRESS, ROYALAUTH, ARGON2, CUSTOM (for developers only). See full list at
            # https://github.com/AuthMe/AuthMeReloaded/blob/master/docs/hash_algorithms.md
            # If you use ARGON2, check that you have the argon2 c library on your system
            passwordHash: WORDPRESS
            # If a password check fails, AuthMe will also try to check with the following hash methods.
            # Use this setting when you change from one hash method to another.
            # AuthMe will update the password to the new hash. Example:
            # legacyHashes:
            # - 'SHA1'
            legacyHashes: []
            # Salt length for the SALTED2MD5 MD5(MD5(password)+salt)
            doubleMD5SaltLength: 8
            # Number of rounds to use if passwordHash is set to PBKDF2. Default is 10000
            pbkdf2Rounds: 10000
            # Prevent unsafe passwords from being used; put them in lowercase!
            # You should always set 'help' as unsafePassword due to possible conflicts.
            # unsafePasswords:
            # - '123456'
            # - 'password'
            # - 'help'
            unsafePasswords:
            - '123456'
            - password
            - qwerty
            - '12345'
            - '54321'
            - '123456789'
            - help
        registration:
            # Enable registration on the server?
            enabled: false
    ...
    Hooks:
        # Do we need to hook with multiverse for spawn checking?
        multiverse: true
        # Do we need to hook with BungeeCord?
        bungeecord: true
        # Send player to this BungeeCord server after register/login
        sendPlayerTo: ''
        # Do we need to disable Essentials SocialSpy on join?
        disableSocialSpy: false
        # Do we need to force /motd Essentials command on join?
        useEssentialsMotd: false
    ...
    
     
  2. imDaniX

    imDaniX Активный участник Пользователь

    Баллы:
    96
    Имя в Minecraft:
    imDaniX
    BungeeCord не используешь?
     
  3. Автор темы
    Mes

    Mes Активный участник Пользователь

    Баллы:
    61
    Стоит поставил в bunge ip_forward: true

    UPD: Попробовал запустить сервер без Bungeecord и зайти на прямую результат тот же
     
  4. Saharo4ek

    Saharo4ek Активный участник Пользователь

    Баллы:
    96
    Имя в Minecraft:
    tin
    Стоит в spigot.yml каждого сервера в банже поставить bungeecord: true

    Хоть бы конфиги чекали...
     
  5. Автор темы
    Mes

    Mes Активный участник Пользователь

    Баллы:
    61

    Код:
    listeners:
    - query_port: 25565
      motd: '&a&lBungeeCord'
      tab_list: GLOBAL_PING
      query_enabled: false
      proxy_protocol: false
      forced_hosts:
        pvp.md-5.net: pvp
      ping_passthrough: false
      priorities:
      - lobby-1
      - lobby-2
      - lobby-3
      bind_local_address: true
      host: 0.0.0.0:25565
      max_players: 1
      tab_size: 60
      force_default_server: false
    remote_ping_cache: -1
    network_compression_threshold: 256
    permissions:
      default:
      - bungeecord.command.server
      - bungeecord.command.list
      admin:
      - bungeecord.command.alert
      - bungeecord.command.end
      - bungeecord.command.ip
      - bungeecord.command.reload
    log_pings: true
    connection_throttle_limit: 3
    server_connect_timeout: 5000
    timeout: 30000
    stats: ef2bb2e6-adf1-45a0-b735-92755e0921fe
    player_limit: -1
    ip_forward: true
    groups:
      md_5:
      - admin
    remote_ping_timeout: 5000
    connection_throttle: 4000
    log_commands: false
    prevent_proxy_connections: false
    online_mode: false
    forge_support: false
    disabled_commands:
    - disabledcommandhere
    servers:
      lobby-[1-3]:
        motd: '&1Just another BungeeCord - Forced Host'
        address: localhost:32200
        restricted: false
      sandbox:
        motd: '&1Just another BungeeCord - Forced Host'
        address: localhost:32201
        restricted: false 

    Код:
    config-version: 12
    settings:
      debug: false
      save-user-cache-on-stop-only: false
      moved-wrongly-threshold: 0.0625
      log-villager-deaths: true
      moved-too-quickly-multiplier: 10.0
      bungeecord: true
      user-cache-size: 1000
      timeout-time: 60
      restart-on-crash: true
      restart-script: ./start.sh
      sample-count: 12
      player-shuffle: 0
      netty-threads: 4
      attribute:
        maxHealth:
          max: 2048.0
        movementSpeed:
          max: 2048.0
        attackDamage:
          max: 2048.0
    messages:
      whitelist: You are not whitelisted on this server!
      unknown-command: Unknown command. Type "/help" for help.
      server-full: The server is full!
      outdated-client: Outdated client! Please use {0}
      outdated-server: Outdated server! I'm still on {0}
      restart: Server is restarting
    commands:
      silent-commandblock-console: false
      replace-commands:
      - setblock
      - summon
      - testforblock
      - tellraw
      log: true
      tab-complete: 0
      send-namespaced: true
      spam-exclusions:
      - /skill
    advancements:
      disable-saving: true
      disabled:
      - minecraft:story/disabled
    stats:
      disable-saving: false
      forced-stats: {}
    world-settings:
      default:
        verbose: true
        wither-spawn-sound-radius: 0
        dragon-death-sound-radius: 0
        seed-village: 10387312
        seed-desert: 14357617
        seed-igloo: 14357618
        seed-jungle: 14357619
        seed-swamp: 14357620
        seed-monument: 10387313
        seed-shipwreck: 165745295
        seed-ocean: 14357621
        seed-outpost: 165745296
        seed-endcity: 10387313
        seed-slime: 987234911
        seed-bastion: 30084232
        seed-fortress: 30084232
        seed-mansion: 10387319
        seed-fossil: 14357921
        seed-portal: 34222645
        mob-spawn-range: 8
        enable-zombie-pigmen-portal-spawns: true
        item-despawn-rate: 6000
        view-distance: default
        arrow-despawn-rate: 1200
        trident-despawn-rate: 1200
        end-portal-sound-radius: 0
        hanging-tick-frequency: 100
        zombie-aggressive-towards-villager: true
        nerf-spawner-mobs: false
        max-tnt-per-tick: 100
        hopper-amount: 1
        max-entity-collisions: 8
        entity-tracking-range: 
     
    Последнее редактирование: 17 июл 2020
Статус темы:
Закрыта.

Поделиться этой страницей