Skip to content

Commit 8d8d07b

Browse files
committed
Add range of IP addresses for socks relays (exit nodes)
Use 10.124.0.0/20 as documented in the code
1 parent 220e06f commit 8d8d07b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

linux/netfilter/netfilter.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ func (ctx *nftCtx) nftRestrictTraffic(ifname string) {
408408
})
409409

410410
element := []nftables.SetElement{
411+
{ Key: net.ParseIP("10.124.0.0").To4() },
412+
{ Key: net.ParseIP("10.124.240.0").To4(), IntervalEnd: true },
411413
{ Key: net.ParseIP("10.64.0.1").To4() },
414+
{ Key: net.ParseIP("10.64.0.2").To4(), IntervalEnd: true },
412415
}
413416
mozvpn_ctx.conn.SetAddElements(mozvpn_ctx.relayset, element)
414417
}
@@ -693,6 +696,7 @@ func NetfilterCreateTables() int32 {
693696
Table: mozvpn_ctx.table,
694697
Name: "mozvpn-socks5-relays",
695698
KeyType: nftables.TypeIPAddr,
699+
Interval: true,
696700
}
697701
mozvpn_ctx.conn.AddSet(mozvpn_ctx.relayset, nil)
698702

0 commit comments

Comments
 (0)