MiftyCoin Broker Node Configuration
  • 👋Welcome!
  • Pre-Setup
    • 🧭Prerequisites
    • 🎛️Setup your DNS
    • 🖥️Access your Server
  • 💽Install the Prerequisites
  • SETUP
    • 🔥Setup the Firewall
    • 🐈Update the Tomcat Configuration
    • 🐬Start and Reload Tomcat and MySQL
    • 🌐Webmin Configuration
    • ✳️Setup the Database
    • 👩‍💻Install the Code
    • ⚒️Test your Installation
  • Configuration
    • 🔐Generate an Application Key
    • 💻Get your Laptop/Desktop IPv4 Address
    • ⚙️Configure your Node
    • 👨‍💻Update the Data in your Node
    • 💾Upgrade your Node to the Latest Version
    • ⚒️Test your Configuration
Powered by GitBook
On this page
  1. SETUP

Setup the Firewall

In order to protect your server against common attacks, it is recommended that you setup a firewall. The following instructions assume that you have installed firewalld.

$ vi /etc/firewalld/zones/public.xml

Insert the following lines between the <zone> and </zone> tags:

  <port protocol="tcp" port="10000"/>
  <port protocol="tcp" port="80"/>
  <port protocol="tcp" port="8080"/>
  <port protocol="tcp" port="25"/>
  <port protocol="tcp" port="465"/>
  <port protocol="tcp" port="443"/>
  <forward-port to-port="8080" protocol="tcp" port="80"/>
  <forward-port to-port="8443" protocol="tcp" port="443"/>

Save and exit with :x

$ vi /etc/firewalld/direct.xml

This file should contain the following:

<?xml version="1.0" encoding="utf-8"?>
<direct>
  <rule priority="0" table="filter" ipv="ipv4" chain="OUTPUT">-p tcp -m tcp --dport=25 -j ACCEPT</rule>
  <rule priority="0" table="filter" ipv="ipv4" chain="OUTPUT">-p tcp -m tcp --dport=23 -j ACCEPT</rule>
  <rule priority="0" table="filter" ipv="ipv4" chain="OUTPUT">-p tcp -m tcp --dport=80 -j ACCEPT</rule>
  <rule priority="0" table="nat" ipv="ipv4" chain="OUTPUT">-p tcp -o lo --dport 80 -j REDIRECT --to-ports 8080</rule>
</direct>

Save and exit with :x

After completing the above edits, reload the firewall configuration:

$ firewall-cmd --reload
PreviousInstall the PrerequisitesNextUpdate the Tomcat Configuration

Last updated 2 years ago

🔥