Skip to content

Instantly share code, notes, and snippets.

@TGion
Created April 14, 2023 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TGion/f019cab573bd16d6b1830db65b2fdad9 to your computer and use it in GitHub Desktop.
Save TGion/f019cab573bd16d6b1830db65b2fdad9 to your computer and use it in GitHub Desktop.
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