(FireHol) Redirecting traffic trough my Linode
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
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.
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..
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.
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.