Rootless Pings in Rust
bou.ke
Rootless Pings in Rust
1–10 of 87 posts
Re: Rootless Pings in Rust
#2- Linux overwrites identifier and checksum fields
- macOS requires correct checksum calculation
- macOS includes IP header in response, Linux doesn't
I think this is the kind of subtle difference that would trip up even experienced programmers
Re: Rootless Pings in Rust
#3Re: Rootless Pings in Rust
#4So... why? Should I now add "in C" or "in assembly" to the end of all my article titles?
Re: Rootless Pings in Rust
#5I struggled in vain to see what this has to do with rust. The answer is nothing other than the 4 lines of sample code shown are in Rust. The actually useful nugget of knowledge contained therein (one can create ICMP packets without being root on MacOS or Linux) is language agnostic. So... why? Should I now add "in C" or "in assembly" to the end of all my article titles?
Re: Rootless Pings in Rust
#6I struggled in vain to see what this has to do with rust. The answer is nothing other than the 4 lines of sample code shown are in Rust. The actually useful nugget of knowledge contained therein (one can create ICMP packets without being root on MacOS or Linux) is language agnostic. So... why? Should I now add "in C" or "in assembly" to the end of all my article titles?
Re: Rootless Pings in Rust
#7Re: Rootless Pings in Rust
#8I struggled in vain to see what this has to do with rust. The answer is nothing other than the 4 lines of sample code shown are in Rust. The actually useful nugget of knowledge contained therein (one can create ICMP packets without being root on MacOS or Linux) is language agnostic. So... why? Should I now add "in C" or "in assembly" to the end of all my article titles?
Re: Rootless Pings in Rust
#91. You can just add the capability CAP_NET_RAW to your process, at which point it can ping freely
2. There's a sysctl that allows for unprivileged ping "net.ipv4.ping_group_range" which can be used at the host level to allow different groups to use ICMP ping.