diff --git a/nixos/hosts/osaka-vultr-01/default.nix b/nixos/hosts/osaka-vultr-01/default.nix index 834afcc1..eeee7a4e 100644 --- a/nixos/hosts/osaka-vultr-01/default.nix +++ b/nixos/hosts/osaka-vultr-01/default.nix @@ -50,13 +50,9 @@ listenPort = 51820; privateKeyFile = "/run/secrets/wireguard_keys/osaka-vultr-01"; postSetup = '' - ${pkgs.iptables}/bin/iptables -A FORWARD -i wireguard0 -j ACCEPT - ${pkgs.iptables}/bin/iptables -A FORWARD -o wireguard0 -j ACCEPT ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE ''; postShutdown = '' - ${pkgs.iptables}/bin/iptables -D FORWARD -i wireguard0 -j ACCEPT - ${pkgs.iptables}/bin/iptables -D FORWARD -o wireguard0 -j ACCEPT ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.100.0.0/24 -o eno3 -j MASQUERADE ''; peers = [ @@ -91,9 +87,5 @@ enable = true; internalInterfaces = [ "wireguard0" ]; externalInterface = "eno3"; - forwardPorts = [ - { sourcePort = 80; destination = "10.100.0.2:80"; } - { sourcePort = 443; destination = "10.100.0.2:443"; } - ]; }; } \ No newline at end of file