| Linode Forum https://forum.linode.com/ |
|
| (FireHol) Redirecting traffic trough my Linode https://forum.linode.com/viewtopic.php?f=19&t=3641 |
Page 1 of 1 |
| Author: | tofu [ Sat Nov 08, 2008 12:48 pm ] |
| Post subject: | (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): 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?
|
|
| Author: | SteveG [ Sat Nov 08, 2008 2:02 pm ] |
| Post subject: | |
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. |
|
| Author: | tofu [ Sun Nov 09, 2008 8:05 am ] |
| Post subject: | |
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.. |
|
| Author: | freedom_is_chaos [ Sun Nov 09, 2008 9:47 am ] |
| Post subject: | |
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. |
|
| Author: | CybrMatt [ Sun Nov 09, 2008 2:08 pm ] |
| Post subject: | |
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. |
|
| Author: | SteveG [ Mon Nov 10, 2008 3:55 pm ] |
| Post subject: | |
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. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|