Skip to content

Instantly share code, notes, and snippets.

@laszaroh
laszaroh / rc.firewall.desktop.generic
Created November 18, 2018 22:17
Basic iptables configuration
# url: http://www.rlworkman.net/conf/firewall/rc.firewall.desktop.generic
# Define variables
IPT=$(which iptables) # change if needed
EXT_IF=eth0 # external interface (connected to internet)
FIREWALL_CONF=/etc/iptables.conf
# Enable TCP SYN Cookie Protection
if [ -e /proc/sys/net/ipv4/tcp_syncookies ]; then