Skip to content

Commit

Permalink
vulpes use dnsproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Nov 25, 2024
1 parent 8ed1f93 commit 2de714a
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 46 deletions.
80 changes: 40 additions & 40 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions hosts/civet/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@
enable = true;
ruleset = ''
table ip nat {
chain prerouting {
type nat hook prerouting priority filter; policy accept;
iifname "ens5" udp dport 40000-50000 counter packets 0 bytes 0 dnat to :4000
}
chain prerouting {
type nat hook prerouting priority filter; policy accept;
iifname "ens5" udp dport 40000-50000 counter packets 0 bytes 0 dnat to :4000
}
}
table ip6 nat {
chain prerouting {
type nat hook prerouting priority filter; policy accept;
iifname "ens5" udp dport 40000-50000 counter packets 0 bytes 0 dnat to :4000
}
}
'';
};
Expand Down
25 changes: 25 additions & 0 deletions hosts/vulpes/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@

tailscale.enable = true;

resolved.enable = false;
dnsproxy = {
enable = true;
flags = [
"--cache"
"--cache-optimistic"
"--edns"
];
settings = {
bootstrap = [
"8.8.8.8"
"119.29.29.29"
"tcp://223.6.6.6:53"
];
listen-addrs = [ "0.0.0.0" ];
listen-ports = [ 53 ];
upstream-mode = "parallel";
upstream = [
"https://1.1.1.1/dns-query"
"h3://dns.alidns.com/dns-query"
"tls://dot.pub"
];
};
};

nginx = {
enable = true;
virtualHosts."vulpes.ocfox.me" = {
Expand Down
3 changes: 2 additions & 1 deletion hosts/whitefox/boot.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ pkgs }:
{
kernelPackages = pkgs.linuxPackages_cachyos;
# kernelPackages = pkgs.linuxPackages_cachyos;
loader = {
timeout = 30;
grub = {
enable = true;
device = "nodev";
Expand Down
2 changes: 1 addition & 1 deletion hosts/whitefox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
inputs.niri.overlays.niri
];

chaotic.scx.enable = true;
# chaotic.scx.enable = true;

xdg = {
mime = {
Expand Down

0 comments on commit 2de714a

Please sign in to comment.