Private networks

A private network for your servers

Let your servers, load balancer and database talk to each other on a network that's only yours. Nothing reaches the internet unless you decide it should.

Public and private

Only the front door faces the internet

Your load balancer has a public address. Behind it, your servers, PostgreSQL and S3 storage use private addresses, on a network that only carries your own traffic.

How it works

Easy to set up, hard to get wrong

  • Yours alone

    Each network only carries traffic between your own servers, load balancers and databases.

  • Addresses are automatic

    Attach a server and it gets a network card on the network and the next free address.

  • Your own address range

    Pick any private range from /16 to /28.

  • Attach and detach

    Put a server on a network or take it off again, from the dashboard or the API.

Managed databases

Keep your database off the internet

Attach a managed database to your network when you order it. Your app reaches it on a private address, and its public port stays closed.

Managed databases →
Create a network, attach a server bash
export FAASTIC_TOKEN=fst_…        # read/write, area: networks
export ORG=…  SERVER=…

# Create the network: any private range from /16 to /28
curl -s -X POST "https://api.faastic.com/v1/orgs/$ORG/networks" \
  -H "Authorization: Bearer $FAASTIC_TOKEN" -H "Content-Type: application/json" \
  -d '{"name":"backend","cidr":"10.0.0.0/24"}'

# Attach a server: it gets a NIC on the network and the next free address
export NETWORK=…                  # the id returned above
curl -s -X POST "https://api.faastic.com/v1/orgs/$ORG/networks/$NETWORK/attach" \
  -H "Authorization: Bearer $FAASTIC_TOKEN" -H "Content-Type: application/json" \
  -d "{\"serviceId\":\"$SERVER\"}"

Frequently asked questions

What is a private network?

A network that only carries traffic between your own servers, load balancers and databases. They talk to each other on private addresses, and nothing on it is reachable from the internet unless you decide it should be.

Which address ranges can I use?

Any private range from /16 to /28. Attach a server and it gets a network card and the next free address automatically.

Can I put a managed database on a private network?

Yes. Attach it to your network when you order it. Your app reaches it on a private address, and its public port stays closed.

Can I attach servers I already have?

Yes. Attach a server to a network or take it off again, from the portal or the API.

Put your servers on a private network

Create a network in the dashboard and attach the servers you already have.