Yatti420
Wizard
- Joined
- Aug 12, 2012
- Messages
- 1,437
//MOD EDIT: This guide is obsolete. Please see new Resource for actual guide
Hello everybody, (See Page 6 for 2018 Instructions)
I was playing Age Of Empires with some friends and thought it would be nice to have a dedicated TeamSpeak server so we could all chat. This is a quick run down. It will require you understand the basics of jails & jail creation from GUI. Installation & compilation without pkgng as their is no package avail due to the nature of the software. References can be found in the FreeNAS documentation http://doc.freenas.org/ It will also require you understand computer networking such as opening ports if you desire the outside world get in. I did the following to install TeamSpeak 3 Server inside of a port jail and to allow friends to connect.
NOTE: JAIL MUST BE ON 10X TEMPLATE TO WORK!! SEE JAIL & TEMPLATE GUI PAGES!!
1. Created “TS3” Jail 10X (port jail if applicable) and assigned a static IP and provided my gateway IP. Leave VIMAGE and standard jail options enabled as applicable.
2. Open a shell window (or SSH equivalent) access the "TS3" jail that was just created and perform the following:
This will download all the port directories.
3. From FreeNAS Documentation (Amended Example) - http://doc.freenas.org/index.php/Installing_non-PBI_Software#Compiling_FreeBSD_Ports_with_make
** You will still want to perform this inside of the TS3 Server Jail! SEE TEMPLATES & JAILS GUI PAGES!! **
This will start the compilation/installation! You will see a configuration build page (http://doc.freenas.org/index.php/File:Audiotag3.png) for TS3 & and afterwards it's associated dependencies. I proceeded with the default settings/documentation for all options.
4. ** NOTE ** When TS3 finishes installing, it will place one time use keys for admin login within the second TS3 log. (See /var/log/teamspeak after initial run)
If not written down copied you will have to dig through TS3 initial log files to locate them. These keys are required in order to setup an initial user for administration of server. If you lose or otherwise use this token (or key) and get locked out you will have to then reset teamspeak server password to make administrative changes.
6. Still within the TS3 Server Jail - Start TS3 Server once for testing purposes.
7. For administration and/or maintenance of the server I use the standard Windows TS3 client. I believe you may also use a telnet/ssh client with serverquery ( ** See This Post **)
Manually copy initial one time use keys / info from the TS3 log into your preferred client to obtain administrative privileges. (See /var/log/teamspeak after intial run)
8. To enable TS3 automatically on jail start-up add the appropriate entry to the TS3 Server Jail rc.conf.
9. You may now stop the teamspeak service started earlier and restart the TS3 Server Jail. The teamspeak server should now boot on start-up of the jail. Verify with "top" from shell.
10. In order for people outside your LAN to access your TS3 server you will want to forward the following ports to the IP address of your FreeNAS *JAIL*!! See router documentation/guides on port forwarding for your specific hardware!! Note: Other ports may be required depending on your TS3 setup with licenses etc.
Note: UPNP enabled routers will allow a lot of auto configuration (can even be a security risk)!! Sometimes forwarding ports isn't even required.
11. There are various re-directions and shortcuts one can use for inviting people!!!
See yal,
Hello everybody, (See Page 6 for 2018 Instructions)
I was playing Age Of Empires with some friends and thought it would be nice to have a dedicated TeamSpeak server so we could all chat. This is a quick run down. It will require you understand the basics of jails & jail creation from GUI. Installation & compilation without pkgng as their is no package avail due to the nature of the software. References can be found in the FreeNAS documentation http://doc.freenas.org/ It will also require you understand computer networking such as opening ports if you desire the outside world get in. I did the following to install TeamSpeak 3 Server inside of a port jail and to allow friends to connect.
NOTE: JAIL MUST BE ON 10X TEMPLATE TO WORK!! SEE JAIL & TEMPLATE GUI PAGES!!
1. Created “TS3” Jail 10X (port jail if applicable) and assigned a static IP and provided my gateway IP. Leave VIMAGE and standard jail options enabled as applicable.
2. Open a shell window (or SSH equivalent) access the "TS3" jail that was just created and perform the following:
Code:
#Update the pkg management system first 1. pkg update 2. pkg upgrade #Then proceed with standard port directory setup 3. portsnap fetch 4. portsnap extract 5. portsnap fetch update #[Should Be] Optional for an existing jail
This will download all the port directories.
3. From FreeNAS Documentation (Amended Example) - http://doc.freenas.org/index.php/Installing_non-PBI_Software#Compiling_FreeBSD_Ports_with_make
** You will still want to perform this inside of the TS3 Server Jail! SEE TEMPLATES & JAILS GUI PAGES!! **
To compile a port, you will cd into a sub-directory of /usr/ports/. Freshports provides the location to cd into and the make command to run. This example will compile the teamspeak3-server port:
Freshports - TS3 http://www.freshports.org/audio/teamspeak3-server/Code:cd /usr/ports/audio/teamspeak3-server make install clean
This will start the compilation/installation! You will see a configuration build page (http://doc.freenas.org/index.php/File:Audiotag3.png) for TS3 & and afterwards it's associated dependencies. I proceeded with the default settings/documentation for all options.
4. ** NOTE ** When TS3 finishes installing, it will place one time use keys for admin login within the second TS3 log. (See /var/log/teamspeak after initial run)
Code:
ts3server_2016-02-19__11_26_23.145368_0.log << FIRST TS3 STANDARD LOG ts3server_2016-02-19__11_26_23.145368_1.log <<ADMIN TOKEN
If not written down copied you will have to dig through TS3 initial log files to locate them. These keys are required in order to setup an initial user for administration of server. If you lose or otherwise use this token (or key) and get locked out you will have to then reset teamspeak server password to make administrative changes.
5. NOTE: FreeNAS 9.3.1 & TS3 Server 3.0.11.4 installed perfectly!! No modifications or permission overrides required!! The following section is now considered outdated!! FYI ONLY! Skip to #6!!
Code:** FIXES (9.2.1.5/9.2.1.6 Install) ** #The following directories need to be created in order for the precmd start routine to run!! #Run mkdir & chmod 777 as root.. /var/db/teamspeak /var/log/teamspeak
6. Still within the TS3 Server Jail - Start TS3 Server once for testing purposes.
Code:
service teamspeak onestart
7. For administration and/or maintenance of the server I use the standard Windows TS3 client. I believe you may also use a telnet/ssh client with serverquery ( ** See This Post **)
Manually copy initial one time use keys / info from the TS3 log into your preferred client to obtain administrative privileges. (See /var/log/teamspeak after intial run)
8. To enable TS3 automatically on jail start-up add the appropriate entry to the TS3 Server Jail rc.conf.
Code:
#Add the following to autostart Teamspeak 3 Server teamspeak_enable="YES"
9. You may now stop the teamspeak service started earlier and restart the TS3 Server Jail. The teamspeak server should now boot on start-up of the jail. Verify with "top" from shell.
Code:
top service teamspeak3 stop top service teamspeak3 start top
10. In order for people outside your LAN to access your TS3 server you will want to forward the following ports to the IP address of your FreeNAS *JAIL*!! See router documentation/guides on port forwarding for your specific hardware!! Note: Other ports may be required depending on your TS3 setup with licenses etc.
Note: UPNP enabled routers will allow a lot of auto configuration (can even be a security risk)!! Sometimes forwarding ports isn't even required.
Code:
TCP 10011,30033 UDP 9987
11. There are various re-directions and shortcuts one can use for inviting people!!!
- ts3server://0.0.0.0?password=specialplants <<Win Shortcut >>
- http://www.teamspeak.com/invite/mywanipORmydomain/?password=specialplants
- <a href="ts3server://0.0.0.0?password=specialplants">Invitation</a>
See yal,
Last edited by a moderator: