Compare commits
16 Commits
8ff15e4aba
...
2ee23bc03a
Author | SHA1 | Date |
---|---|---|
Egor Savkin | 2ee23bc03a | |
Egor Savkin | 60903e955f | |
Egor Savkin | 4d7e836f07 | |
Egor Savkin | e7570aa4ce | |
Egor Savkin | eab2d70941 | |
Egor Savkin | cbb077c441 | |
Egor Savkin | 42b3d6ccf3 | |
Egor Savkin | b1fb18a6c5 | |
Egor Savkin | 29352302be | |
Egor Savkin | 47e3d4cb88 | |
Egor Savkin | 5066b8cb9e | |
Egor Savkin | 74ecfdb430 | |
Egor Savkin | 8e5a45ac91 | |
Egor Savkin | ef4fd68829 | |
Egor Savkin | cd2eac023e | |
Egor Savkin | 05e3a47208 |
|
@ -92,16 +92,12 @@ in
|
|||
firewall = {
|
||||
allowedTCPPorts = [ 53 80 443 2222 7402 ];
|
||||
allowedUDPPorts = [ 53 67 500 4500 ];
|
||||
trustedInterfaces = [ netifLan netifUSA ];
|
||||
trustedInterfaces = [ netifLan ];
|
||||
logRefusedConnections = false;
|
||||
extraCommands = ''
|
||||
iptables -A INPUT -s 5.78.86.156 -p gre -j ACCEPT
|
||||
iptables -A INPUT -s 5.78.86.156 -p ah -j ACCEPT
|
||||
'';
|
||||
extraStopCommands = ''
|
||||
iptables -D INPUT -s 5.78.86.156 -p gre -j ACCEPT
|
||||
iptables -D INPUT -s 5.78.86.156 -p ah -j ACCEPT
|
||||
'';
|
||||
};
|
||||
useDHCP = false;
|
||||
interfaces."${netifWan}".useDHCP = true; # PCCW - always wants active DHCP lease or cuts you off
|
||||
|
@ -539,6 +535,11 @@ in
|
|||
"/kasli/192.168.1.70"
|
||||
"/kasli-customer/192.168.1.75"
|
||||
"/stabilizer-customer/192.168.1.76"
|
||||
|
||||
# Google can't do DNS geolocation correctly and slows down websites of everyone using
|
||||
# their shitty font cloud hosting. In HK, you sometimes get IPs behind the GFW that you
|
||||
# cannot reach.
|
||||
"/fonts.googleapis.com/142.250.207.74"
|
||||
];
|
||||
|
||||
dhcp-match = "set:ipxe,175"; # https://forum.ipxe.org/showthread.php?tid=6077
|
||||
|
@ -1264,6 +1265,7 @@ in
|
|||
services.postfix = {
|
||||
mapFiles.sender_transport = pkgs.writeText "sender_transport" ''
|
||||
@m-labs-intl.com intltunnel:
|
||||
* :
|
||||
'';
|
||||
config = {
|
||||
sender_dependent_default_transport_maps = "hash:/var/lib/postfix/conf/sender_transport";
|
||||
|
@ -1291,8 +1293,7 @@ in
|
|||
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud30;
|
||||
extraApps = { inherit (config.services.nextcloud.package.packages.apps) forms; };
|
||||
package = pkgs.nextcloud29;
|
||||
hostName = "files.m-labs.hk";
|
||||
https = true;
|
||||
maxUploadSize = "2G";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
$TTL 7200
|
||||
|
||||
@ SOA ns.m-labs-intl.com. sb.m-labs.hk. (
|
||||
2024101401
|
||||
2024081503
|
||||
7200
|
||||
3600
|
||||
86400
|
||||
|
|
Loading…
Reference in New Issue