Create your own TCP Proxy! [Hotel Safety 1]

Results 1 to 8 of 8
  1. #1
    Member Thewicard is offline
    MemberRank
    Nov 2011 Join Date
    NorwayLocation
    92Posts

    Create your own TCP Proxy! [Hotel Safety 1]

    Want to minimize your risk when running a hotel? Well I'm going to show how you can run a server ON-Shore without ever have to worry about Sulake taking it down.

    What are you going to need?
    A second windows server including the server you have. About any cheap OFF-Shore server will do.

    Step 1:
    Download Portmapper on the server which you want to use as proxy
    And run through the setup!

    Step 2:
    Now, run portmapper, then it will appear in the system tray. The M you see



    1) Right click the system tray icon of portmapper and click "Configure"
    2) Now click the "Configure mapping" button and then click "Add"
    3) Fill in your information. (port you want to forward and the ip you want to forward to)
    Remember - portforwarding is needed in both servers!



    Now click OK->OK->OK
    And you're done - all connections done to that port will be forwarded.

    Security tip: Use an anonymous vps to host this proxy, or pay for the vps that you use with prepaid VISA. Use VPN both when you administrate and when you buy the VPS.

    To get your clients ip: Do the exact same as you would through cloudflare.
    $_SERVER['REMOTE_ADDR'] = isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];


  2. #2
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    Re: Create your own TCP Proxy! [Hotel Safety 1]

    You seriously need a Windows server just to host a proxy on? Yeah, right.

    nice sig btw
    sure isn't advertising

  3. #3
    Member Thewicard is offline
    MemberRank
    Nov 2011 Join Date
    NorwayLocation
    92Posts

    Re: Create your own TCP Proxy! [Hotel Safety 1]

    Quote Originally Posted by Bui View Post
    You seriously need a Windows server just to host a proxy on? Yeah, right.

    nice sig btw
    sure isn't advertising
    It is indeed possible on linuxservers, but I belive most people here use windowsservers.
    Reson you want to use an own server for proxying is Security, no need for this if you have 5-20 active users.

  4. #4
    Apprentice Diathrane is offline
    MemberRank
    Mar 2011 Join Date
    D:\Location
    14Posts

    Re: Create your own TCP Proxy! [Hotel Safety 1]

    Nice job man, i'm diggin' this. im going to use it right now! haha. thanks. xD

  5. #5
    G'nome sayin' Exonize is offline
    MemberRank
    May 2011 Join Date
    Czech RepublicLocation
    517Posts

    Re: Create your own TCP Proxy! [Hotel Safety 1]

    Quote Originally Posted by Thewicard View Post
    It is indeed possible on linuxservers, but I belive most people here use windowsservers.
    Reson you want to use an own server for proxying is Security, no need for this if you have 5-20 active users.
    So you think it will be better security running your own TCP proxy on a Windows server when you have no excperience? don't think so.

    You can also use a much better solution with lot's of features and you don't need a Windows licence.

  6. #6
    Apprentice Conch is offline
    MemberRank
    Jun 2011 Join Date
    SwedenLocation
    14Posts

    Re: Create your own TCP Proxy! [Hotel Safety 1]

    Nice guide, I own a domain but it's running on a XAMMP for Linux server.
    I'll see if I can find a way around for Linux.

    Good guide though, thanks.

  7. #7
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: Create your own TCP Proxy! [Hotel Safety 1]

    lol. Ugh. The stupidity.. arghh... Why buy a $30 windows VPS when you can buy a $5 Linux one.. Habbo community sigh.

    This will work on most if not all distros. Tested on CentOS 5/6 and used for many projects:

    PHP Code:
    cat /proc/sys/net/ipv4/conf/eth0/forwarding

    sysctl net
    .ipv4.conf.eth0.forwarding=1

    echo > /proc/sys/net/ipv4/ip_forward

    iptables 
    -t nat -A POSTROUTING -s 99.99.99.99/24 -o eth0 -j MASQUERADE #Your proxy IP, provided by the VPS provider of which you wish to proxy from
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    iptables 
    -t nat -A PREROUTING -i eth0 -p tcp --dport 1234 -j DNAT --to 88.88.88.88:1234 #dport = listening port #DNAT = Your REAL IP:Port 
    Example usage:

    PHP Code:
    iptables -t nat -A POSTROUTING -s 12.34.56.78/24 -o eth0 -j MASQUERADE 
    Replace 12.34.56.78 with the IP of your proxy VPS.


    PHP Code:
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    iptables 
    -t nat -A PREROUTING -i eth0 -p tcp --dport 1234 -j DNAT --to 88.88.88.88:1234 
    change dPort 1234 with the port you want your VPS to sit on.

    Change the DNAT 88.88.88.88:1234 to your IP:Port that your REAL emulator uses.

    When done go to your client and enter your proxy VPS IP and the dport you entered.

  8. #8
    hoi ik ben cool Merijn is offline
    MemberRank
    Dec 2009 Join Date
    The NetherlandsLocation
    492Posts

    Re: Create your own TCP Proxy! [Hotel Safety 1]

    Quote Originally Posted by Conch View Post
    Nice guide, I own a domain but it's running on a XAMMP for Linux server.
    I'll see if I can find a way around for Linux.

    Good guide though, thanks.
    lol?

    apt-get install apache2 php5 php5-common

    :') ok...



Advertisement