mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-03-14 16:19:01 +01:00
Add <forward_subnets> to divert rule in OpenBSD
Fixes bug where all traffic routed to loopback would end up being diverted to the same port.
This commit is contained in:
parent
2e1beefc9a
commit
f876c5db5e
@ -249,7 +249,7 @@ class OpenBsd(Generic):
|
||||
]
|
||||
translating_rules = [
|
||||
b'pass in on lo0 inet proto tcp '
|
||||
b'divert-to 127.0.0.1 port %r' % port
|
||||
b'to <forward_subnets> divert-to 127.0.0.1 port %r' % port
|
||||
]
|
||||
filtering_rules = [
|
||||
b'pass out inet proto tcp '
|
||||
|
Loading…
Reference in New Issue
Block a user