mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 19:30:16 +00:00
Get iptables output, formatting
This commit is contained in:
parent
eaf78ab6bb
commit
601ce87df0
1 changed files with 9 additions and 7 deletions
|
@ -1,17 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This scripts runs as root
|
||||
echo ":: PiVPN Debug ::"
|
||||
echo ":: Latest commit ::"
|
||||
printf ":::\t\t\t\t\t:::\n::\t\tPiVPN Debug\t\t ::\n"
|
||||
printf ":::\t\t\t\t\t:::\n::\tLatest Commit\t\t\t ::\n:::\t\t\t\t\t:::\n"
|
||||
git --git-dir /etc/.pivpn/.git log -n 1
|
||||
echo ":: Recursive list of files in /etc/openvpn/easy-rsa/pki ::"
|
||||
printf ":::\t\t\t\t\t:::\n::\tRecursive list of files in\t ::\n"
|
||||
printf "::\t/etc/openvpn/easy-rsa/pki\t ::\n:::\t\t\t\t\t:::\n"
|
||||
ls -LR /etc/openvpn/easy-rsa/pki/ -Ireqs -Icerts_by_serial
|
||||
echo ":: /etc/pivpn/* ::"
|
||||
printf ":::\t\t\t\t\t:::\n::\tOutput of /etc/pivpn/*\t\t ::\n:::\t\t\t\t\t:::\n"
|
||||
for filename in /etc/pivpn/*; do
|
||||
echo ":: START $filename ::"
|
||||
cat "$filename"
|
||||
echo ":: END $filename ::"
|
||||
done
|
||||
echo ":: /etc/openvpn/easy-rsa/pki/Default.txt ::"
|
||||
printf ":::\t\t\t\t\t:::\n:: /etc/openvpn/easy-rsa/pki/Default.txt ::\n:::\t\t\t\t\t:::\n"
|
||||
cat /etc/openvpn/easy-rsa/pki/Default.txt
|
||||
echo ":: done ::"
|
||||
printf ":::\t\t\t\t\t:::\n::\tOutput of iptables\t\t ::\n:::\t\t\t\t\t:::\n"
|
||||
iptables -t nat -L -n -v
|
||||
printf ":::\t\t\t\t\t:::\n::\tDebug Output Complete\t\t ::\n:::\t\t\t\t\t:::\n"
|
||||
|
|
Loading…
Reference in a new issue