Cat Craft Wiki
  • Welcome!
  • Architecture
  • Technologies
    • Docker
    • Pterodactyl Panel
    • Nginx
    • MariaDB
  • Setup
    • Setting Up Oracle
      • Creating An Instance
      • What Ports To Open?
      • Setting Up Oracle Subnet
    • Setting Up Instance
      • Connecting To Your Instance
      • Attaching Your Block Volume
      • Firewall Setup
    • Setting Up Pterodactyl Standalone
      • Setting Up Instance (Pterodactyl Panel - Standalone)
  • Mod List
    • Summary
    • Performance Mods
    • Quality of Life Mods
    • Auditing
    • Analytics
    • Map
    • Recommended Client Side Mods
  • Resources
    • Java Flags
Powered by GitBook
On this page
  1. Setup
  2. Setting Up Instance

Firewall Setup

PreviousAttaching Your Block VolumeNextSetting Up Pterodactyl Standalone

Last updated 2 years ago

By default, Ubuntu instances come with UFW installed. We have found that UFW has some weird behaviour with Oracles Subnets, so we use the instead.

// Update Packages
sudo apt update

//Removes UFW and then install Firewalld
sudo apt -y purge ufw && sudo apt -y install firewalld 

//Enables Firewalld on startup

sudo systemctl enable firewalld

//Starts Firewalld

sudo systemctl start firewalld

//Restarts Firewalld

sudo systemctl restart firewalld

// Get Status of Firewalld

sudo systemctl status firewalld

// Open Port 

sudo firewall-cmd --permanent --add-port=<port>/<Protocol> TCP or UDP

// Remove Port 

sudo firewall-cmd --permanent --remove-port=<port>/<Protocol> TCP or UDP

// Reload Firewall <- Required after an update to firewall rules 

sudo firewall-cmd --reload
Firewalld package