]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/bin/netaudit
newt: pipe output of h comnmand through $pager
[plan9front.git] / rc / bin / netaudit
index 075e73a07ba09030b8cce5692fa2a082bc582ad6..921efa9c2f6d2f25c419dd748062a0ff49c444f3 100755 (executable)
@@ -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