TCP Proxy Help

Results 1 to 3 of 3
  1. #1

    TCP Proxy Help

    Hey,
    I hope you guys can help me.
    So I am trying to set up a TCP Proxy on my hotel. It is all set up and working. I have kept the EMU config to the VPS IP and Port and changed client.php to the proxy IP and port. The client loads fine.

    Here is the problem: When a player connects on the hotel, it shows their IP as the Proxy IP. This is obviously a problem for two reasons;
    1) It means that my usual restriction of 5 connections per IP is not possible, due to the EMU logging each players IP as the proxy IP.
    2) I am unable to IP ban anyone, as it bans the proxy IP.. meaning noone can log in.

    I have edited 'maxconperip' in EMU config to 550. I have also edited the line in global.php

    Code:
    if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
    to
    Code:
    if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; }

    I am scratching my head here trying to figure out where I am going wrong. I hope you fantastic people can help!

    Thanks,
    Steve


  2. #2
    o/ Konquer is offline
    MemberRank
    Apr 2014 Join Date
    464Posts

    Re: TCP Proxy Help

    Which emulator are you using?

  3. #3
    apt-get install xcowsay 3M1L is offline
    MemberRank
    Jul 2012 Join Date
    SwedenLocation
    268Posts

    Re: TCP Proxy Help

    http://forum.ragezone.com/f333/proxy...stion-1093267/

    Edit:
    Did you just try to use the HTTP_X_FORWARDED_FOR header to get an users real ip behind a TCP proxy?
    Last edited by 3M1L; 28-05-16 at 11:40 AM. Reason: wtf..



Advertisement