Skip to content
Discussion options

You must be logged in to vote

hi @eriksjolund ,
thanks for the hint.

I found a perhaps ugly but working solution. If I set the CIDR to a conflicting range, the container will not have access to the host but it can connect to other networks, like:

podman run -ti --network slirp4netns:cidr=192.168.1.0/24 myimage sh

telnet 192.168.1.1 443
Host is unreachable

telnet google.com 443
Connected to google.com

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by GBBx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants