2

How can I route the traffic of the TeamSpeak server so that it will work when connected to VPN?

I am currently hosting a TeamSpeak server at home and intend to have that server connected to a VPN at all times; however, when connected to the VPN, no one can connect to the TeamSpeak server.

  • I'm using VPN service Private Internet Access, using their application to connect (can also use OpenVPN), which offers port forwarding on certain servers; however, this method will not work for me as my choice of VPN servers is limited
7
  • How would users connect to that Teamspeak Server? How is the VPN related to Teamspeak?
    – Daniel B
    Commented Dec 27, 2015 at 10:37
  • The problem is that I want users to connect while my server is connected to VPN Commented Dec 27, 2015 at 10:39
  • Please edit your question to include details on how you connect to your VPN provider, ie. which software is involved, what protocol is used and where you got the settings from.
    – Daniel B
    Commented Dec 27, 2015 at 10:51
  • 2
    The only solution I know of (and use) is to use the VPN inside a virtual machine, so that only the VM is affected. But I don't know if the other computers on your local network are also supposed to use the VPN thru the Teamspeak server. I suggest using OpenVPN instead of their client (the client might do the blocking), and if on Windows, add to your post the output of route -n before and after connecting to the VPN. The idea is to use Split tunneling to overcome it.
    – harrymc
    Commented Dec 28, 2015 at 9:13
  • 1
    Pls post your routing table when you are connected via the VPN. Commented Dec 28, 2015 at 16:42

2 Answers 2

1

If Port Forwarding is Possible:

  • From the information you've shared, it sounds like they may be handing you a dynamic IP, or some sort of configuration that is ever changing. Although PIA supports port forwarding as you've said, that doesn't help if the users do not know where the server lives [your VPN IP address].
    • In this scenario, simply have UDP 9987 forwarded as usual, but you may want to use a dynamic IP service such as No-IP; they have clients that can update the DNS entry yourhost.no-ip.tld from the machine that is running your VPN and Teamspeak 3 server.
  • To eliminate any strange behavior, it would be generally advised to use the OpenVPN client if possible; this permits you to see what kind of configuration they are enforcing to a reasonable extent.

If Port Forwarding is Not Possible:

  • You might be SOL for running this through this particular VPN service; from what I've been able to uncover, their system to permit port forwarding is very strange and hit-and-miss from user experiences.
  • There are potential options for getting this to still work, such as inquiring with PIA as to whether or not they permit split-tunneling, for which some data can go through the VPN interface while others go out your hardware/normally expected interface.
  • Despite these potential workarounds, I would highly recommend simply using a VPN provider that actually supports port forwarding without a huge hassle to save yourself from this headache. I personally have used nVpn.net in the past, which permits port forwarding (with no hassle!) despite handing out dynamic IPs.


Resources

0

The website for your VPN service says that it acts at the "TCP/IP interface level" so it affects all applications. That would include your TeamSpeak server.

The fact that your users can't connect implies that TeamSpeak clients connect directly to the server, and NOT through an intermediary server in the cloud.

The fact that Private Internet Access even offers a port forwarding option implies that it shares IP addresses between clients. Unfortunately that means that a dynamic IP service like No-IP still wouldn't work.

It seems you have two options, neither one being exactly what you're asking for:

  1. Replace Your VPN Service - either find one that allows you to use port forwarding, or find one that provides dedicated IP's to each client (which would negate the need for forwarding in the VPN service, and )

  2. Split Your Servers - move either your VPN connection OR the TeamSpeak service to another server. You could do this physically, or using virtual machine(s) on your existing server.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .