mirror of
https://github.com/PrivSec-dev/privsec.dev
synced 2025-02-20 18:31:35 -05:00
Minor fixes
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
0ce095edc8
commit
3e6added4c
@ -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).
|
||||
|
||||
|
@ -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 >}}
|
||||
$ <kbd>nmcli device show</kbd>
|
||||
```bash
|
||||
$ nmcli device show
|
||||
GENERAL.DEVICE: enp5s0
|
||||
GENERAL.TYPE: ethernet
|
||||
<strong>GENERAL.HWADDR: XX:XX:XX:XX:XX:XX</strong>
|
||||
…
|
||||
GENERAL.HWADDR: XX:XX:XX:XX:XX:XX
|
||||
|
||||
GENERAL.DEVICE: wlp3s0
|
||||
GENERAL.TYPE: wifi
|
||||
<strong>GENERAL.HWADDR: XX:XX:XX:XX:XX:XX</strong>
|
||||
…
|
||||
{{< /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 >}}
|
||||
$ <kbd>nmcli c show <strong><connection></strong> | grep dhcp-send-hostname</kbd>
|
||||
```bash
|
||||
$ nmcli c show connection | grep dhcp-send-hostname
|
||||
ipv4.dhcp-send-hostname: no
|
||||
ipv6.dhcp-send-hostname: no
|
||||
{{< /terminal >}}
|
||||
```
|
||||
|
||||
`<connection>` 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)
|
@ -39,3 +39,6 @@ sed -i '/^tags:.*/a author: Wonderfall' './content/os/Securing OpenSSH with FIDO
|
||||
|
||||
# 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
|
||||
|
||||
# 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/
|
@ -1 +0,0 @@
|
||||
<pre><code><samp>{{ trim .Inner "\n" | safeHTML }}</samp></code></pre>
|
Loading…
Reference in New Issue
Block a user