If ports are unpriviledged, why can't I access them if I am root in a namespace?
1
vote
1
answer
423
views
I've run
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=1
. However, sudo ip netns exec myvpn unshare -r python -m http.server -b 127.0.0.1 2
does not work. Strangely enough, this does: sudo ip netns exec myvpn unshare python -m http.server -b 127.0.0.1 2
. Why?
**EDIT**: However, both sudo ip netns exec myvpn sudo -u $USER unshare python -m http.server -b 127.0.0.1 2
and sudo ip netns exec myvpn sudo -u system unshare -r python -m http.server -b 127.0.0.1 2
don't work.
Asked by DrownedSuccess
(93 rep)
Jul 10, 2022, 09:28 PM
Last activity: Jul 10, 2022, 09:53 PM
Last activity: Jul 10, 2022, 09:53 PM