Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- === Rootless on Low Port ===
- As root, run the following. This will protect ports below 80, like SSH:
- echo 80 > /proc/sys/net/ipv4/ip_unprivileged_port_start
- As a user run the following tests:
- ssh fatherlinux@fedora.dc2.crunchtools.com
- podman run -it -id -p 80:80 ubi8 bash
- Output:
- 7467a65cd26cd4228196045141eb84aa021a0f7b8d761d2b48bea8933bd7a1b7
- Run this to test failure:
- podman run -it -id -p 79:79 ubi8 bash
- Output:
- Error: error from slirp4netns while setting up port redirection: map[desc:bad request: add_hostfwd: slirp_add_hostfwd failed]
Add Comment
Please, Sign In to add comment