allow_internet_access=False or limit it to specific domains and CIDRs with network.allow_out and network.deny_out. Inbound access to services you run is controlled separately, through public or token-protected sandbox URLs.
Details
Set these options when you create the sandbox.