Skip to content

Instantly share code, notes, and snippets.

@TGion
Created April 14, 2023 13:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Some aliases and nice bash prompt
export PS1='[\u@\H \w]\$ '
# Alias
alias show.tables="pfctl -vvsTables"
alias show.badhosts="pfctl -t badhosts -T show"
alias show.pf="tcpdump -n -e -ttt -i pflog0"
alias show.pflog="tcpdump -n -e -ttt -r /var/log/pflog"
alias gh="history|grep"
alias add.badhosts="pfctl -t badhosts -T add"
alias reload.pf="pfctl -f /etc/pf.conf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment