Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Gameserver behind other VPS IP address
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Gameserver behind other VPS IP address

FlorinMarianFlorinMarian Member, Host Rep

Hi !
I would like to get a non-protected dedicated server(cheap) and a VPS server with a good protection anti-ddos.

It is possible to forward all traffic from gameserver to VPS server without exposing real IP address? (non-protected)

I tried doing this thing with iptables but after ESTABLISHED connection, there it's direct connection to real IP not to fake IP anymore.

My game requires TCP and UDP, on VPS i can run any linux distribution and also i need to forward just few ports (4) not more.

Best regards, Florin.

Comments

  • I remember setting up something similar for a friend a few years ago. Used haproxy and he had up to 500 connections simultaneously. If you find a decent tutorial it takes 5 min to set up.

  • FlorinMarianFlorinMarian Member, Host Rep

    @Wicked said:
    I remember setting up something similar for a friend a few years ago. Used haproxy and he had up to 500 connections simultaneously. If you find a decent tutorial it takes 5 min to set up.

    I'll be very thankful if you wil can help me with that. > @casualjoe said:

    I will try it right now.
    Thank you !

  • MasonRMasonR Community Contributor

    Couple tips - you'll want to get the VPS as geographically close to the dedi as possible so that you're not adding a lot of latency. And you'll want to pick a quality VPS provider that has good connectivity/peering, a fat pipe (1 gbps), and hopefully the link isn't too oversold.

    Thanked by 1JohnMiller92
  • FlorinMarianFlorinMarian Member, Host Rep

    @MasonR said:
    Couple tips - you'll want to get the VPS as geographically close to the dedi as possible so that you're not adding a lot of latency. And you'll want to pick a quality VPS provider that has good connectivity/peering, a fat pipe (1 gbps), and hopefully the link isn't too oversold.

    I have a provider in Romania with voxility antiddos.
    Their network it's good but hardware dedicated it's most cheaper saw ever..

  • FlorinMarianFlorinMarian Member, Host Rep
    edited August 2018

    Update: I've created tunnel IP-IP and I can ping each other but at this moment i need iptables rules to forward specific ports to tunnel. some help ?
    This is not working:
    iptables -P INPUT ACCEPT
    iptables -P OUTPUT ACCEPT
    iptables -P FORWARD ACCEPT

        iptables -F
        iptables -F -t nat
        iptables -X
        iptables -X -t nat
    
        iptables -t nat -A PREROUTING -p tcp -d 188.212.100.109 --dport 30001 -j DNAT --to-destination 192.168.168.2
        iptables -A FORWARD -p tcp -d 192.168.168.2 --dport 30001 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
        iptables -t nat -A POSTROUTING -p tcp -s 192.168.168.0/30 --dport 30001 -j SNAT --to-source 188.212.100.109
    
        sysctl -w net.ipv4.ip_forward=1
    

    `

  • mkshmksh Member

    Stab in the dark: Your game server software leaks the IP to clients. If that's the case there is not much you can do short reverse engineering the software.

  • FlorinMarianFlorinMarian Member, Host Rep

    Probably you didn't understood that i wanna block any another external connection to game ports excepting this tunnel.

  • mkshmksh Member
    edited August 2018

    @FlorinMarian said:
    Probably you didn't understood that i wanna block any another external connection to game ports excepting this tunnel.

    What's the point? If people know your real server IP it can be DDoS'd. You can't block that.

  • FlorinMarianFlorinMarian Member, Host Rep

    People will have restriction to dedicated server IP. They will can ddos exposed IP from VPS but that will be ddos protected.

  • pikepike Veteran
    edited August 2018

    You need a clean IP then for your dedi and hide it from potential attackers.

    Also this is very easy to achieve, you can make the gameserver listen to the tunnel IP only or block any other connection with IPTables.

  • FlorinMarianFlorinMarian Member, Host Rep

    @pike said:
    You need a clean IP then for your dedi and hide it from potential attackers.

    Also this is very easy to achieve, you can make the gameserver listen to the tunnel IP only or block any other connection with IPTables.

    This is exacly what I wanna do.
    Now i'm waiting for rules to forward traffic from tunnel to gameserver.
    best regards, florin.

  • mkshmksh Member

    @FlorinMarian said:
    People will have restriction to dedicated server IP.

    You can't restrict people from saturating your pipe. If they know the real IP you are toast. If you don't understand this there is no sense in this. Also IPTables has a manual...

  • FlorinMarianFlorinMarian Member, Host Rep

    @mksh said:

    @FlorinMarian said:
    People will have restriction to dedicated server IP.

    You can't restrict people from saturating your pipe. If they know the real IP you are toast. If you don't understand this there is no sense in this. Also IPTables has a manual...

    How can i be a toast if they will have no acces to that ip ? PING, TCP, UDP closed.

  • mkshmksh Member

    @FlorinMarian said:

    @mksh said:

    @FlorinMarian said:
    People will have restriction to dedicated server IP.

    You can't restrict people from saturating your pipe. If they know the real IP you are toast. If you don't understand this there is no sense in this. Also IPTables has a manual...

    How can i be a toast if they will have no acces to that ip ? PING, TCP, UDP closed.

    Flood. It doesn't matter if you accept it or not. As soon as you have incoming traffic > your port speed there wont be any resources left for anyone else. That's how DDoS works. Closing ports is pointless.

  • deankdeank Member, Troll
    edited August 2018

    Think like this.

    You've decided not to answer anyone at your door for the peace of quietness but that won't stop people from knocking at it.

    And some decided to knock at your door non-stop, 24 hours a day, 7 days a week to drive you insane.

    Whether you answer your door or not, you are still getting (unwanted) visitors. And those with real purpose to visit you can't get to your door because of those jerks knocking at your door for no apparent reason.

    A closed port still has to answer calls. You may not be notified of this but it will still answer calls. Give enough calls, it will gives you a middle finger at you and call it quits.

    Thanked by 1mksh
  • What game is this? Depending on the protocol, there might be a solution.

Sign In or Register to comment.