#!/bin/bash

ufw --force disable

ufw --force reset

ufw allow ssh
ufw allow http
ufw allow https
ufw allow 7759/tcp

ufw allow from 89.233.104.242	#lake-01-es-01
ufw allow from 89.233.104.96	#lake-01-es-02
ufw allow from 94.100.26.25	#lake-01-es-03
ufw allow from 63.250.52.79	#lake-01-es-03-1
ufw allow from 172.93.55.39	#lake-01-es-04
ufw allow from 63.250.52.72	#lake-01-es-04-1
ufw allow from 104.225.217.111	#lake-01-es-05
ufw allow from 89.233.104.149	#lake-01-es-05-1

ufw allow from 89.233.104.138	#lake-01-kibana-01

ufw allow from 104.152.49.195	#lake-01-es-cold-01
ufw allow from 104.152.49.192	#lake-01-es-cold-02
ufw allow from 104.152.49.119	#lake-01-es-cold-03

ufw --force enable
ufw reload

ufw status
