Skip to content

Commit ae4d1f0

Browse files
committed
Add range of IP addresses for socks relays (exit nodes)
1 parent 2bf5a4f commit ae4d1f0

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
@@ -178,7 +178,10 @@ func (ctx* nftCtx) nftIfup(ifname string) {
178178
})
179179

180180
element := []nftables.SetElement{
181+
{ Key: net.ParseIP("10.124.0.0").To4() },
182+
{ Key: net.ParseIP("10.125.0.0").To4(), IntervalEnd: true },
181183
{ Key: net.ParseIP("10.64.0.1").To4() },
184+
{ Key: net.ParseIP("10.64.0.2").To4(), IntervalEnd: true },
182185
}
183186
mozvpn_ctx.conn.SetAddElements(mozvpn_ctx.relayset, element)
184187
}
@@ -457,6 +460,7 @@ func NetfilterCreateTables() int32 {
457460
Table: mozvpn_ctx.table_inet,
458461
Name: "mozvpn-socks5-relays",
459462
KeyType: nftables.TypeIPAddr,
463+
Interval: true,
460464
}
461465
mozvpn_ctx.conn.AddSet(mozvpn_ctx.relayset, nil)
462466

0 commit comments

Comments
 (0)