Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
OpnSense
Commits
bec972f3
Commit
bec972f3
authored
Apr 29, 2015
by
Jos Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proxy work in progress, small change for unsupported ftp proxy modes
parent
ea72a72e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+2
-2
No files found.
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
bec972f3
...
...
@@ -26,14 +26,14 @@ http_port {{intf_item.subnet}}:{{ OPNsense.proxy.forward.port }} {%if OPNsense.
{%
for
interface
in
OPNsense
.
proxy
.
forward
.
ftpInterfaces
.
split
(
","
) %}
{%
for
intf_key
,
intf_item
in
interfaces
.
iteritems
() %}
{%
if
intf_key
==
interface
and
intf_item
.
ipaddr
!=
'dhcp'
%}
ftp_port
{{
intf_item
.
ipaddr
}}:{{
OPNsense
.
proxy
.
forward
.
ftpPort
}} {%
if
OPNsense
.
proxy
.
forward
.
ftpTransparentMode
==
'1'
%}
tproxy
{%
else
%}
accel
{%
endif
%}
ftp
-
track
-
dirs
protocol
=
HTTP
ftp_port
{{
intf_item
.
ipaddr
}}:{{
OPNsense
.
proxy
.
forward
.
ftpPort
}} {%
if
OPNsense
.
proxy
.
forward
.
ftpTransparentMode
==
'1'
%}
tproxy
{%
else
%}
accel
ftp
-
track
-
dirs
protocol
=
HTTP
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{
# virtual ip's #}
{%
if
helpers
.
exists
(
'virtualip'
) %}
{%
for
intf_key
,
intf_item
in
virtualip
.
iteritems
() %}
{%
if
intf_item
.
interface
==
interface
and
intf_item
.
mode
==
'ipalias'
%}
ftp_port
{{
intf_item
.
subnet
}}:{{
OPNsense
.
proxy
.
forward
.
ftpPort
}} {%
if
OPNsense
.
proxy
.
forward
.
ftpTransparentMode
==
'1'
%}
tproxy
{%
else
%}
accel
{%
endif
%}
ftp
-
track
-
dirs
protocol
=
HTTP
ftp_port
{{
intf_item
.
subnet
}}:{{
OPNsense
.
proxy
.
forward
.
ftpPort
}} {%
if
OPNsense
.
proxy
.
forward
.
ftpTransparentMode
==
'1'
%}
tproxy
{%
else
%}
accel
ftp
-
track
-
dirs
protocol
=
HTTP
{%
endif
%}
{%
endif
%}
{%
endfor
%}
{%
endif
%}
...
...
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