summaryrefslogtreecommitdiff
path: root/etc
AgeCommit message (Collapse)Author
2025-08-02dnsmasq use many servers and ignore resolv.confXiao Pan
man dnsmasq wrote "By default, dnsmasq will send queries to any of the upstream servers it knows about and tries to favour servers that are known to be up." There's a --strict-order option to make bottom server=... as highest priority, see [this stackexchange question][0]. I think this default behavior seems not very good, it send some unnecessary dns queries. But tcpdump shows there's not much dns query going on any way so maybe not a problem. [0]: https://unix.stackexchange.com/q/500900
2025-08-02add defualt dnsmasq.confXiao Pan
2025-08-02metaXiao Pan
2025-08-02swtich to dnsmasq for VPN client DNSXiao Pan
2025-07-30metaXiao Pan
2025-07-30remove phantun and switch to mimicXiao Pan
2025-07-28metaXiao Pan
2025-07-28SIT 6in4 tunnel make sure use ens18Xiao Pan
Because ens19 seems no network, if use ens19 then ipv6 will not work. The config in the past sometimes ipv6 not work I think is due to somehow SIT 6in4 tunnel sometimes use ens19 instead of ens18.
2025-07-25nft remove comment no needXiao Pan
2025-07-25nft use iifname instead of iif for ipv6netXiao Pan
iif need the interface exist, iifname don't need, more see man nft. If use iif, after reboot when nft start, ipv6net interface seems do not exist, so nft will error and failed to start. Use iifname can fix this issue.
2025-07-24metaXiao Pan
2025-07-24add and enable phantun_server serviceXiao Pan
2025-07-24nft use /etc/services phantun port name instead of 59083 port numberXiao Pan
2025-07-24swgp go through phantun, more see vc notesXiao Pan
2025-07-15sudoers pacdiffXiao Pan
related upstream PR and commit: https://github.com/sudo-project/sudo/pull/427 https://github.com/sudo-project/sudo/commit/7c121ff8340c6fa551ba4997dde9d450cf74e40c
2025-07-15pacdiffXiao Pan
2025-07-13nft accept monerod-p2p port to forward to inspXiao Pan
2025-07-13nft define a set variable for two ip to use, allow port forward monerod-p2pXiao Pan
2025-07-11remove ssh-isp portXiao Pan
2025-07-09nft masquerade 6in4 sit tunnel network interface name ipv6net so insp wg to ↵Xiao Pan
ba can use ipv6
2025-07-08fix metaXiao Pan
2025-07-08metaXiao Pan
2025-07-08ba network, need 6in4 sit tunnel see arch wikiXiao Pan
2025-07-08init baXiao Pan
2025-07-04metaXiao Pan
2025-07-04init xyzru VPSXiao Pan
2025-07-04nft config studio wg swgp wg to ca, studio use ::b ip6, ca use ::a ip6 so it ↵Xiao Pan
can do acme.sh
2025-07-04metaXiao Pan
2025-07-04use wg ip for flylightning.xyz to temp workaround the issue of ca `ssh -6 ↵Xiao Pan
gitolite@flylightning.xyz` and `ssh -4 gitolite@flylightning.xyz` both error; note this is after me config studio and ca wg forward
2025-05-02pacdiffXiao Pan
2025-05-02Add nft rules to port forward insp xmrd p2p when insp VPN into itXiao Pan
Also added monero-p2p port number to /etc/services for nft to use
2025-04-13pacdiffXiao Pan
2025-03-30metaXiao Pan
2025-03-30dovecot switch to track only one config fileXiao Pan
2025-03-29pacdiffXiao Pan
2025-03-04pacdiffXiao Pan
2025-02-28postfix hide client hostname and ipXiao Pan
Details see `man postconf.5`. It seems smtpd_hide_client_session config for port 25 smtp MTA this must be no, port 587 and 465 (submission and submissions) MTU can be set to yes in master.cf. Port 25 smtp MTA receives messages from others to me. Port 587 and 465 (submission and submissions) MTU receives messages from me to others. main.cf is configs for all. master.cf I can set configs specifically to submission and submissions. Before, when others receives my email that send from my laptop, it will leak my laptop's hostname and ip in one of its `Received` header like `Received: from <my-hostname> (<my-domain-name> [<my-ip>]) by mail.flylightning.xyz ...`. After set smtpd_hide_client_session to yes, that line changed to `Received: by mail.flylightning.xyz ...`, note there's no `from ...` that leaks my ip.
2025-02-24IPv6AcceptRA=false to fix ipv6 not work sometimesXiao Pan
Sometimes, there's a new route appear in my `ip -6 r`: default nhid 715021918 via fe80::284:e5ff:fe28:829d dev eth0 proto ra metric 1024 expires 24sec pref medium There's also these lines appear in my `ip -a`: inet6 2606:a8c0:3:8cd:246:d3ff:fed8:155d/64 scope global dynamic mngtmpaddr noprefixroute valid_lft 86398sec preferred_lft 14398sec It seems sometimes Crunchbits maybe send some ipv6 RA (router advertisement) message to my VPS and cause my VPS to add these lines. This will break ipv6 of my VPS. I searched online, it seems I can use `IPv6AcceptRA=false` in my systemd network config file, and it fixed the issue. Not sure if this is the correct way. I also don't quite understand RA. Maybe another way to fix the issue is to accept RA and let is to configure my ipv6 correctly somehow. But this RA message only appears sometimes and not always. So I think just disable it maybe is a better way. More links related to RA: https://unix.stackexchange.com/q/766565 https://unix.stackexchange.com/q/639260
2025-02-22pacdiffXiao Pan
2025-02-22cannot ping outside ipv6 issue seems fixed without me doing anything, not ↵Xiao Pan
sure how or why
2025-02-22force ipv4 DNS because cannot ping outside ipv6Xiao Pan
2025-02-08Crunchbits changed my ipv4Xiao Pan
2025-01-13add french locale, maybe usefulXiao Pan
2024-12-12pacdiffXiao Pan
2024-12-12pacdiffXiao Pan
2024-12-01pacdiffXiao Pan
2024-11-02pacdiffXiao Pan
2024-10-25pacdiffXiao Pan
2024-09-14forget to change opt-level to 3Xiao Pan
2024-09-14pacdiffXiao Pan