Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Howto: TeamSpeak 3 server in pfSense 2.0

    Scheduled Pinned Locked Moved Documentation
    35 Posts 9 Posters 27.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      virtualliquid
      last edited by

      This sounds like something I would like to try, I am running 2 24/7 computers. My power bill is sometimes a bit high due to all my "hobbies" in light of that, I would like to make my self more efficient and run a ts3 server and pfsense on one box, if my TS3 server were to be hacked or compromised in anyway, what are the implications of this? Or I guess what I am asking, would this method still be safer than a traditional home firewall?

      1 Reply Last reply Reply Quote 0
      • kevevK
        kevev
        last edited by

        @virtualliquid:

        This sounds like something I would like to try, I am running 2 24/7 computers. My power bill is sometimes a bit high due to all my "hobbies" in light of that, I would like to make my self more efficient and run a ts3 server and pfsense on one box, if my TS3 server were to be hacked or compromised in anyway, what are the implications of this? Or I guess what I am asking, would this method still be safer than a traditional home firewall?

        Having a dedicated TS3 box would probably be safer. If you add TS3 to your pfsense box and it gets compromized the hacker could do some nasty things with your internet traffic. sniffing/DDOS stuff like that. The hacker would need to be able to compromize The OS to become root if they wanted to cause real damage of course. I do this to save power. Remember nothing is 100% safe. :)

        1 Reply Last reply Reply Quote 0
        • H
          HooKed
          last edited by

          I have been looking for some info on this for a while.
          Every thing worked nicely until i got to this part:

          8.)  `vi /usr/local/lib/teamspeak3-server_freebsd-x86/ts3server.sh`
          
          #!/bin/sh
          
          export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
          export PATH=".:$PATH"
          cd "$(dirname "${0}")"
          /usr/sbin/daemon -f -p ts3server.pid ts3server_freebsd_x86 $@
          

          i'm very new to linux/FreeBSD and i have no clue on how to get this to work.

          i did try ./ts3server_startscript.sh start and the server started and gave me my superadmin info and server admin Token.

          the server is up and running :D

          Also is there a way to make it a LAN only server? Like block anyone from connecting from the WAN interface?

          1 Reply Last reply Reply Quote 0
          • kevevK
            kevev
            last edited by

            @HooKed:

            I have been looking for some info on this for a while.
            Every thing worked nicely until i got to this part:

            8.)  `vi /usr/local/lib/teamspeak3-server_freebsd-x86/ts3server.sh`
            
            #!/bin/sh
            
            export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
            export PATH=".:$PATH"
            cd "$(dirname "${0}")"
            /usr/sbin/daemon -f -p ts3server.pid ts3server_freebsd_x86 $@
            

            i'm very new to linux/FreeBSD and i have no clue on how to get this to work.

            i did try ./ts3server_startscript.sh start and the server started and gave me my superadmin info and server admin Token.

            the server is up and running :D

            Also is there a way to make it a LAN only server? Like block anyone from connecting from the WAN interface?

            The vi command edits a new file. You need to enter the proceeding lines into the file.

            To make this a LAN only TS server on step 16 only open the port on the LAN and not the WAN interface.

            1 Reply Last reply Reply Quote 0
            • H
              HooKed
              last edited by

              Ok i will try this soon.

              I didn't know #!/bin/sh is the start of a file  ;)

              I have to update the server anyway.

              Also i haven't tried to get anyone to connect to to see if its blocked on the WAN side.
              It works very well via lan only  8)

              1 Reply Last reply Reply Quote 0
              • kevevK
                kevev
                last edited by

                @HooKed:

                Ok i will try this soon.

                I didn't know #!/bin/sh is the start of a file  ;)

                I have to update the server anyway.

                Also i haven't tried to get anyone to connect to to see if its blocked on the WAN side.
                It works very well via lan only  8)

                Unix like operating systems use the she-bang to start a script. That is how the operating system knows what shell to use when reading the script. Consider it the same as a batch script(.bat file) in windows.

                Source: http://en.wikipedia.org/wiki/Shebang_(Unix)

                1 Reply Last reply Reply Quote 0
                • H
                  HooKed
                  last edited by

                  Thank you for the info :D

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sander88
                    last edited by

                    Nice :) to see more people are using Teamspeak on their PFSense box. I have created a package to install, update and manage Teamspeak using the webinterface. I have also made a few modification to run the service as a non-root user; to minimize the security risk (in similar way you are doing). I still agree on the warning; you should only use this in your home environment, never install such service in a corporate or production network!

                    But I wondering if people would like to use this package?

                    1 Reply Last reply Reply Quote 0
                    • H
                      HooKed
                      last edited by

                      @Sander88:

                      Nice :) to see more people are using Teamspeak on their PFSense box. I have created a package to install, update and manage Teamspeak using the webinterface. I have also made a few modification to run the service as a non-root user; to minimize the security risk (in similar way you are doing). I still agree on the warning; you should only use this in your home environment, never install such service in a corporate or production network!

                      But I wondering if people would like to use this package?

                      I think it would be nice to have a package installer for Teamspeak for pfSense.

                      I was thinking about doing the same thing but i don't even know how to start making a package installer.

                      As soon as i can check it out i would like to see what it can do.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sander88
                        last edited by

                        I gonna look into how to distribute this (to the packages GIT). One thing that might be a license issue: my code downloads the Teamspeak 3 binaries from their (update) servers. Teamspeak 3 is closed source, so would that be an issue? Can anyone tell if this allowed?

                        1 Reply Last reply Reply Quote 0
                        • H
                          HooKed
                          last edited by

                          @Sander88:

                          I gonna look into how to distribute this (to the packages GIT). One thing that might be a license issue: my code downloads the Teamspeak 3 binaries from their (update) servers. Teamspeak 3 is closed source, so would that be an issue? Can anyone tell if this allowed?

                          I just posted on Teamspeaks forum about what you want to do. Maybe an moderator will answer soon.
                          Here is the thread http://forum.teamspeak.com/showthread.php/94571-Is-This-OK-pfSense-Package-for-TS3

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sander88
                            last edited by

                            Thanks. I have sent them a message with some details about the URL we are using. So waiting for them to reply if this is allowed.

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sander88
                              last edited by

                              @Sander88:

                              Thanks. I have sent them a message with some details about the URL we are using. So waiting for them to reply if this is allowed.

                              I have received a response: "Thank you for contacting TeamSpeak and inquiring about direct downloading of our files. Unfortunately, we only allow our files to be downloaded by the actual individuals directly from our website because the must accept the End User License Agreement (EULA) before they are allowed to download our software. This whole process is bypassed if the software is directly downloaded by any other means, and is therefore, not allowed."

                              So linking directly is not allowed; I will look into another solution. I'm thinking about letting the user download the files (some kind of archive file) manually and providing an upload form to put the files on PFSense. It would do the trick and Teamspeak is happy as users have to accept their EULA.

                              1 Reply Last reply Reply Quote 0
                              • H
                                HooKed
                                last edited by

                                Yea I kinda figured that may be the case.

                                Let me know when you get it to the testing faze, I would like to help test it out.

                                1 Reply Last reply Reply Quote 0
                                • kevevK
                                  kevev
                                  last edited by

                                  Awsome Sander88! This would be great for people who are afraid to install the manual way.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sander88
                                    last edited by

                                    @HooKed:

                                    Yea I kinda figured that may be the case.

                                    Let me know when you get it to the testing faze, I would like to help test it out.

                                    The Teamspeak 3 package is available for testing purposes in my fork of the pfSense package GIT: https://github.com/sander1988/pfsense-packages . I made some last minute modifications to make it compatible with PFSense 2.1 and added the server upload form (as discussed earlier in this thread).

                                    HooKed and others please test it! ;) I'm looking forward to your feedback. Please include the PFSense version and architecture in your message when you are running into any issues. Just a little reminder: it's a first test release; so don't test it on your production box at this time as it might break things!

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      HooKed
                                      last edited by

                                      Awesome! As soon as i get a little free time i'm going to check this out.

                                      I do have a test pfsense server to play with. :)

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        citroen
                                        last edited by

                                        Thanks for suggestion to make teamspeak available on pfsense. I did like op wrote. Everything is working, but there is one thing i don´t understand. Every time i restart the box, teamspeak won´t come up. I have to login (ssh) and start teamspeak manually. I can´t figure out what is going on. Would be nice if someone can help me. And how do i use the scripts from Sander88? Can u get me to the point?

                                        Thank you all…

                                        Regards

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          HooKed
                                          last edited by

                                          I installed Cron package then added this

                                          
                                          minute 	hour 	mday 	month 	wday 	who 	command
                                          0  	*  	*  	*  	*  	root  	/usr/local/lib/teamspeak3-server_freebsd-x86/ts3server_startscript.sh start  
                                          

                                          Your install location may be different.

                                          There may be a better config but this works for me.

                                          It seems to take a few mins for the ts server to be active after reboot but it always starts up.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            citroen
                                            last edited by

                                            So did i. When i start TS manually, i get this:

                                            ts3server.pid found, but no server running. Possibly your previously started server crashed
                                            Please view the logfile for details.
                                            Starting the TeamSpeak 3 server
                                            
                                            

                                            I took a look to /etc/, but did not find a startscript (rc.conf or similar). Think, thats why TS don´start at boot. OP provide a script to start Ts on boot with rc.conf, how does pfsense doing this?

                                            So i will test your suggestion.

                                            So also looks like a shutdown of the box don´t proper shutdown TS. Will see if after reboot TS is coming up…

                                            Just one question left, what does Sander88 script doing?

                                            Regards

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.