Difference between revisions of "Create your own router"

From Titan Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Here i will walk you through how to start your own Router
+
Here I will walk you through how to start your own Router.
  
 
== Quick and dirty ==
 
== Quick and dirty ==
 
To get started in less then 5min
 
To get started in less then 5min
  
;1: Obtain a Vps server and install debian(personaly recomend Vultr.com)
+
* Obtain a VPS and install debian(personally recommend https://vultr.com/)
  
;2: ssh into the server and run <code>wget https://git.io/v7QeH -O road_titan && bash road_titan</code>
+
* SSH into the server and run <code>wget https://git.io/v7QeH -O road_titan && bash road_titan</code>
 
:This is the script that is going to run<code>https://github.com/45khz/road_titan</code>
 
:This is the script that is going to run<code>https://github.com/45khz/road_titan</code>
 +
:For Raspberry-pi <code>https://github.com/45khz/pi_titan</code>
  
;3:Answer the questions the scrip is asking, your done congratz you now have your very own router.
+
* Answer the questions the script is asking, you're done! Congratz, you now have your very own router!
  
== Advance setup ==
+
== Advanced setup ==
# need some style stuff
 
 
How to setup Demonsaw 4 router by Tek
 
How to setup Demonsaw 4 router by Tek
  
It’s very easy to have your own DS4 private network. Here’s how to do it.
+
It’s very easy to have your own DS4 private network. Here’s how to do it.<br/>
First, you need a VPS. I recommend https://vultr.com They have very good rates and i never had a problem with them.
+
First, you need a VPS. I recommend https://vultr.com They have very good rates and i never had a problem with them.<br/>
Once you created your account and added funds to it, you can launch a new instance. (They even accept bitcoin)  
+
Once you created your account and added funds to it, you can launch a new instance (they even accept bitcoin).
 
----
 
----
 
First, select a location for your server.
 
First, select a location for your server.
Line 24: Line 24:
  
 
Most of them are located in the US but there are some in other countries as well.
 
Most of them are located in the US but there are some in other countries as well.
 +
----
 
Next, select the server type. I recommend Debian 8x64
 
Next, select the server type. I recommend Debian 8x64
 +
 +
[[File:Router_tutorial_2.png|600px]]
 
----
 
----
[[File:Router_tutorial_2.png|600px]]
+
Then select server size. I use the $5/month package. Depending on how many people will use your network and how many files will be shared, you can adjust your package as needed.
 +
 
 
[[File:Router_tutorial_3.png|600px]]
 
[[File:Router_tutorial_3.png|600px]]
 +
----
 +
Next, you choose a server name and label. It can be whatever you want.
  
Then select server size. I use the $5/month package. Depending on how many people will use your network and how many files will be shared, you can ajust your package as needed.
 
Next, you choose a server name and label. It can be whatever you want.
 
----
 
 
[[File:Router_tutorial_4.png|600px]]
 
[[File:Router_tutorial_4.png|600px]]
  
Then, click on Deploy Now. It usually take 5 to 10 minutes for a server to be ready for use.
+
Then, click on Deploy Now. It usually takes 5 to 10 minutes for a server to be ready for use.<br/>
When the server is ready, you will have your IP address. You user name is root and a complex passord is provided.
+
When the server is ready, you will have your IP address. Your username is root and a complex password is provided.<br/>
*Note: This turorial was made using Linux. If you are using the Windows OS, you will need a little program called “Putty” (freeware). Next, open terminal and type <code>su</code> (root) Type your OS password Then type <code>ssh root@REPLACE_WITH_SERVERIP</code> Type <code>yes</code> then copy server password to clipboard and paste. You are now logged in your vultr server.
+
<b>Note:</b> This tutorial was made using Linux. If you are using the Windows OS, you will need a little program called “Putty” (freeware) http://www.putty.org/.<br/>
 +
Next, open terminal and type <code>su</code> (root)<br/>
 +
Type your OS password<br/>
 +
Then type <code>ssh root@REPLACE_WITH_SERVERIP</code><br/>
 +
Type <code>yes</code> then copy server password to clipboard and paste.<br/>
 +
You are now logged in your Vultr server.
 
----
 
----
[[File:Router_tutorial_5.png|400px|left]]
+
Once logged in, update and upgrade your server OS.
  
Next, install screen. This will allow you to exit terminal after you finish installing your router, without shutting down the server.  
+
[[File:Router_tutorial_5.png|400px]]
 
----
 
----
[[File:Router_tutorial_6.png|400px|left]]
+
Next, install screen. This will allow you to exit terminal after you finish installing your router, without shutting down the server.
  
 +
[[File:Router_tutorial_6.png|400px]]
 +
----
 
Now, type <code>screen</code> in your terminal then hit enter twice. Now, you need to install unzip.
 
Now, type <code>screen</code> in your terminal then hit enter twice. Now, you need to install unzip.
 +
 +
[[File:Router_tutorial_7.png|400px]]
 
----
 
----
[[File:Router_tutorial_7.png|400px|left]]
+
Next, we need to change the ssh port which by default is set at 22. Type <code>nano /etc/ssh/sshd_config</code> On the port number line, change the port number. Here’s a good website to learn more about it. http://www.linuxlookup.com/howto/change_default_ssh_port
  
Next, we need to change the ssh port which by default is set at 22. Type <code>nano /etc/ssh/sshd_config</code> On the port number line, change the port number. Here’s a good website to learn more about it. [http://www.linuxlookup.com/howto/change_default_ssh_port]
+
[[File:Router_tutorial_8.png|400px]]
 
----
 
----
[[File:Router_tutorial_8.png|400px|left]]
+
After changing the port number, press <code>Ctrl + x</code> then <code>y</code> then enter to save. Now, we need to restart the ssh. Type <code>/etc/init.d/ssh restart</code>
  
After changing the port number, press <code>Ctrl + x<code> then <code>y<code> then enter to save. Now, we need to restart the ssh. Type <code>/etc/init.d/ssh restart</code>
+
[[File:Router_tutorial_9.png|400px]]
 
----
 
----
[[File:Router_tutorial_9.png|400px|left]]
+
Now, we create a new directory for the Demonsaw router. Type <code>mkdir Demonsaw</code> Then go to that new folder: <code>cd Demonsaw</code> Next, we need to get the Demonsaw router in that folder. Type <code>wget https://demonsaw.com/download/demonsaw_router.zip</code>
 +
*Note: Make sure you get the link from the demonsaw website. It may change at any time.
  
Now, we create a new directory for the Demonsaw router. Type mkdir Demonsaw Then go to that new folder: cd Demonsaw Next, we need to get the Demonsaw router in that folder. Type <code>wget "GET NEW URL!"</code>
+
[[File:Router_tutorial_10.png|400px]]
 
----
 
----
[[File:Router_tutorial_10.png|400px|left]]
+
Now, we need to unzip the file. Type <code>unzip demonsaw_router.zip</code>
  
*Note: Make sure you get the link from the demonsaw website. It may change at any time.
+
[[File:Router_tutorial_11.png|400px]]
Now, we need to unzip the file. Type unzip demonsaw_router.zip
 
 
----
 
----
[[File:Router_tutorial_11.png|400px|left]]
+
Now, type <code>ls</code> to list the content of the folder.
  
Now, type <code>ls</code> to list the content of the folder.
+
[[File:Router_tutorial_12.png|400px]]
 
----
 
----
[[File:Router_tutorial_12.png|400px|left]]
+
You now need to navigate to the nix_64 folder since you server is on Debian 8x64. Type <code>cd nix_64</code> Then type <code>ls</code> You now see the content of the folder.
  
You now need to navigate to the nix_64 folder since you server is on Debian 8x64. Type <code>cd nix_64</code> Then type <code>ls</code> You now see the content of the folder.
+
[[File:Router_tutorial_13.png|400px]]
 
----
 
----
[[File:Router_tutorial_13.png|400px|left]]
+
We now need to edit the router’s toml file using the nano command. Type <code>nano demonsaw.toml</code> and edit the file.
 +
In the <nowiki>[[router]]</nowiki> section, copy the address of your Vultr server and change the port number. In the <nowiki>[router.option]</nowiki> section, change the welcome message to whatever message you want. You can now edit the chat rooms (add as many as you want)
 +
In the <nowiki>[[router.router]]</nowiki> section, enable the transfer router by changing from false to true. Use the same IP as your message router as well as the same port unless you want to use other IPs (different instances) for transfers.
  
We now need to edit the router’s toml file using the nano command. Type <code>nano demonsaw.toml</code> and edit the file.
+
[[File:Router_tutorial_14.png|400px]]
In the [[router]] section, copy the address of your vultr server and change the port number. In the [router.option] section, change the welcome message to whatever message you want. You can now edit the chat rooms (add as many as you want)
 
In the [[router.router]] section, enable the transfer router by changing from false to true. Use the same IP as your message router as well as the same port unless you want to use other IP’s (different instances) for transfers.
 
 
----
 
----
[[File:Router_tutorial_14.png|400px|left]]
+
When completed, hit <code>Ctrl +x</code> then <code>y</code> the enter to save. Now, you need to make the demonsaw_router executable. Type <code>chmod +x demonsaw_router</code>
  
When completed, hit <code>Ctrl +x</code> then <code>y</code> the enter to save.Now, you need to make the demonsaw_router executable. Type <code>chmod +x demonsaw_router</code>
+
[[File:Router_tutorial_15.png|400px]]
----
 
[[File:Router_tutorial_15.png|400px|left]]
 
  
Launch the server by typing <code>./demonsaw_router</code>
+
Launch the server by typing <code>./demonsaw_router</code><br/>
To exit the DS4 prompt, use <code>Ctrl + a</code> then <code>Ctrl + d</code> This will allow the server to stay up and running.
+
To exit the DS4 prompt, use <code>Ctrl + a</code> then <code>Ctrl + d</code> This will allow the server to stay up and running.<br/>
The screen command you entered earlier allows for this. You can now exit terminal and test your new private network. If you want to make changes to your toml file, log back in to your server, make the changes then use the <code>screen -r</code> to get back to your DS4 prompt and restart server then press <code>Ctrl + a</code> then <code>Ctrl + d</code> to exit DS4 prompt. Note: When logging back into your vultr server, remember to add new port number: Example below <code>ssh root@REPLACE_WITH_SERVERIP -p 2222</code>
+
The screen command you entered earlier allows for this. You can now exit terminal and test your new private network. If you want to make changes to your toml file, log back in to your server, make the changes then use the <code>screen -r</code> to get back to your DS4 prompt and restart server then press <code>Ctrl + a</code> then <code>Ctrl + d</code> to exit DS4 prompt.
 +
*Note: When logging back into your Vultr server, remember to add new port number: Example: <code>ssh root@REPLACE_WITH_SERVERIP -p 2222</code>
  
 
'''''~tek'''''
 
'''''~tek'''''
 +
 +
==Related Links==
 +
[[Router Setup]]

Latest revision as of 16:26, 21 October 2017

Here I will walk you through how to start your own Router.

Quick and dirty

To get started in less then 5min

This is the script that is going to runhttps://github.com/45khz/road_titan
For Raspberry-pi https://github.com/45khz/pi_titan
  • Answer the questions the script is asking, you're done! Congratz, you now have your very own router!

Advanced setup

How to setup Demonsaw 4 router by Tek

It’s very easy to have your own DS4 private network. Here’s how to do it.
First, you need a VPS. I recommend https://vultr.com They have very good rates and i never had a problem with them.
Once you created your account and added funds to it, you can launch a new instance (they even accept bitcoin).


First, select a location for your server.

Router tutorial 1.png

Most of them are located in the US but there are some in other countries as well.


Next, select the server type. I recommend Debian 8x64

Router tutorial 2.png


Then select server size. I use the $5/month package. Depending on how many people will use your network and how many files will be shared, you can adjust your package as needed.

Router tutorial 3.png


Next, you choose a server name and label. It can be whatever you want.

Router tutorial 4.png

Then, click on Deploy Now. It usually takes 5 to 10 minutes for a server to be ready for use.
When the server is ready, you will have your IP address. Your username is root and a complex password is provided.
Note: This tutorial was made using Linux. If you are using the Windows OS, you will need a little program called “Putty” (freeware) http://www.putty.org/.
Next, open terminal and type su (root)
Type your OS password
Then type ssh root@REPLACE_WITH_SERVERIP
Type yes then copy server password to clipboard and paste.
You are now logged in your Vultr server.


Once logged in, update and upgrade your server OS.

Router tutorial 5.png


Next, install screen. This will allow you to exit terminal after you finish installing your router, without shutting down the server.

Router tutorial 6.png


Now, type screen in your terminal then hit enter twice. Now, you need to install unzip.

Router tutorial 7.png


Next, we need to change the ssh port which by default is set at 22. Type nano /etc/ssh/sshd_config On the port number line, change the port number. Here’s a good website to learn more about it. http://www.linuxlookup.com/howto/change_default_ssh_port

Router tutorial 8.png


After changing the port number, press Ctrl + x then y then enter to save. Now, we need to restart the ssh. Type /etc/init.d/ssh restart

Router tutorial 9.png


Now, we create a new directory for the Demonsaw router. Type mkdir Demonsaw Then go to that new folder: cd Demonsaw Next, we need to get the Demonsaw router in that folder. Type wget https://demonsaw.com/download/demonsaw_router.zip

  • Note: Make sure you get the link from the demonsaw website. It may change at any time.

Router tutorial 10.png


Now, we need to unzip the file. Type unzip demonsaw_router.zip

Router tutorial 11.png


Now, type ls to list the content of the folder.

Router tutorial 12.png


You now need to navigate to the nix_64 folder since you server is on Debian 8x64. Type cd nix_64 Then type ls You now see the content of the folder.

Router tutorial 13.png


We now need to edit the router’s toml file using the nano command. Type nano demonsaw.toml and edit the file. In the [[router]] section, copy the address of your Vultr server and change the port number. In the [router.option] section, change the welcome message to whatever message you want. You can now edit the chat rooms (add as many as you want) In the [[router.router]] section, enable the transfer router by changing from false to true. Use the same IP as your message router as well as the same port unless you want to use other IPs (different instances) for transfers.

Router tutorial 14.png


When completed, hit Ctrl +x then y the enter to save. Now, you need to make the demonsaw_router executable. Type chmod +x demonsaw_router

Router tutorial 15.png

Launch the server by typing ./demonsaw_router
To exit the DS4 prompt, use Ctrl + a then Ctrl + d This will allow the server to stay up and running.
The screen command you entered earlier allows for this. You can now exit terminal and test your new private network. If you want to make changes to your toml file, log back in to your server, make the changes then use the screen -r to get back to your DS4 prompt and restart server then press Ctrl + a then Ctrl + d to exit DS4 prompt.

  • Note: When logging back into your Vultr server, remember to add new port number: Example: ssh root@REPLACE_WITH_SERVERIP -p 2222

~tek

Related Links

Router Setup