Skip to content

Instantly share code, notes, and snippets.

View rschmitty's full-sized avatar

Rick Schmitty rschmitty

  • San Francisco, CA
View GitHub Profile
@rschmitty
rschmitty / sysctl.conf
Last active August 10, 2022 18:59
ubuntu sysctl.conf settings
# changes from http://www.cyberciti.biz/faq/linux-kernel-etcsysctl-conf-security-hardening/
# Protect ICMP attacks
net.ipv4.icmp_echo_ignore_broadcasts = 1
# Turn on protection for bad icmp error messages
net.ipv4.icmp_ignore_bogus_error_responses = 1
# Turn on syncookies for SYN flood attack protection
net.ipv4.tcp_syncookies = 1
@rschmitty
rschmitty / 660-init-deb.sh
Created June 29, 2013 17:11
Linode script to register nginx after passenger isntall http://library.linode.com/assets/660-init-deb.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon