INPUTchain to block access to apps running in a docker container as it's not a local destination but a
FORWARDdestination. By default when you map a port into a docker container it opens up to
anyhost. To restrict access we need to add our rules in the
18.104.22.168for secure Docker engine communication. This port is required for Docker Machine to work. Docker Machine is used to orchestrate Docker hosts. As this is a local service we use the
22.214.171.124, which is the SSH port used by the
126.96.36.199, the factomd API port
0.0.0.0, the factomd Control panel
0.0.0.0, the factomd testnet port
iptableswith the optional setting at line 5:
/home/your_username/.sshbefore entering your passphrase.
ssh-rsaand ends with
==followed by the key comment. On your node, create your .ssh folder if it does not already exist. Now create and/or edit the file
./ssh/authorized_keysand paste your key here.
/etc/docker/daemon.json. Create this file if it doesn't exist. Copy the following into the file:
/etc/systemd/system/docker.service.d/and an override file called
override.conf(which is open on your terminal now). Copy and paste the following:
override.conffile has been loaded.
factom_keys. Please create these before joining the swarm:
/var/lib/docker/volumes/factom_keys/_databy running (if the file is where you're currently at):
factomdcontainer again with
docker start factomd.
docker ps. A container with the image
factominc/factomd:vX.xxshould show up where
vX.xxis your current Factomd version.
factom-cli -s=localhost:port newecaddress
factom-cli -s=localhost:port balance ECXXXXXXXXXXXXXX
factom-cli -s=localhost:port exportaddresses
~/.profilewith for example nano:
signedwithed25519. These are the files you need to generate your server identity.
~/factom/m2and rename to
factom-walletdin a terminal window. The factom-cli commands in important.sh need to be run. Change all lines with
factom-cli …to now read
factom-cli -s=localhost:port .... Import the EC address to your wallet:
important.conffile into your
factomd.conf, normally located at