Proper firewall (ufw) settings

Hi together,

I have setup an ubuntu server (18 LTS) in combination with erpnext v13-beta4 in production mode (will be used as QA instance). I am struggling with setting up the ufw firewall properly.
I have already opened the following ports (ssh, webserver, email): 22,25,143,80,443,587,995,993

Within sites/common_site_config.json the following is set (per default)

“redis_cache”: “redis://localhost:13000”,
“redis_queue”: “redis://localhost:11000”,
“redis_socketio”: “redis://localhost:12000”,
“socketio_port”: 9000,
“webserver_port”: 8000

Is it relevant to open the mentioned ports or is this more like internal communication and for this reason, it is fine to keep them closed?

Those ports are only accessed internally, so you don’t have to change anything

1 Like