diff --git a/OCI;-Oracle-Cloud-Instance;-Quick-how-to-enable-DynMap.md b/OCI;-Oracle-Cloud-Instance;-Quick-how-to-enable-DynMap.md index 9140e2e..cf3a290 100644 --- a/OCI;-Oracle-Cloud-Instance;-Quick-how-to-enable-DynMap.md +++ b/OCI;-Oracle-Cloud-Instance;-Quick-how-to-enable-DynMap.md @@ -19,15 +19,19 @@ You should get a page similar to this screenshot : Select "Add Ingress Rules" The first rule we add is for accessing DynMap : -![image](https://user-images.githubusercontent.com/44590042/204861883-ccb02570-469c-4718-b38c-7ce58831edb1.png) +![image](https://user-images.githubusercontent.com/44590042/204894373-10e45081-3f09-4e26-bfb4-5a32c50934fa.png) +So, as the source, we set it to ANY, so : 0.0.0.0/0 +For the port, if you let the default one : 8123 +The protocol is TCP (standard for HTTP) + Then, we also need to allow the access to our Minecraft server (depend on which version you installed and/or mods to allow either clients to connect to your Java server) -![image](https://user-images.githubusercontent.com/44590042/204861959-87421d9e-4db2-44cc-9356-a9ec4f294922.png) +![image](https://user-images.githubusercontent.com/44590042/204894752-1ff93e17-4b96-4ef2-9c2e-3b2cbd3aef5a.png) For all those settings, adapt the destination ports to your needs. After that, you should have some rules like those one : -![image](https://user-images.githubusercontent.com/44590042/204657251-1c7236ee-e01f-4f08-bcbb-ebbc27c32ee0.png) +![image](https://user-images.githubusercontent.com/44590042/204894914-c8284aa1-96b7-4a41-97ab-26e17c8a10dc.png) A little of explanations here : @@ -48,8 +52,26 @@ For this part, there is two ways to achieve this goal : #### First way - Default firewall application : UFW +First, and not mandatory (so you can skip those initials commands), we restrict any inbound connections. ``` -To be completed, later... :D +sudo ufw default allow outgoing +sudo ufw default deny incoming +``` + +Now, we are going to open some ports, first SSH access (in case you change from the default SSH port (22/tcp), adapt the command accordingly), then DynMap (8123/tcp) and the port for the Minecraft server : + +``` +sudo ufw allow ssh +sudo ufw allow 8123/tcp +sudo ufw allow 25565/tcp +sudo ufw allow 19132/udp +``` + +Add any rules you needs, then once done, we enable the firewall with those new rules (and check that everything is OK with the status command) : + +``` +sudo ufw enable +sudo ufw status ```