X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=rc%2Fbin%2Fnetaudit;h=921efa9c2f6d2f25c419dd748062a0ff49c444f3;hb=84d8e75a589868e060b2d418eae38caaad91ad5a;hp=075e73a07ba09030b8cce5692fa2a082bc582ad6;hpb=df66638fb5c1e7a1b35bcbc5c1dafcf80b21e1e4;p=plan9front.git diff --git a/rc/bin/netaudit b/rc/bin/netaudit index 075e73a07..921efa9c2 100755 --- a/rc/bin/netaudit +++ b/rc/bin/netaudit @@ -38,6 +38,16 @@ fn checknet { } if not echo ' we are in ipnet='^$ipnet + ipgw=`{ndb/ipquery sys $sysname ipgw | sed 's/^ipgw=//'} + if(~ $ipgw '' '::'){ + echo ' we do not have an internet gateway, no ipgw= entry' + } + if not { + if(! ~ $ipgw *.*.*.* *:*:*:*:*:*:*:* *::*) + echo ' ipgw='$ipgw 'does not look like an ip address' + if not + echo ' ipgw='$ipgw 'looks ok' + } dns=`{ndb/ipquery sys $sysname dns | sed 's/^dns=//'} if(~ $dns '') echo ' no dns= entry' @@ -90,6 +100,7 @@ fn checkauth { echo ' someone is listening on port 567' echo ' run auth/debug to test the auth server' } + echo ' run auth/asaudit to verify auth server configuration' } } @@ -103,4 +114,4 @@ fn checksec { checkhost checknet checkauth -checksec +#checksec