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
53d5260f
Commit
53d5260f
authored
Jun 19, 2015
by
Brian May
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11 from douglas/master
Fix the excludes rule for OS X Yosemite and OS X El Captain
parents
a3896330
f870ceba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
firewall.py
src/firewall.py
+1
-1
No files found.
src/firewall.py
View file @
53d5260f
...
@@ -499,7 +499,7 @@ def do_pf(port, dnsport, family, subnets, udp):
...
@@ -499,7 +499,7 @@ def do_pf(port, dnsport, family, subnets, udp):
exclude_subnets
=
filter
(
lambda
s
:
s
[
2
],
sorted
(
subnets
,
reverse
=
True
))
exclude_subnets
=
filter
(
lambda
s
:
s
[
2
],
sorted
(
subnets
,
reverse
=
True
))
if
exclude_subnets
:
if
exclude_subnets
:
tables
.
append
(
'table <exclude_subnets> {
%
s}'
%
','
.
join
([
"
%
s/
%
s"
%
(
n
[
3
],
n
[
1
])
for
n
in
exclude_subnets
]))
tables
.
append
(
'table <exclude_subnets> {
%
s}'
%
','
.
join
([
"
%
s/
%
s"
%
(
n
[
3
],
n
[
1
])
for
n
in
exclude_subnets
]))
filtering_rules
.
append
(
'pass out
route-to lo0 inet proto tcp
to <exclude_subnets> keep state'
)
filtering_rules
.
append
(
'pass out
quick proto tcp from any
to <exclude_subnets> keep state'
)
if
dnsport
:
if
dnsport
:
nslist
=
resolvconf_nameservers
()
nslist
=
resolvconf_nameservers
()
...
...
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