Network: Allow syncthing.
This commit is contained in:
parent
af7e9bb147
commit
7ba7e25072
|
@ -4,6 +4,14 @@
|
||||||
# Ssh access.
|
# Ssh access.
|
||||||
iptables -I INPUT -j ACCEPT -s 10.0.0.0/8 -p tcp --dport 22143
|
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
|
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p tcp --dport 22143
|
||||||
|
|
||||||
|
# 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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p tcp --dport 22143
|
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p tcp --dport 22143
|
||||||
|
|
||||||
# Syncthing.
|
# 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 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 22000
|
||||||
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p udp --dport 21027
|
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p udp --dport 21027
|
||||||
|
|
|
@ -4,6 +4,14 @@
|
||||||
# Ssh access.
|
# Ssh access.
|
||||||
iptables -I INPUT -j ACCEPT -s 10.0.0.0/8 -p tcp --dport 22143
|
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
|
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p tcp --dport 22143
|
||||||
|
|
||||||
|
# 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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
17
host/x86_64-linux/max/Network.nix
Normal file
17
host/x86_64-linux/max/Network.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ ... }: {
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,6 +4,14 @@
|
||||||
# Ssh access.
|
# Ssh access.
|
||||||
iptables -I INPUT -j ACCEPT -s 10.0.0.0/8 -p tcp --dport 22143
|
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
|
ip6tables -I INPUT -j ACCEPT -s fd09:8d46:0b26::/48 -p tcp --dport 22143
|
||||||
|
|
||||||
|
# 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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue