(FireHol) Redirecting traffic trough my Linode

Hi,

At home I'm running a small gameserver for some friends.

But from my ISP, I get a dynamic IP address (a static one would cost me over 30 euros/month).

I'm already using the no-ip.org service. But the game doesn't stores domain names, he stores IP addresses. So we have to add the server every day again to our ingame favorites list.

Now, because I have a static address on my Linode, I was thinking of using that one and redirecting that traffic to my home address.

I found I could do that be using this config line (I'm using Firehol): > nat to-destination myname.no-ip.org proto udp dport 28960 But then I get: > iptables v1.3.6: Bad IP address `myname.no' How can I solve this?

5 Replies

I don't think this is going to work. Firehol uses the '–to-destination' parameter of iptables, which is documented as taking a single IP or range of IPs.

You might try setting up an OpenVPN connection from the game server to the linode, and then DNATing to that IP, which can be fixed.

Thanks for your reaction.

I think a VPN connection won't work because when the IP address changes, the VPN connection will get disconnected. Or I should have a system which reconnect to a (no-ip.org) domain name automatically..

You could write a script that pings your domain and takes the IP address and updates the iptables for the VPN connection when the connection is no longer "live".

Honestly, I think if you could support it, run the gameserver off your linode. Use a dyndns or no-ip and set a domain name to IP address (for ease of remembering) and then don't worry too much. You may need to upgrade your linode, but hopefully, your friends that play would be able to help cut the cost with dues or something.

OpenVPN can connect via a hostname rather than an IP address, so yes, it would actually work with a dyndns address (I use mine in such a way when dynamic IPs break my normal IPSec connections).

That said, I also think that if you know, or have the time to learn, a little scripting, that would probably be a more efficient way to get the job done. I believe DynDNS also has an API that can be used for these things.

@tofu:

Thanks for your reaction.

I think a VPN connection won't work because when the IP address changes, the VPN connection will get disconnected. Or I should have a system which reconnect to a (no-ip.org) domain name automatically..
No, the other way around: have the gameserver initiate the connection to the linode, which is fixed.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct