Tag Archives: Security

Non-root Process Listening on Priviledged Ports

Allow a user application to bind to a port below 1024 using POSIX File Capabilities: setcap cap_net_bind_service=+eip /path/to/the/executable

Posted in General | Tagged , , | Leave a comment

Blocking Traffic Using Null Route

Blocking network traffic for a specific host without using iptables: ip route add blackhole 10.0.0.1/32 To remove the rule: ip route del blackhole 10.0.0.1/32 Compared to iptables a null route has no effect on loopback addresses (127.0.0.0/8).

Posted in General | Tagged , | Leave a comment

Erase Old Files

Erase files older than 7 days: find -mtime +7 -exec rm -rf {} \;

Posted in General | Tagged , | Leave a comment