Skip to content

Instantly share code, notes, and snippets.

View Hotshot824's full-sized avatar
🥼
reading papers, reading papers, reading papers.

Benson Hotshot824

🥼
reading papers, reading papers, reading papers.
View GitHub Profile
@Hotshot824
Hotshot824 / iptables-script.sh
Last active March 6, 2024 16:04
A basic iptables setup script.
#!/bin/bash
# Flush existing rules
iptables -F
ip6tables -F
# Set default policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT