Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Nov 08, 2008 12:48 pm 
Offline
Senior Member
User avatar

Joined: Sat Jul 01, 2006 7:36 am
Posts: 50
Location: Ghent, Belgium
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):
Quote:
nat to-destination myname.no-ip.org proto udp dport 28960
But then I get:
Quote:
iptables v1.3.6: Bad IP address `myname.no'
How can I solve this?


Top
   
 Post subject:
PostPosted: Sat Nov 08, 2008 2:02 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
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.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Sun Nov 09, 2008 8:05 am 
Offline
Senior Member
User avatar

Joined: Sat Jul 01, 2006 7:36 am
Posts: 50
Location: Ghent, Belgium
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..


Top
   
 Post subject:
PostPosted: Sun Nov 09, 2008 9:47 am 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
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.


Top
   
 Post subject:
PostPosted: Sun Nov 09, 2008 2:08 pm 
Offline
Junior Member

Joined: Sat Jan 05, 2008 2:40 am
Posts: 43
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.


Top
   
 Post subject:
PostPosted: Mon Nov 10, 2008 3:55 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
tofu wrote:
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.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.

-- seen on the net


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group