Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I don't know that much about VPN, so it could be that this is utterly impossible. Here's hoping, though.

I would like to forward a port from my router to a machine connected to the network via VPN. That way, I could run a simple server on my laptop, and it would continue to work at the same address no matter where I am. The trick is that I don't want people connecting to the server to have to join the VPN. It should be completely transparent to the end-user.

If it's not possible with VPN, is there some other technology that would make this possible? Basically just forwarding a port to a remote machine, one without a static IP.

share|improve this question
    
What are you publishing? HTTP or something else? –  Mark Henderson Feb 19 '11 at 6:08
    
where is the VPN Server sitting, would help to have more information on your topology. –  Jimsmithkka Feb 19 '11 at 10:40
    
Specifically, I want to serve a Minecraft server. I don't know much about setting up a VPN server, but I would be setting it up on a machine in my house, behind a router with a static IP. –  zib_redlektab Feb 19 '11 at 18:00
add comment

1 Answer

up vote 2 down vote accepted

Yes, it's possible. You have to install the vpn on your router and make sure your vpn server always give the same ip to your laptop. (This setup is quite easy using Openvpn as server, but you need a router that has VPN capabilities)

share|improve this answer
1  
That said it will likely suck. Totally. YOu are better off moving your minecraft server to a virtual machine you rent. And likely cheaper off, too. –  TomTom Mar 7 '11 at 16:47
    
How will that be cheaper? I already own all the equipment I need (assuming my router supports vpn). –  zib_redlektab Mar 8 '11 at 13:01
    
Also, can you possibly give more details on how this VPN-router setup would work? I'm willing to flash my router with DD-WRT, if thats what it takes. –  zib_redlektab Mar 8 '11 at 13:21
1  
You need a Openvpn server (your router can act as the server) - this can be accessible everywhere using dynamic dns (dd-wrt supports this) then you must configure it so your laptop always receive the same address (just one more file with a configuration line) - the client's configuration files already have all the info regarding the server, then forward all traffic getting to you router to the minecraft port to your laptop. Then you only need the dynamic dns of your router to be able to access it from everywhere. –  mndo Mar 9 '11 at 11:54
    
Awesome, I think I can handle that :) Thanks! –  zib_redlektab Mar 9 '11 at 20:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.