X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=brc;h=96e66a883d647c5e69538b53e96b704814f1f14a;hp=fbc1acb2f653cc50467d6aeb9f6ff036cfc32c7a;hb=15f043c2c297176bd623d8a8602e2dc5d67eacd6;hpb=f7a2fe0e56e14b55818245a2e3a2eb68f1cd23de diff --git a/brc b/brc index fbc1acb..96e66a8 100644 --- a/brc +++ b/brc @@ -951,6 +951,10 @@ else } fi +ipdrop() { + s iptables -A INPUT -s $1 -j DROP +} + net-dev-info() { e "lspci -nnk|gr -iA2 net" lspci -nnk|gr -iA2 net @@ -1527,7 +1531,7 @@ t() { declare -gi _seq; _seq+=1 echo "test body" | m mail -s "test mail from $HOSTNAME, $_seq" "${@:-root@localhost}" # for testing to send from an external address, you can do for example - # -aFrom:ian@iank.bid web-6fnbs@mail-tester.com + # -fian@iank.bid -aFrom:ian@iank.bid web-6fnbs@mail-tester.com # note in exim, you can retry a deferred message # s exim -M MSG_ID # MSG_ID is in /var/log/exim4/mainlog, looks like 1ccdnD-0001nh-EN