How to configure a firewall for a storj node

Thank you for the informations.

I searched from a lot of online documents on how to configure a firewall for a storj node but i didn’t find nothing, is there a port list or something else ?

When i launch docker et close my ssh session is, Docker still runing on background ?

Thanks by advance

Make an inbound rule to allow any traffic from the any source to the TCP 28967 port and your PC with a Docker as a destination.
If you have any restriction rule for outbound, then make an outbound rule to allow any traffic from any port of your PC to the any host with any port as a destination.

Thank you very much for your help :slight_smile:

1 Like

Hi im still confuse, i use ufw, but i got stil some UFW block 28967 in my ufw.log ?

Is there a kind of config generator or something ?

This is a general Linux question for sure.
The command to allow the TCP 28967 is sudo ufw allow 28967/tcp
To allow the outgoing traffic: sudo ufw allow from 64.63.62.61, where 64.63.62.61 is your local IP

You can read more there: https://linuxize.com/post/how-to-setup-a-firewall-with-ufw-on-ubuntu-18-04/

Thank you very much, i configured my firewall, but i have still some messages inside my ufw.log :

kernel: [404546.588831] [UFW BLOCK] IN=eth0 OUT= MAC=00:50:56:3e:50:0f:28:99:3a:4d:30:af:08:00 SRC=XXX.XXX.XXX.XXX DST=X.XXX.XXX.XX LEN=40 TOS=0x00 PREC=0x00 TTL=58 ID=13491 DF PROTO=TCP SPT=47332 DPT=28967 WINDOW=0 RES=0x00 RST URGP=0

it appears sometimes

To apply the changes:

sudo ufw disable
sudo ufw enable

To show status:

sudo ufw status