Skip to content

Instantly share code, notes, and snippets.

View Hillsie's full-sized avatar
👋

Hillsie Hillsie

👋
  • Sydney, Australia
  • 06:02 (UTC +10:00)
View GitHub Profile
@Hillsie
Hillsie / gist:127110790882bef277cf113e38acd28b
Last active October 18, 2018 02:45
Uncomplicated Firewall Rules - ufw
# smtp.office365.com. There are a whole lot more ip's to white list including IPv6
### All the smtp.office365.com rules
sudo ufw reject in 587
sudo ufw allow from 127.0.0.1 port 587 to 13.107.9.152/31 port 587
sudo ufw allow from 127.0.0.1 port 587 to 13.107.18.10/31 port 587
sudo ufw allow from 127.0.0.1 port 587 to 13.107.19.10/31 port 587
sudo ufw allow from 127.0.0.1 port 587 to 13.107.128.0/22 port 587
sudo ufw allow from 127.0.0.1 port 587 to 23.103.160.0/20 port 587
sudo ufw allow from 127.0.0.1 port 587 to 23.103.224.0/19 port 587
sudo ufw allow from 127.0.0.1 port 587 to 40.96.0.0/13 port 587