Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
sshuttle
Commits
1cfd9eb9
Commit
1cfd9eb9
authored
Jul 27, 2016
by
vieira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more specific and consistent in some pf rules
parent
f8d58fa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pf.py
sshuttle/methods/pf.py
+4
-4
No files found.
sshuttle/methods/pf.py
View file @
1cfd9eb9
...
...
@@ -200,8 +200,8 @@ class FreeBsd(Generic):
b
'table <dns_servers> {
%
s}'
%
b
','
.
join
([
ns
[
1
]
.
encode
(
"ASCII"
)
for
ns
in
nslist
]))
translating_rules
.
append
(
b
'rdr pass on lo0 proto udp to <dns_servers> '
b
'port 53 ->
%
s port
%
r'
%
(
lo_addr
,
dnsport
))
b
'rdr pass on lo0
%
s
proto udp to <dns_servers> '
b
'port 53 ->
%
s port
%
r'
%
(
inet_version
,
lo_addr
,
dnsport
))
filtering_rules
.
append
(
b
'pass out route-to lo0
%
s proto udp to '
b
'<dns_servers> port 53 keep state'
%
inet_version
)
...
...
@@ -255,8 +255,8 @@ class OpenBsd(Generic):
b
'table <forward_subnets> {
%
s}'
%
b
','
.
join
(
includes
)
]
translating_rules
=
[
b
'pass in on lo0
%
s proto tcp
divert-to
'
b
'
%
s port
%
r'
%
(
inet_version
,
lo_addr
,
port
)
b
'pass in on lo0
%
s proto tcp
to <forward_subnets>
'
b
'
divert-to
%
s port
%
r'
%
(
inet_version
,
lo_addr
,
port
)
]
filtering_rules
=
[
b
'pass out
%
s proto tcp to <forward_subnets> '
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment