nix/host/x86_64-linux/dasha/Network.nix

18 lines
684 B
Nix
Raw Normal View History

2024-12-08 22:25:43 +03:00
{ ... }: {
networking = {
firewall.extraCommands = ''
# Ssh access.
iptables -I INPUT -j ACCEPT -s 10.0.0.0/8 -p tcp --dport 22143
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p tcp --dport 22143
2024-12-13 10:48:04 +03:00
# Syncthing.
iptables -I INPUT -j ACCEPT -s 10.0.0.0/8 -p tcp --dport 22000
iptables -I INPUT -j ACCEPT -s 10.0.0.0/8 -p udp --dport 22000
iptables -I INPUT -j ACCEPT -s 10.0.0.0/8 -p udp --dport 21027
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p tcp --dport 22000
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p udp --dport 22000
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p udp --dport 21027
2024-12-08 22:25:43 +03:00
'';
};
}