!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

897 Members
on your Router! Declaratively manage your switching, routing, wireless, tunneling and more.262 Servers

Load older messages


SenderMessageTime
24 Dec 2025
@emilazy:matrix.orgemilydnscrypt-proxy2 can itself do blocking IIRC05:07:48
@magic_rb:matrix.redalder.orgmagic_rbI dont want blocking as a feature. I have ublock everywhere and dont run much proprietary software08:36:49
@thefossguy:matrix.orgPratham Patel

At the moment, I have a very simple firewall rule for my router to ensure traffic between private and guest networks don't ever interfere. The configuration for that is here. Additionally, I have a helper function of sorts to create wireguard interfaces. Given I'm very new to firewall rules and routing, I'm not sure how to ensure that all traffic from the private network is routed via the wireguard interface but the guest network's traffic exits without ever touching the wireguard interface. Let's call it wg0 on the router.

I believe that this setup will require the following additional rules to the forward chain in the router-fw table:

iifname "isolated" oifname "wg0" drop
iifname "wg0" oifname "isolated" drop

iifname "trusted" oifname "wg0" accept
iifname "wg0" oifname "trusted" accept

iifname "wg0" oifname "wan" accept
iifname "wan" oifname "wg0" accept

And also require a new output chain in the router-fw table:

chain output {
    type filter hook output priority filter; policy accept;
    accept
}

This is what I have come up with so far. Is there anything else that I'm missing, or doing wrong?

08:57:37
@thefossguy:matrix.orgPratham Patel *

At the moment, I have a very simple firewall rule for my router to ensure traffic between private and guest networks don't ever interfere. The configuration for that is here. Additionally, I have a helper function of sorts to create wireguard interfaces. Given I'm very new to firewall rules and routing, I'm not sure how to ensure that all traffic from the private network is routed via the wireguard interface but the guest network's traffic exits without ever touching the wireguard interface. Let's call it wg0 on the router.

I believe that this setup will require the following additional rules to the forward chain in the router-fw table:

iifname "isolated" oifname "wg0" drop
iifname "wg0" oifname "isolated" drop

iifname "trusted" oifname "wg0" accept
iifname "wg0" oifname "trusted" accept

iifname "wg0" oifname "wan" accept
iifname "wan" oifname "wg0" accept

And also require a new output chain in the router-fw table:

chain output {
    type filter hook output priority filter; policy accept;
    accept
}

This is what I have come up with so far. Is there anything else that I'm missing, or doing wrong?

(edit: switched git reference from master to a specific commit)

09:02:24
@thefossguy:matrix.orgPratham Patel *

At the moment, I have a very simple firewall rule for my router to ensure traffic between private and guest networks don't ever interfere. The configuration for that is here. Additionally, I have a helper function of sorts to create wireguard interfaces. Given I'm very new to firewall rules and routing, I'm not sure how to ensure that all traffic from the private network is routed via the wireguard interface but the guest network's traffic exits without ever touching the wireguard interface. Let's call it wg0 on the router.

I believe that this setup will require the following additional rules to the forward chain in the router-fw table:

iifname "isolated" oifname "wg0" drop
iifname "wg0" oifname "isolated" drop

iifname "trusted" oifname "wg0" accept
iifname "wg0" oifname "trusted" accept

iifname "wg0" oifname "wan" accept
iifname "wan" oifname "wg0" accept

And also require a new output chain in the router-fw table:

chain output {
    type filter hook output priority filter; policy accept;
    accept
}

This is what I have come up with so far. Is there anything else that I'm missing, or doing wrong?

(edit: switched git reference from master to a specific commit)

09:02:49
@thefossguy:matrix.orgPratham Patel *

At the moment, I have a very simple firewall rule for my router to ensure traffic between private and guest networks don't ever interfere. The configuration for that is here. Additionally, I have a helper function of sorts to create wireguard interfaces. Given I'm very new to firewall rules and routing, I'm not sure how to ensure that all traffic from the private network is routed via the wireguard interface but the guest network's traffic exits without ever touching the wireguard interface. Let's call it wg0 on the router.

I believe that this setup will require the following additional rules to the forward chain in the router-fw table:

iifname "isolated" oifname "wg0" drop
iifname "wg0" oifname "isolated" drop

iifname "trusted" oifname "wg0" accept
iifname "wg0" oifname "trusted" accept

iifname "wg0" oifname "wan" accept
iifname "wan" oifname "wg0" accept

And also require a new output chain in the router-fw table:

chain output {
    type filter hook output priority filter; policy accept;
    accept
}

This is what I have come up with so far. Is there anything else that I'm missing, or doing wrong?

(edit: switched git reference from master to a specific commit)

09:04:06
19 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:20:58
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".19:20:58
@grahamc:nixos.org@grahamc:nixos.org invited @casey:hubns.netcasey ©.19:21:08
@casey:hubns.netcasey © joined the room.19:21:17
@0x4a6f:matrix.org[0x4A6F] joined the room.19:23:16
@qyliss:fairydust.spaceAlyssa Ross joined the room.19:26:50
@hexa:lossy.networkhexa joined the room.19:27:05
@andi:kack.itandi- joined the room.19:40:47
@n0emis:noemis.men0emis joined the room.19:42:15
@server_stats:nordgedanken.devServer Stats Discoverer (traveler bot) joined the room.19:50:53
@voyager:t2bot.ioMatrix Traveler (bot) joined the room.20:03:52
@solson:matrix.orgscott joined the room.20:48:39
@risson:prologin.orgrisson joined the room.21:05:43
@abgn:matrix.orgabgn joined the room.21:41:00
@andreas.schraegle:helsinki-systems.deAndreas Schrägle joined the room.22:59:41
20 May 2021
@jul1u5:matrix.orgjul1u5 joined the room.00:23:09
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️ joined the room.00:50:28
@thefloweringash:matrix.orgthefloweringash joined the room.01:34:38
@finn:sunbutt.faithfinn joined the room.05:01:16
@colemickens:matrix.orgcolemickens 🏳️‍🌈 joined the room.06:18:26
@srhb:matrix.orgsrhb joined the room.06:22:50
@ma27:nicht-so.sexyma27 joined the room.07:41:21
@primeos:matrix.orgprimeos joined the room.10:31:04
@flokli:matrix.orgflokli joined the room.10:31:42

Show newer messages


Back to Room ListRoom Version: 6