17 Jan 2025 |
magic_rb | im running nixos if thats what youre asking | 22:54:59 |
magic_rb | also the 3 boxes except for KPN box are all virtual, theyre network namespaces | 22:55:15 |
magic_rb | not actual physical anythings, to create that complex beast i use https://ifstate.net | 22:55:32 |
magic_rb | (the only declarative tool which understands what a network namespace is) | 22:55:47 |
zeno | That's pretty cool! | 22:56:21 |
zeno | I might have to go the same route | 22:56:31 |
zeno | I actually have a regular Pi 4 laying around | 22:56:43 |
magic_rb | the rpi N are kind of.. shit :) | 22:57:00 |
magic_rb | but if youve got it already put it to use for sure | 22:57:12 |
magic_rb | im using my pi 3 as a ipmi gateway | 22:57:21 |
zeno | Yeah, I have and it's not doing anything, so I might as well use it for something | 22:57:36 |
magic_rb | would make a good paper weight :D | 22:57:49 |
magic_rb | oka, i gotta go sleep too, i made progress on my bash script rewrite in haskell | 22:58:25 |
magic_rb | in the mean time, feel free to ping me to discuss networking, bounce ideas, whatever | 22:58:39 |
zeno | I'd love to! I will definitely take you up on the offer 😉 | 22:59:06 |
zeno | Have a good night and, again, thank you 😄 | 22:59:19 |
magic_rb | no worries | 22:59:33 |
magic_rb | have a good one | 22:59:35 |
18 Jan 2025 |
| trumee joined the room. | 13:16:57 |
| trumee changed their display name from . to trumee. | 13:47:11 |
trumee | I have an upstream opnsense router which manages flow between various vlans. I still need fail2ban on the server. If i turn on the networking.firewall.enable it stops the traffic flow. I had to disable it and instead specify a ruleset,
networking.nftables.ruleset=''
table inet mytable {
chain input {
type filter hook input priority 0; policy drop;
# Allow loopback traffic
iif lo accept
# Allow established and related connections
ct state established,related accept
iifname "vlan2br" accept
iifname "vlan300br" accept
iifname "vlan400br" accept
iifname "vlan500br" accept
iifname "vlan600br" accept
# Drop all other input traffic
counter drop
}
# Allow all outgoing connections.
chain output {
type filter hook output priority 0;
accept
}
chain forward {
type filter hook forward priority 0;
accept
}
}
'';
If i turn on the nixos-fw it inserts the following which stops the flow,
chain rpfilter {
type filter hook prerouting priority mangle + 10; policy drop;
meta nfproto ipv4 udp sport . udp dport { 68 . 67, 67 . 68 } accept comment "DHCPv4 client/server"
fib saddr . mark . iif oif exists accept
jump rpfilter-allow
}
What does it do and can i remove this?
| 14:05:28 |
hexa (clat on linux when) | Redacted or Malformed Event | 14:06:52 |
hexa (clat on linux when) | reverse path filtering is used to drop traffic from source addresses arriving on an interface, that you wouldn't use to reach those addresses over | 14:08:30 |
hexa (clat on linux when) | * reverse path filtering is used to filter traffic from source addresses arriving on an interface, that you wouldn't use to reach those addresses over | 14:09:01 |
hexa (clat on linux when) | * reverse path filtering is used to filter traffic from source addresses arriving on an interface that you wouldn't use to reach those addresses over | 14:09:14 |
trumee | Is it possible to remove it? | 14:11:45 |
hexa (clat on linux when) | https://search.nixos.org/options?channel=24.11&show=networking.firewall.checkReversePath&from=0&size=50&sort=relevance&type=packages&query=reversepath | 14:12:55 |
19 Jan 2025 |
trumee | Is this incorrect routing?
07:25:10.320465 enp129s0 P IP 172.16.1.28 > 172.16.3.4: ICMP echo request, id 111, seq 1, length 64
07:25:10.320465 vlan300 P IP 172.16.1.28 > 172.16.3.4: ICMP echo request, id 111, seq 1, length 64
07:25:10.320465 vlan300br In IP 172.16.1.28 > 172.16.3.4: ICMP echo request, id 111, seq 1, length 64
07:25:10.320519 vlan2br Out IP 172.16.3.4 > 172.16.1.28: ICMP echo reply, id 111, seq 1, length 64
07:25:10.320523 vlan2 Out IP 172.16.3.4 > 172.16.1.28: ICMP echo reply, id 111, seq 1, length 64
| 01:58:03 |
| @rgrunbla:matrix.org removed their display name Rémy Grünblatt. | 09:41:25 |
| @rgrunbla:matrix.org left the room. | 09:41:38 |