Skip to content

Instantly share code, notes, and snippets.

View ReifiedException's full-sized avatar

Igor Karpov ReifiedException

View GitHub Profile
@ReifiedException
ReifiedException / freebsd_ovh_vps.md
Created June 7, 2024 07:25 — forked from c0m4r/freebsd_ovh_vps.md
FreeBSD installation on OVH VPS
@ReifiedException
ReifiedException / cheatsheet-elasticsearch.md
Created December 8, 2020 13:46 — forked from ruanbekker/cheatsheet-elasticsearch.md
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@ReifiedException
ReifiedException / pf.conf
Created November 18, 2020 14:22 — forked from fcayci/pf.conf
Sample FreeBSD pf firewall configuration
# /etc/pf.conf
##########################################
# MACROS
##########################################
WANIF = "vlan1337"
LANIF = "en0"
VPNIF = "{tun0, tun1}"
@ReifiedException
ReifiedException / iptables
Created September 20, 2017 13:43 — forked from UtahDave/iptables
An example of using the Salt peer interface to query web server IP addresses and add them to an iptables config.
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT