Links
Snippets
Replacement for reading /proc/sys/net/ipv4/ip_forward
to determine if IP forwarding
# Linux # via procfs cat /proc/sys/net/ipv4/ip_forward # => 1 sysctl net.inet.ip.forwarding # => net.ipv4.ip_forward = 1 # FreeBSD # use sysctl (procfs deprecated) sysctl net.inet.ip.forwarding # => net.inet.ip.forwarding: 1