---
title: "Restrict Outbound Traffic"
description: "Configure outbound security rules to restrict traffic by adding TCP ports 80 \u0026 8080 for 185.19.28.0/22 and 159.100.240.0/20, enabling password and SSH key setup"
url: https://community.exoscale.com/product/networking/security-group/how-to/restrict-outbound-traffic/
product: "Security Group"
section: product
last_updated: 2026-06-03
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# Restrict Outbound Traffic

By default and without any rule specified, all outbound traffic is authorized. However, as soon as you add your first outbound rule, only the traffic explicitly declared in outbound rules is allowed.

If you need to restrict outbound traffic, please note that the following TCP
rules must be added:

* Destination subnet `185.19.28.0/22`, start port: 80, end port: 80.
* Destination subnet `185.19.28.0/22`, start port: 8080, end port: 8080.
* Destination subnet `159.100.240.0/20`, start port: 80, end port: 80.
* Destination subnet `159.100.240.0/20`, start port: 8080, end port: 8080.

The screenshot below shows a security group with the correct configuration:

![](outbound-security-rules.png "Outbound Rules")

These two rules are required for:

* Setting the root (Linux) or administrator (Windows) account password on first boot.
* Deploying your SSH key (Linux).
