From 4f0d99e04c15e999afbe73af3b685a9704927918 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 21 Apr 2023 23:12:25 -0700 Subject: add new archive files --- .../system-connections/XFINITY.nmconnection | 32 ++++++++++++++++++++++ configs/configs_root_dir/etc/resolv.conf | 1 + .../etc/systemd/resolved.conf.d/resolved.conf | 6 ++++ .../etc/systemd/system/dnsmasq_with_logs.service | 20 ++++++++++++++ .../system/monerod_after_bindsto_mullvad.service | 28 +++++++++++++++++++ 5 files changed, 87 insertions(+) create mode 100644 configs/configs_root_dir/etc/NetworkManager/system-connections/XFINITY.nmconnection create mode 100644 configs/configs_root_dir/etc/resolv.conf create mode 100644 configs/configs_root_dir/etc/systemd/resolved.conf.d/resolved.conf create mode 100644 configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service create mode 100644 configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service (limited to 'configs/configs_root_dir/etc') diff --git a/configs/configs_root_dir/etc/NetworkManager/system-connections/XFINITY.nmconnection b/configs/configs_root_dir/etc/NetworkManager/system-connections/XFINITY.nmconnection new file mode 100644 index 0000000..98c3822 --- /dev/null +++ b/configs/configs_root_dir/etc/NetworkManager/system-connections/XFINITY.nmconnection @@ -0,0 +1,32 @@ +[connection] +id=XFINITY +uuid=d358928c-b885-4df9-b283-cc23d71bc4d8 +type=wifi +autoconnect=false +autoconnect-priority=1 +permissions= + +[wifi] +mac-address-blacklist= +mode=infrastructure +ssid=XFINITY + +[wifi-security] +key-mgmt=wpa-eap + +[802-1x] +eap=peap;ttls; +identity=xxx +password=yyy +phase2-auth=gtc + +[ipv4] +dns-search= +method=auto + +[ipv6] +addr-gen-mode=stable-privacy +dns-search= +method=auto + +[proxy] diff --git a/configs/configs_root_dir/etc/resolv.conf b/configs/configs_root_dir/etc/resolv.conf new file mode 100644 index 0000000..8dda3fc --- /dev/null +++ b/configs/configs_root_dir/etc/resolv.conf @@ -0,0 +1 @@ +nameserver 1.1.1.1 diff --git a/configs/configs_root_dir/etc/systemd/resolved.conf.d/resolved.conf b/configs/configs_root_dir/etc/systemd/resolved.conf.d/resolved.conf new file mode 100644 index 0000000..314a2db --- /dev/null +++ b/configs/configs_root_dir/etc/systemd/resolved.conf.d/resolved.conf @@ -0,0 +1,6 @@ +[Resolve] +# https://wiki.archlinux.org/title/Systemd-resolved#mDNS +# It seems it is enabled by default? But my past experience shows not enabled by default? +# seems no need now, not sure why +MulticastDNS=yes +LLMNR=no diff --git a/configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service b/configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service new file mode 100644 index 0000000..5882549 --- /dev/null +++ b/configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service @@ -0,0 +1,20 @@ +[Unit] +Description=dnsmasq - A lightweight DHCP and caching DNS server +Documentation=man:dnsmasq(8) +After=network.target +Before=network-online.target nss-lookup.target +Wants=nss-lookup.target + +[Service] +Type=dbus +BusName=uk.org.thekelleys.dnsmasq +ExecStartPre=/usr/bin/dnsmasq --test +# https://www.linuxquestions.org/questions/arch-29/where-can-i-look-to-see-where-dnsmasq-is-logging-queries-4175531370/#post5302736 +ExecStart=/usr/bin/dnsmasq -q -k --enable-dbus --user=dnsmasq --pid-file +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +PrivateDevices=true +ProtectSystem=full + +[Install] +WantedBy=multi-user.target diff --git a/configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service b/configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service new file mode 100644 index 0000000..fbf3a2e --- /dev/null +++ b/configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service @@ -0,0 +1,28 @@ +[Unit] +Description=Monero Full Node +After=mullvad-daemon.service +# I do not fully understand all the options +#PartOf=mullvad-daemon.service +#Requisite=mullvad-daemon.service +# from tests, BindsTo will override Requisite? Why? +# BindsTo is stronger than PartOf +# https://pychao.com/2021/02/24/difference-between-partof-and-bindsto-in-a-systemd-unit/ +BindsTo=mullvad-daemon.service +# StopPropagatedFrom functionality seems included in PartOf? +# from tests, StopPropagatedFrom also propagate restart? Why? +# difference between StopPropagatedFrom and BindsTo: +# https://github.com/systemd/systemd/commit/ffec78c05bfc2e6458e05ee54256d0d766a36280 +#StopPropagatedFrom=mullvad-daemon.service + +[Service] +User=xyz + +Type=simple +ExecStart=/usr/bin/monerod --non-interactive +StandardOutput=null +StandardError=null + +Restart=always + +[Install] +WantedBy=multi-user.target -- cgit 1.4.1