From 3e6added4c615fa07db88ce5bf5b2e5605b8e12b Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 9 Sep 2022 02:08:43 -0400 Subject: [PATCH] Minor fixes Signed-off-by: Tommy --- README.md | 2 +- .../NetworkManager Trackability Reduction.md | 37 ++++++++----------- external-blogs.sh | 5 ++- layouts/shortcodes/terminal.html | 1 - 4 files changed, 20 insertions(+), 25 deletions(-) delete mode 100644 layouts/shortcodes/terminal.html diff --git a/README.md b/README.md index 8a26179..47febf7 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A practical approach to Privacy and Security The website content (under `/content`) is under the [Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/) license. -The articles originally posted on [wonderfall.dev](https://wonderfall.dev), [seirdy.one](https://seirdy.one), and [akc3n.org](https://akc3n.org) are under the same license. +The articles originally posted on [wonderfall.dev](https://wonderfall.dev), [seirdy.one](https://seirdy.one), and [akc3n.org](https://akc3n.org), [wanderingcomputerer.gitlab.io](https://WanderingComputerer.gitlab.io) are under the same license. The Hugo Framework used to create this website is under the [Apache License](https://github.com/gohugoio/hugo/blob/master/LICENSE). diff --git a/content/os/NetworkManager Trackability Reduction.md b/content/os/NetworkManager Trackability Reduction.md index b85fbe5..aa6b4ca 100644 --- a/content/os/NetworkManager Trackability Reduction.md +++ b/content/os/NetworkManager Trackability Reduction.md @@ -81,24 +81,16 @@ For public networks with captive portals (webpages that must be accessed to gain Activate the connection in question, and then look for `GENERAL.HWADDR` in the output of `nmcli device show`. This represents the MAC address currently in use by the interface, whether randomized or not. It is also visible as "Hardware Address" (or similar) in NetworkManager GUIs under active connection details. -{{< terminal >}} -$ nmcli device show +```bash +$ nmcli device show GENERAL.DEVICE: enp5s0 GENERAL.TYPE: ethernet -GENERAL.HWADDR: XX:XX:XX:XX:XX:XX -… +GENERAL.HWADDR: XX:XX:XX:XX:XX:XX GENERAL.DEVICE: wlp3s0 GENERAL.TYPE: wifi -GENERAL.HWADDR: XX:XX:XX:XX:XX:XX -… -{{< /terminal >}} - -### Sources - -- [MAC Address Spoofing in NetworkManager 1.4.0](https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/) -- [NetworkManager.conf man page](https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html) -- [ArchWiki --- NetworkManager](https://wiki.archlinux.org/title/NetworkManager#Configuring_MAC_address_randomization) +GENERAL.HWADDR: XX:XX:XX:XX:XX:XX +``` --- @@ -124,11 +116,6 @@ This will prevent NetworkManager from setting transient hostnames that may be pr After editing the file, run `sudo nmcli general reload conf` to apply the new configuration. Run `sudo hostnamectl \--transient hostname` to reset the transient hostname. -### Sources - -- [NetworkManager.conf man page](https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html) -- [hostnamectl man page](https://www.freedesktop.org/software/systemd/man/hostnamectl) - --- ## Disable sending hostname to DHCP server @@ -172,18 +159,24 @@ This script will be automatically triggered on connection events to modify the c After initiating first connection with a network: -{{< terminal >}} -$ nmcli c show <connection> | grep dhcp-send-hostname +```bash +$ nmcli c show connection | grep dhcp-send-hostname ipv4.dhcp-send-hostname: no ipv6.dhcp-send-hostname: no -{{< /terminal >}} +``` `` can be the connection name (usually the SSID for WiFi networks) or UUID, obtained from `nmcli c show [--active]`. _Recall that these setting values are set based on the previous connection activation and take effect for the next connection activation._ -### Sources +--- +## Sources +- [MAC Address Spoofing in NetworkManager 1.4.0](https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/) +- [NetworkManager.conf man page](https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html) +- [ArchWiki --- NetworkManager](https://wiki.archlinux.org/title/NetworkManager#Configuring_MAC_address_randomization) +- [NetworkManager.conf man page](https://networkmanager.dev/docs/api/latest/NetworkManager.conf.html) +- [hostnamectl man page](https://www.freedesktop.org/software/systemd/man/hostnamectl) - [NetworkManager: Disable Sending Hostname to DHCP Server](https://viliampucik.blogspot.com/2016/09/networkmanager-disable-sending-hostname.html) - [NetworkManager-dispatcher man page](https://networkmanager.dev/docs/api/latest/NetworkManager-dispatcher.html) - [nmcli man page](https://networkmanager.dev/docs/api/latest/nmcli.html) \ No newline at end of file diff --git a/external-blogs.sh b/external-blogs.sh index c2bbf5f..adcb4ec 100755 --- a/external-blogs.sh +++ b/external-blogs.sh @@ -38,4 +38,7 @@ sed -i '/^tags:.*/a author: Wonderfall' './content/os/Securing OpenSSH with FIDO # His GitHub repo: https://github.com/Seirdy/seirdy.one # Blogs by akc3n currently needs to be manually ported, though a script for it can be written later. He is planning to change his website soon, so it is better to wait till then. -# His GitHub repo: https://github.com/akc3n/akc3ndotorg \ No newline at end of file +# His GitHub repo: https://github.com/akc3n/akc3ndotorg + +# Blogs by WfKe9vLwSvv7rN currently need to be manually ported, as he uses a lot of HTML inside of the source instead of just markdown. +# His GitLab repo: https://gitlab.com/WanderingComputerer/WanderingComputerer.gitlab.io/ \ No newline at end of file diff --git a/layouts/shortcodes/terminal.html b/layouts/shortcodes/terminal.html deleted file mode 100644 index ddaa399..0000000 --- a/layouts/shortcodes/terminal.html +++ /dev/null @@ -1 +0,0 @@ -
{{ trim .Inner "\n" | safeHTML }}
\ No newline at end of file