From f876c5db5edc501b51e750c3f7673f6a7ec260de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vieira?= Date: Thu, 16 Jun 2016 22:34:19 +0100 Subject: Add to divert rule in OpenBSD Fixes bug where all traffic routed to loopback would end up being diverted to the same port. --- sshuttle/methods/pf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshuttle/methods/pf.py b/sshuttle/methods/pf.py index a28f2e8..bb82a2d 100644 --- a/sshuttle/methods/pf.py +++ b/sshuttle/methods/pf.py @@ -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 divert-to 127.0.0.1 port %r' % port ] filtering_rules = [ b'pass out inet proto tcp ' -- cgit v1.2.3