bc-guide

How to expose the peer to peer port of Bitcoin Knots on startOS. (0.3.5.1)

1) ssh in to your Start9 Server

2) Copy and paste the following lines of commands one by one:

sudo -i
/usr/lib/startos/scripts/chroot-and-upgrade
apt install simpleproxy -y

3) Now copy and paste the following chunk of code in one command:

echo -e '[Unit]\nDescription=Simpleproxy bitcoind Forward\nWants=podman.service\nAfter=podman.service\n\n[Service]\nType=simple\nRestart=always\nRestartSec=3\nExecStartPre=/bin/bash -c "/bin/systemctl set-environment IP=$(ip route | grep default | awk '\''{print $9}'\'')"\nExecStart=/usr/bin/simpleproxy -L ${IP}:8333 -R bitcoind.embassy:8333\n\n[Install]\nWantedBy=multi-user.target' > /lib/systemd/system/simpleproxy.bitcoind.service

4) Next, copy and paste the following:

systemctl enable simpleproxy.bitcoind.service

5) Then:

exit

6) Finally, activate on your router port forwarding 8333 (router) -> 8333 (start9 server).