on master help sign in
Allow https through ufw firewall in DO guide (fixes #514) (#532)

Co-authored-by: David Kerschner <david@tlon.io>

commit217faea3cf94cb8b1cd119130e20d37e9506a96f author~ritfed-tabryg <75455063+ritfed-tabryg@users.noreply.github.com> dateTue 2 Feb 2021, 20:04 (6 years ago) parent1a38ce8
1 file changed+22−2
content/using/operations/hosting.md+22−2
content/using/operations/hosting.md+22−2
@@ -10,7 +10,25 @@ hidetitle = "true"
1010## Hosting Your Ship In The Cloud
1111The goal of this guide is to have clear and easy to follow best practices for deploying an Urbit node to a server you control in the cloud. Deploying in the cloud allows you to access your Urbit from any device.
1212
13−Most Urbit users start out running their ship locally on one machine in order to play with it, but this means when your machine is offline your Urbit node is offline too (and can't get updates). You can also only access your Urbit from that one machine.
13+Most Urbit users start out running their ship locally on one machine in order to play with it, but this means when <<<<<<< do-ufw-https
14+87
15+ 
16+ - Next we'll configure ufw to allow connections via ssh and to allow Urbit to use the standard web ports when the firewall is enabled.
17+88
18+ 
19+ ```
20+89
21+ 
22+ $ sudo ufw allow OpenSSH
23+90
24+ 
25+ $ sudo ufw allow www
26+91
27+ 
28+
29+92
30+ 
31+=======your machine is offline your Urbit node is offline too (and can't get updates). You can also only access your Urbit from that one machine.
1432
1533This guide uses Digital Ocean as the cloud provider, but others can be used.
1634
@@ -83,11 +101,13 @@ Continuing to follow the DO docs we're going to configure the ufw firewall.
83101 ```
84102 $ sudo ufw app list
85103 ```
104+
86105 - Next we'll configure ufw to allow connections via ssh and to allow Urbit to use the standard web port when the firewall is enabled,
87106 as well as opening a port that we'll later specify for your urbit to use to communicate directly with other ships.
88107 ```
89108 $ sudo ufw allow OpenSSH
90109 $ sudo ufw allow www
110+ $ sudo ufw allow https
91111 $ sudo ufw allow 34543/udp
92112 ```
93113 Note that you can choose any port in place of 34543 for Ames. Just be sure to pass the same port via the `-p` option when starting your ship.
@@ -105,7 +125,7 @@ Continuing to follow the DO docs we're going to configure the ufw firewall.
105125Finally we're ready to install Urbit on your very own server. This part is actually pretty easy, if you haven't installed Urbit locally then the instructions are the exact same as the ones in the Urbit [install doc](@/using/install.md). If you have a local ship already, we're going to install Urbit on the server and then send your local ship up.
106126 - **WARN**: Since Urbit is p2p you don't want to ever run two copies of your ship simultaneously. This is because other nodes that interact with each of your copies will be confused by which one is the most up to date. If you end up accidentally doing this you'll have to do a 'personal breach' described in the [guide to breaches](@/docs/tutorials/guide-to-breaches.md) to fix things.
107127 - The first thing you're going to want to do is shut down your local ship, either with control-d or `|exit` in dojo.
108− - Next we're going to install Urbit on the server and permit it to bind to the web port:
128+ - Next we're going to install Urbit on the server and permit it to bind to the web ports:
109129 ```
110130 $ ssh your_user@your_domain
111131 $ mkdir urbit