Skip to content

Instantly share code, notes, and snippets.

View justinfarmer14's full-sized avatar

Justin Farner justinfarmer14

View GitHub Profile
@justinfarmer14
justinfarmer14 / centos_firewall.sh
Last active October 18, 2021 00:33 — forked from mortenbra/centos_firewall.sh
Basic firewall (iptables) script for CentOS with openings for SSH, HTTP and HTTPS
#!/bin/bash
# see http://oracle-base.com/articles/linux/linux-firewall.php
# Set the default policies to allow everything while we set up new rules
# Prevents cutting yourself off when running from remote SSH
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

Keybase proof

I hereby claim:

  • I am justinfarmer14 on github.
  • I am gam3vidz (https://keybase.io/gam3vidz) on keybase.
  • I have a public key ASADA7DheVv7zjrz7ZZlaHKQaFGgfZZxRw_QRiOEWOLnJQo

To claim this, I am signing this object: