Compare commits
20 Commits
2ee23bc03a
...
8ff15e4aba
Author | SHA1 | Date |
---|---|---|
Egor Savkin | 8ff15e4aba | |
Egor Savkin | 7131a54bb6 | |
Egor Savkin | bbfee50b53 | |
Egor Savkin | 4c300688d9 | |
Egor Savkin | 45b53991d1 | |
Egor Savkin | 5a408bdb63 | |
Egor Savkin | 2f1c794ac0 | |
Egor Savkin | 8068eb96b3 | |
Egor Savkin | 7b98b49fcd | |
Egor Savkin | 367d5a8c4c | |
Egor Savkin | 5fb951ba3c | |
Egor Savkin | 6832725535 | |
Egor Savkin | 4c9dff8d95 | |
Egor Savkin | f909cd71a3 | |
Egor Savkin | 3959250f0b | |
Sébastien Bourdeauducq | 476f5d1d6c | |
Sebastien Bourdeauducq | ecf40fb2db | |
Sébastien Bourdeauducq | 34102e66ad | |
Sébastien Bourdeauducq | 93ae830468 | |
Sébastien Bourdeauducq | 8af66556b9 |
|
@ -92,12 +92,16 @@ in
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [ 53 80 443 2222 7402 ];
|
allowedTCPPorts = [ 53 80 443 2222 7402 ];
|
||||||
allowedUDPPorts = [ 53 67 500 4500 ];
|
allowedUDPPorts = [ 53 67 500 4500 ];
|
||||||
trustedInterfaces = [ netifLan ];
|
trustedInterfaces = [ netifLan netifUSA ];
|
||||||
logRefusedConnections = false;
|
logRefusedConnections = false;
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
iptables -A INPUT -s 5.78.86.156 -p gre -j ACCEPT
|
iptables -A INPUT -s 5.78.86.156 -p gre -j ACCEPT
|
||||||
iptables -A INPUT -s 5.78.86.156 -p ah -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;
|
useDHCP = false;
|
||||||
interfaces."${netifWan}".useDHCP = true; # PCCW - always wants active DHCP lease or cuts you off
|
interfaces."${netifWan}".useDHCP = true; # PCCW - always wants active DHCP lease or cuts you off
|
||||||
|
@ -535,11 +539,6 @@ in
|
||||||
"/kasli/192.168.1.70"
|
"/kasli/192.168.1.70"
|
||||||
"/kasli-customer/192.168.1.75"
|
"/kasli-customer/192.168.1.75"
|
||||||
"/stabilizer-customer/192.168.1.76"
|
"/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
|
dhcp-match = "set:ipxe,175"; # https://forum.ipxe.org/showthread.php?tid=6077
|
||||||
|
@ -1265,7 +1264,6 @@ in
|
||||||
services.postfix = {
|
services.postfix = {
|
||||||
mapFiles.sender_transport = pkgs.writeText "sender_transport" ''
|
mapFiles.sender_transport = pkgs.writeText "sender_transport" ''
|
||||||
@m-labs-intl.com intltunnel:
|
@m-labs-intl.com intltunnel:
|
||||||
* :
|
|
||||||
'';
|
'';
|
||||||
config = {
|
config = {
|
||||||
sender_dependent_default_transport_maps = "hash:/var/lib/postfix/conf/sender_transport";
|
sender_dependent_default_transport_maps = "hash:/var/lib/postfix/conf/sender_transport";
|
||||||
|
@ -1293,7 +1291,8 @@ in
|
||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud29;
|
package = pkgs.nextcloud30;
|
||||||
|
extraApps = { inherit (config.services.nextcloud.package.packages.apps) forms; };
|
||||||
hostName = "files.m-labs.hk";
|
hostName = "files.m-labs.hk";
|
||||||
https = true;
|
https = true;
|
||||||
maxUploadSize = "2G";
|
maxUploadSize = "2G";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
$TTL 7200
|
$TTL 7200
|
||||||
|
|
||||||
@ SOA ns.m-labs-intl.com. sb.m-labs.hk. (
|
@ SOA ns.m-labs-intl.com. sb.m-labs.hk. (
|
||||||
2024081503
|
2024101401
|
||||||
7200
|
7200
|
||||||
3600
|
3600
|
||||||
86400
|
86400
|
||||||
|
|
Loading…
Reference in New Issue