sys

git clone git://mattcarlson.org/repos/sys.git
Log | Files | Refs

commit 58f9ce2a3db2501bd9ffa87dfa27c70f507bfc91
parent f308c0499363b5645f1ea9cbf63a01c3fba6a5b1
Author: Matthew Carlson <matt@mattcarlson.org>
Date:   Sun,  2 Jun 2024 20:25:14 -0400

added some network settings

Diffstat:
Aetc/NetworkManager/NetworkManager.conf | 4++++
Aetc/NetworkManager/conf.d/unmanaged.conf | 2++
Aetc/NetworkManager/system-connections/eth0.nmconnection | 20++++++++++++++++++++
Aetc/dhcpcd.conf | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
Metc/iwd/main.conf | 4++--
Aetc/runit/sv/dns/run | 2++
Aetc/runit/sv/dns/supervise/lock | 0
Aetc/runit/sv/dns/supervise/pid | 1+
Aetc/runit/sv/dns/supervise/stat | 1+
Aetc/runit/sv/dns/supervise/status | 0
10 files changed, 84 insertions(+), 2 deletions(-)

diff --git a/etc/NetworkManager/NetworkManager.conf b/etc/NetworkManager/NetworkManager.conf @@ -0,0 +1,4 @@ +[main] +plugins=keyfile +[device] +wifi.scan-rand-mac-address=no diff --git a/etc/NetworkManager/conf.d/unmanaged.conf b/etc/NetworkManager/conf.d/unmanaged.conf @@ -0,0 +1,2 @@ +[keyfile] +unmanaged-devices=interface-name:wlan0 diff --git a/etc/NetworkManager/system-connections/eth0.nmconnection b/etc/NetworkManager/system-connections/eth0.nmconnection @@ -0,0 +1,20 @@ +[connection] +id=Wired connection 1 +uuid=c1932c4e-4a04-3946-b371-df71fe37f1d9 +type=ethernet +autoconnect-priority=-999 +interface-name=eth0 +timestamp=1715905429 + +[ethernet] + +[ipv4] +address1=192.168.0.5/24,192.168.0.1 +dns=67.69.234.1;207.164.234.193; +method=manual + +[ipv6] +addr-gen-mode=default +method=auto + +[proxy] diff --git a/etc/dhcpcd.conf b/etc/dhcpcd.conf @@ -0,0 +1,52 @@ +# A sample configuration for dhcpcd. +# See dhcpcd.conf(5) for details. + +# Allow users of this group to interact with dhcpcd via the control socket. +#controlgroup wheel + +# Inform the DHCP server of our hostname for DDNS. +#hostname + +# Use the hardware address of the interface for the Client ID. +#clientid +# or +# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361. +# Some non-RFC compliant DHCP servers do not reply with this set. +# In this case, comment out duid and enable clientid above. +duid + +# Persist interface configuration when dhcpcd exits. +persistent + +# vendorclassid is set to blank to avoid sending the default of +# dhcpcd-<version>:<os>:<machine>:<platform> +vendorclassid + +# A list of options to request from the DHCP server. +option domain_name_servers, domain_name, domain_search +option classless_static_routes +# Respect the network MTU. This is applied to DHCP routes. +option interface_mtu + +# Request a hostname from the network +option host_name + +# Most distributions have NTP support. +#option ntp_servers + +# Rapid commit support. +# Safe to enable by default because it requires the equivalent option set +# on the server to actually work. +option rapid_commit + +# A ServerID is required by RFC2131. +require dhcp_server_identifier + +# Generate SLAAC address using the Hardware Address of the interface +#slaac hwaddr +# OR generate Stable Private IPv6 Addresses based from the DUID +slaac private +# Don't attempt to obtain an IPv4LL address if we failed to get one via DHCP. See RFC 3927. +noipv4ll + +denyinterfaces eth0 diff --git a/etc/iwd/main.conf b/etc/iwd/main.conf @@ -1,3 +1,3 @@ [General] -AddressRandomization=once -AddressRandomizationRange=full +AddressRandomization=disabled +#AddressRandomizationRange=full diff --git a/etc/runit/sv/dns/run b/etc/runit/sv/dns/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/local/bin/dns.sh diff --git a/etc/runit/sv/dns/supervise/lock b/etc/runit/sv/dns/supervise/lock diff --git a/etc/runit/sv/dns/supervise/pid b/etc/runit/sv/dns/supervise/pid @@ -0,0 +1 @@ +1255 diff --git a/etc/runit/sv/dns/supervise/stat b/etc/runit/sv/dns/supervise/stat @@ -0,0 +1 @@ +run diff --git a/etc/runit/sv/dns/supervise/status b/etc/runit/sv/dns/supervise/status Binary files differ.