This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| unraid:virtual:hoobsf33 [2021/04/10 15:59] – dirk | unraid:virtual:hoobsf33 [2021/07/13 11:18] (current) – dirk | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| * Description: | * Description: | ||
| * CPU Mode: Host Passthrough | * CPU Mode: Host Passthrough | ||
| - | * Logical CPUs: 2 | + | * Logical CPUs: 1 |
| * Internal Memory: 1024 | * Internal Memory: 1024 | ||
| * Max Memory: 1024 | * Max Memory: 1024 | ||
| Line 42: | Line 42: | ||
| ===== Setup ===== | ===== Setup ===== | ||
| ==== Update Packages ==== | ==== Update Packages ==== | ||
| - | < | + | < |
| - | sudo apt-get dist-upgrade</ | + | |
| - | + | ||
| - | ==== Install SSH Server ==== | + | |
| - | < | + | |
| ==== Create ssh-rsa key auth ==== | ==== Create ssh-rsa key auth ==== | ||
| * In home directory < | * In home directory < | ||
| * authorized_keys file needs to have keys in them. Copy over from harddrive, external drive, or create them. | * authorized_keys file needs to have keys in them. Copy over from harddrive, external drive, or create them. | ||
| - | * When making keys on clients < | ||
| - | * New things for keys: | ||
| - | * So, ssh-keygen no longer creates the keys with the headers on them. Seems to be no big deal for ssh but Cyberduck borked. | ||
| - | * To make private keys with headers for Cyberduck:< | ||
| - | openssl rsa -in id_rsa -pubout -out id_rsa.test | ||
| - | ssh-keygen -f id_rsa.test -i -mPKCS8</ | ||
| - | * Links: | ||
| - | * https:// | ||
| - | * https:// | ||
| * Turn off Password Auth< | * Turn off Password Auth< | ||
| - | PasswordAuthentication no</ | + | PasswordAuthentication no</ |
| - | ==== Reboot ==== | + | * Also had to make similar changes in the file that is included in /etc/ssh/sshd_config.d/*.conf |
| - | < | + | |
| - | + | * Then had to make sure the user home folder was 700 (which it was), the .ssh folder was 700 (which | |
| - | ==== Install Pi-hole ==== | + | |
| - | < | + | |
| - | * Select Google (we will remove it later) | + | |
| - | * Ok to default " | + | |
| - | * Ok to IPv4 and IPv6 | + | |
| - | * Yes to Static | + | |
| - | * Yes to Web Admin Interface | + | |
| - | * Yes to Web Server | + | |
| - | * Yes to queries | + | |
| - | * Show everything | + | |
| - | * Change password < | + | |
| - | + | ||
| - | ==== Install Unbound ==== | + | |
| - | < | + | |
| - | * write config | + | |
| - | < | + | |
| - | < | + | |
| - | | + | |
| - | # logfile: "/ | + | |
| - | verbosity: 0 | + | |
| - | + | ||
| - | interface: 127.0.0.1 | + | |
| - | port: 5335 | + | |
| - | do-ip4: yes | + | |
| - | do-udp: yes | + | |
| - | do-tcp: yes | + | |
| - | + | ||
| - | # May be set to yes if you have IPv6 connectivity | + | |
| - | do-ip6: no | + | |
| - | + | ||
| - | # You want to leave this to no unless you have *native* IPv6. With 6to4 and | + | |
| - | # Terredo tunnels your web browser should favor IPv4 for the same reasons | + | |
| - | prefer-ip6: no | + | |
| - | + | ||
| - | # Use this only when you downloaded | + | |
| - | # If you use the default dns-root-data package, unbound will find it automatically | + | |
| - | # | + | |
| - | + | ||
| - | # Trust glue only if it is within the server's authority | + | |
| - | harden-glue: | + | |
| - | + | ||
| - | # Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS | + | |
| - | harden-dnssec-stripped: | + | |
| - | + | ||
| - | # Don' | + | |
| - | # see https:// | + | |
| - | use-caps-for-id: | + | |
| - | + | ||
| - | # Reduce EDNS reassembly buffer size. | + | |
| - | # Suggested by the unbound man page to reduce fragmentation reassembly problems | + | |
| - | edns-buffer-size: | + | |
| - | + | ||
| - | # Perform prefetching of close to expired message cache entries | + | |
| - | # This only applies to domains that have been frequently queried | + | |
| - | prefetch: yes | + | |
| - | + | ||
| - | # One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1. | + | |
| - | num-threads: | + | |
| - | + | ||
| - | # Ensure kernel buffer is large enough to not lose messages in traffic spikes | + | |
| - | so-rcvbuf: 1m | + | |
| - | # Ensure privacy of local IP ranges | + | ===== HOOBS Prereq ===== |
| - | | + | < |
| - | private-address: 169.254.0.0/ | + | |
| - | private-address: 172.16.0.0/12 | + | |
| - | private-address: 10.0.0.0/8 | + | |
| - | private-address: | + | |
| - | private-address: | + | |
| - | + | ||
| - | ==== Point Pi-hole to Unbound ==== | + | |
| - | * log into pi-hole | + | |
| - | * go to Settings -> DNS | + | |
| - | * uncheck Google servers and add Custom 127.0.0.1# | + | |
| - | * Save | + | |
| - | ==== Fix domain pointing to /admin page ==== | + | ===== Install HOOBS ===== |
| - | * To redirect the root address to /admin, add the following line to / | + | |
| - | < | + | < |
| - | * Links: | + | ==== Connect ==== |
| - | * https://www.youtube.com/ | + | |
| - | * https://www.reddit.com/r/ | + | * Create User: Dirk Rockface |
| + | * Install Plugins | ||
| + | * Nest (Hoobs Certified) 4.5.3 at time of this wiki | ||
| + | * myQ (Hoobs Certified) 2.6.2 at time of this wiki | ||
| + | ==== Plugins Setup==== | ||
| + | === myQ === | ||
| + | * use credentials from myQ account. | ||
| + | === Nest === | ||
| + | * Open a Chrome browser tab in Incognito Mode (or clear your cache). | ||
| + | * Open Developer Tools (View/Developer/ | ||
| + | * Click on ' | ||
| + | * In the ' | ||
| + | * Go to home.nest.com, and click 'Sign in with Google' | ||
| + | * One network call (beginning with iframerpc) will appear in the Dev Tools window. Click on it. | ||
| + | * In the Headers tab, under General, copy the entire Request URL (beginning with https://accounts.google.com, ending with nest.com). This is your " | ||
| + | * In the ' | ||
| + | * Several network calls will appear in the Dev Tools window. Click on the last iframe call. | ||
| + | * In the Headers tab, under Request Headers, copy the entire cookie (include the whole string which is several lines long and has many field/value pairs - do not include the cookie: name). This is your " | ||
| + | * In the ' | ||
| + | * Click on the last issue_jwt call. | ||
| + | * In the Headers tab, under Request Headers, copy the entire x-goog-api-key (do not include the x-goog-api-key: | ||
| + | * Do not log out of home.nest.com, | ||