containers / containers/bubblewrap

Feature request: block access to local network

Open
#340 2 comments 10 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.7k
Forks
386
Avg merge
3d 17h
Merged PRs (30d)
11

Description

Applications that legitimately need network access might exploit servers listening on the local network (link-local, loopback, or private IP ranges), which often do not have any authentication, or have insufficient authentication. One example is the EC2 metadata API, which exposes secrets without authentication.

It would be very useful to block connections to these IPs entirely. One way I think is to set up a network namespace, a NAT-ed tunnel device and a set of iptables rules, but it might be simpler to use seccomp and block all IP addresses in the private range in the `connect()` syscall.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.