hosts/carbon: Remove network bridges
This commit is contained in:
@@ -6,22 +6,19 @@
|
||||
id = 205;
|
||||
interface = "enp1s0";
|
||||
};
|
||||
networking.bridges."net-iot".interfaces = [
|
||||
"enp1s0.205"
|
||||
];
|
||||
networking.interfaces."net-iot".ipv6.addresses = [
|
||||
networking.interfaces."enp1s0.205".ipv6.addresses = [
|
||||
{ address = "fe80::1"; prefixLength = 64; }
|
||||
{ address = "fd00:152:152:205::1"; prefixLength = 64; }
|
||||
];
|
||||
networking.interfaces."net-iot".ipv4.addresses = [
|
||||
networking.interfaces."enp1s0.205".ipv4.addresses = [
|
||||
{ address = "10.152.205.1"; prefixLength = 24; }
|
||||
];
|
||||
|
||||
# Enable NTP
|
||||
networking.firewall.interfaces."net-iot".allowedUDPPorts = [ 123 ];
|
||||
networking.firewall.interfaces."enp1s0.205".allowedUDPPorts = [ 123 ];
|
||||
|
||||
services.radvd.config = ''
|
||||
interface net-iot {
|
||||
interface enp1s0.205 {
|
||||
AdvSendAdvert on;
|
||||
MaxRtrAdvInterval 30;
|
||||
prefix ::/64 {
|
||||
@@ -36,7 +33,7 @@
|
||||
services.kea.dhcp4 = {
|
||||
settings = {
|
||||
interfaces-config = {
|
||||
interfaces = [ "net-iot" ];
|
||||
interfaces = [ "enp1s0.205" ];
|
||||
};
|
||||
subnet4 = [
|
||||
{
|
||||
@@ -72,9 +69,9 @@
|
||||
|
||||
clerie.firewall.extraForwardFilterCommands = ''
|
||||
# Allow access from Heimnetz to IOT devices
|
||||
ip46tables -A forward-filter -i net-heimnetz -o net-iot -j ACCEPT
|
||||
ip46tables -A forward-filter -i net-iot -j DROP
|
||||
ip46tables -A forward-filter -o net-iot -j DROP
|
||||
ip46tables -A forward-filter -i enp2s0 -o enp1s0.205 -j ACCEPT
|
||||
ip46tables -A forward-filter -i enp1s0.205 -j DROP
|
||||
ip46tables -A forward-filter -o enp1s0.205 -j DROP
|
||||
'';
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user