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
1fcd3fc1
Commit
1fcd3fc1
authored
Aug 14, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: whitespace and style sweep
parent
f9b697e2
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
126 additions
and
124 deletions
+126
-124
FirmwareController.php
.../app/controllers/OPNsense/Core/Api/FirmwareController.php
+3
-1
diag_ipsec.php
src/www/diag_ipsec.php
+13
-13
diag_ipsec_spd.php
src/www/diag_ipsec_spd.php
+1
-1
interfaces_bridge_edit.php
src/www/interfaces_bridge_edit.php
+5
-5
vpn_ipsec_keys_edit.php
src/www/vpn_ipsec_keys_edit.php
+3
-3
vpn_ipsec_mobile.php
src/www/vpn_ipsec_mobile.php
+88
-88
vpn_ipsec_phase2.php
src/www/vpn_ipsec_phase2.php
+11
-11
vpn_ipsec_settings.php
src/www/vpn_ipsec_settings.php
+2
-2
No files found.
src/opnsense/mvc/app/controllers/OPNsense/Core/Api/FirmwareController.php
View file @
1fcd3fc1
...
...
@@ -74,7 +74,9 @@ class FirmwareController extends ApiControllerBase
$response
[
'status_msg'
]
=
sprintf
(
'There are %s updates available.'
,
$response
[
'updates'
]);
}
if
(
$response
[
'upgrade_needs_reboot'
]
==
1
)
{
$response
[
'status_msg'
]
=
sprintf
(
'%s %s'
,
$response
[
'status_msg'
],
'This update requires a reboot.'
);
$response
[
'status_msg'
]
=
sprintf
(
'%s %s'
,
$response
[
'status_msg'
],
'This update requires a reboot.'
);
}
}
}
else
{
...
...
src/www/diag_ipsec.php
View file @
1fcd3fc1
...
...
@@ -118,7 +118,7 @@ include("head.inc");
<div
class=
"row"
>
<?php
if
(
isset
(
$input_errors
)
&&
count
(
$input_errors
)
>
0
)
print_input_errors
(
$input_errors
);
?>
<section
class=
"col-xs-12"
>
<?
$active_tab
=
"/diag_ipsec.php"
;
<?
$active_tab
=
"/diag_ipsec.php"
;
include
(
'diag_ipsec_tabs.inc'
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
...
...
@@ -212,22 +212,22 @@ include("head.inc");
<form
method=
"post"
>
<input
type=
"hidden"
value=
"
<?=
$con_id
?>
"
name=
"ikeid"
/>
<input
type=
"hidden"
value=
"
<?=
isset
(
$ikesa
[
'id'
])
?
$ikesa
[
'id'
]
:
""
?>
"
name=
"ikesaid"
/>
<?php
if
(
!
$connected
)
:
?>
<?php
if
(
!
$connected
)
:
?>
<button
type=
"submit"
class=
"btn btn-xs"
name=
"action"
value=
"connect"
title=
"
<?=
gettext
(
"Connect VPN"
);
?>
"
>
<span
class=
"glyphicon glyphicon-play"
/>
</button>
<?php
else
:
?>
<?php
else
:
?>
<button
type=
"submit"
class=
"btn btn-xs"
name=
"action"
value=
"ikedisconnect"
title=
"
<?=
gettext
(
"Disconnect VPN"
);
?>
"
>
<span
class=
"glyphicon glyphicon-stop"
/>
</button>
<button
type=
"submit"
class=
"btn btn-xs"
name=
"action"
value=
"ikedisconnectconn"
title=
"
<?=
gettext
(
"Disconnect VPN Connection"
);
?>
"
>
<span
class=
"glyphicon glyphicon-remove"
/>
</button>
<?php
endif
;
?>
<?php
endif
;
?>
</form>
</td>
</tr>
<?php
if
(
isset
(
$ikesa
[
'childsalist'
])
&&
is_array
(
$ikesa
[
'childsalist'
])
)
:
?>
<?php
if
(
isset
(
$ikesa
[
'childsalist'
])
&&
is_array
(
$ikesa
[
'childsalist'
])
)
:
?>
<tr>
<td
colspan=
"8"
>
<div
id=
"btnchildsa-
<?=
$ikeid
;
?>
"
>
...
...
@@ -264,8 +264,8 @@ include("head.inc");
foreach
(
$childsa
[
'local'
][
'networks'
][
'network'
]
as
$lnets
)
:
?>
<?=
htmlspecialchars
(
ipsec_fixup_network
(
$lnets
));
?>
<br/>
<?php
endforeach
;
else
:
<?php
endforeach
;
else
:
?>
Unknown
<br/>
<?php
endif
;
...
...
@@ -275,12 +275,12 @@ include("head.inc");
<?php
if
(
isset
(
$childsa
[
'local'
][
'spi'
]))
:
?>
Local :
<?=
htmlspecialchars
(
$childsa
[
'local'
][
'spi'
]);
?>
<?php
endif
;
<?php
endif
;
?>
<?php
if
(
isset
(
$childsa
[
'remote'
][
'spi'
]))
:
?>
<br/>
Remote :
<?=
htmlspecialchars
(
$childsa
[
'remote'
][
'spi'
]);
?>
<?php
endif
;
<?php
endif
;
?>
</td>
<td>
...
...
@@ -288,7 +288,7 @@ include("head.inc");
foreach
(
$childsa
[
'remote'
][
'networks'
][
'network'
]
as
$rnets
)
:
?>
<?=
htmlspecialchars
(
ipsec_fixup_network
(
$rnets
));
?>
<br/>
<?php
endforeach
;
<?php
endforeach
;
else
:
?>
Unknown
<br/>
...
...
@@ -302,7 +302,7 @@ include("head.inc");
</table>
</td>
</tr>
<?php
endif
;
<?php
endif
;
unset
(
$con_id
);
// close outer loop {foreach ($status['query']['ikesalist']['ikesa'] as $ikeid => $ikesa)}
endforeach
;
...
...
@@ -356,9 +356,9 @@ include("head.inc");
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
</section>
</div>
</div>
</section>
...
...
src/www/diag_ipsec_spd.php
View file @
1fcd3fc1
...
...
@@ -95,7 +95,7 @@ legacy_html_escape_form_data($spd);
</tr>
<?php
endif
;
?>
</table>
</div>
</div>
</div>
</section>
</div>
...
...
src/www/interfaces_bridge_edit.php
View file @
1fcd3fc1
...
...
@@ -289,11 +289,11 @@ function show_source_port_range() {
<td
width=
"78%"
class=
"vtable"
>
<select
name=
"members[]"
multiple=
"multiple"
class=
"selectpicker"
size=
"3"
data-live-search=
"true"
>
<?php
// let's fix this for now in the template, although it should be fixed at the top of the page
// $pconfig['members'] can be of different type now.
if
(
isset
(
$pconfig
[
'members'
])
&&
is_array
(
$pconfig
[
'members'
]))
{
$members_array
=
$pconfig
[
'members'
];
}
elseif
(
!
empty
(
$pconfig
[
'members'
]))
{
// let's fix this for now in the template, although it should be fixed at the top of the page
// $pconfig['members'] can be of different type now.
if
(
isset
(
$pconfig
[
'members'
])
&&
is_array
(
$pconfig
[
'members'
]))
{
$members_array
=
$pconfig
[
'members'
];
}
elseif
(
!
empty
(
$pconfig
[
'members'
]))
{
$members_array
=
explode
(
','
,
$pconfig
[
'members'
]);
}
else
{
$members_array
=
array
();
...
...
src/www/vpn_ipsec_keys_edit.php
View file @
1fcd3fc1
...
...
@@ -169,9 +169,9 @@ endif; ?>
<td>
</td>
<td>
<span
class=
"text-danger"
>
<strong>
<?=
gettext
(
"Note"
);
?>
:
<br
/></strong>
</span>
<?=
gettext
(
"PSK for any user can be set by using an identifier of any/ANY"
);
?>
<strong>
<?=
gettext
(
"Note"
);
?>
:
<br
/></strong>
</span>
<?=
gettext
(
"PSK for any user can be set by using an identifier of any/ANY"
);
?>
</td>
</tr>
</table>
...
...
src/www/vpn_ipsec_mobile.php
View file @
1fcd3fc1
This diff is collapsed.
Click to expand it.
src/www/vpn_ipsec_phase2.php
View file @
1fcd3fc1
...
...
@@ -711,7 +711,7 @@ if (isset($input_errors) && count($input_errors) > 0) {
<input
name=
"localid_address"
type=
"text"
id=
"localid_address"
size=
"28"
value=
"
<?=
$pconfig
[
'localid_address'
];
?>
"
/>
/
<select
name=
"localid_netbits"
id=
"localid_netbits"
>
<?php
for
(
$i
=
128
;
$i
>=
0
;
$i
--
)
:
<?php
for
(
$i
=
128
;
$i
>=
0
;
$i
--
)
:
?>
<option
value=
"
<?=
$i
;
?>
"
<?=
isset
(
$pconfig
[
'localid_netbits'
])
&&
$i
==
$pconfig
[
'localid_netbits'
]
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
$i
;
?>
...
...
@@ -762,7 +762,7 @@ if (isset($input_errors) && count($input_errors) > 0) {
</td>
</tr>
<?php
if
(
!
isset
(
$pconfig
[
'mobile'
]))
:
<?php
if
(
!
isset
(
$pconfig
[
'mobile'
]))
:
?>
<tr
id=
"opt_remoteid"
>
<td
colspan=
"2"
><b>
<?=
gettext
(
"Remote Network"
);
?>
</b></td>
...
...
@@ -786,12 +786,12 @@ if (isset($input_errors) && count($input_errors) > 0) {
<input
name=
"remoteid_address"
type=
"text"
class=
"formfld unknown ipv4v6"
id=
"remoteid_address"
size=
"28"
value=
"
<?=
$pconfig
[
'remoteid_address'
];
?>
"
/>
/
<select
name=
"remoteid_netbits"
class=
"formselect ipv4v6"
id=
"remoteid_netbits"
>
<?php
for
(
$i
=
128
;
$i
>=
0
;
$i
--
)
:
<?php
for
(
$i
=
128
;
$i
>=
0
;
$i
--
)
:
?>
<option
value=
"
<?=
$i
;
?>
"
<?=
isset
(
$pconfig
[
'remoteid_netbits'
])
&&
$i
==
$pconfig
[
'remoteid_netbits'
]
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
$i
;
?>
</option>
<?php
endfor
;
<?php
endfor
;
?>
</select>
</td>
...
...
@@ -831,18 +831,18 @@ if (isset($input_errors) && count($input_errors) > 0) {
?>
<input
type=
"checkbox"
name=
"ealgos[]"
value=
"
<?=
$algo
;
?>
"
<?=
isset
(
$pconfig
[
'ealgos'
])
&&
in_array
(
$algo
,
$pconfig
[
'ealgos'
])
?
"checked=
\"
checked
\"
"
:
""
;
?>
/>
<?=
$algodata
[
'name'
];
?>
<?php
if
(
isset
(
$algodata
[
'keysel'
]))
:
<?php
if
(
isset
(
$algodata
[
'keysel'
]))
:
?>
<select
name=
"keylen_
<?=
$algo
;
?>
"
class=
"formselect"
>
<option
value=
"auto"
>
<?=
gettext
(
"auto"
);
?>
</option>
<?php
for
(
$keylen
=
$algodata
[
'keysel'
][
'hi'
];
$keylen
>=
$algodata
[
'keysel'
][
'lo'
];
$keylen
-=
$algodata
[
'keysel'
][
'step'
])
:
for
(
$keylen
=
$algodata
[
'keysel'
][
'hi'
];
$keylen
>=
$algodata
[
'keysel'
][
'lo'
];
$keylen
-=
$algodata
[
'keysel'
][
'step'
])
:
?>
<option
value=
"
<?=
$keylen
;
?>
"
<?=
$keylen
==
$pconfig
[
"keylen_"
.
$algo
]
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
$keylen
;
?>
<?=
gettext
(
"bits"
);
?>
</option>
<?php
endfor
;
?>
</select>
<?php
else
:?>
<?php
else
:?>
<
br
/>
<?
php
endif
;
?>
...
...
@@ -860,7 +860,7 @@ if (isset($input_errors) && count($input_errors) > 0) {
<tr>
<td><i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
"Hash algorithms"
);
?>
</td>
<td
width=
"78%"
class=
"vtable"
>
<?php
foreach
(
$p2_halgos
as
$algo
=>
$algoname
)
:
<?php
foreach
(
$p2_halgos
as
$algo
=>
$algoname
)
:
?>
<input
type=
"checkbox"
name=
"hash-algorithm-option[]"
value=
"
<?=
$algo
;
?>
"
<?=
in_array
(
$algo
,
$pconfig
[
'hash-algorithm-option'
])
?
"checked=
\"
checked
\"
"
:
""
;
?>
/>
<?=
$algoname
;
?>
...
...
@@ -872,10 +872,10 @@ if (isset($input_errors) && count($input_errors) > 0) {
<tr>
<td><i
class=
"fa fa-info-circle text-muted"
></i>
<?=
gettext
(
"PFS key group"
);
?>
</td>
<td>
<?php
if
(
!
isset
(
$pconfig
[
'mobile'
])
||
!
isset
(
$config
[
'ipsec'
][
'client'
][
'pfs_group'
]))
:
<?php
if
(
!
isset
(
$pconfig
[
'mobile'
])
||
!
isset
(
$config
[
'ipsec'
][
'client'
][
'pfs_group'
]))
:
?>
<select
name=
"pfsgroup"
>
<?php
foreach
(
$p2_pfskeygroups
as
$keygroup
=>
$keygroupname
)
:
<?php
foreach
(
$p2_pfskeygroups
as
$keygroup
=>
$keygroupname
)
:
?>
<option
value=
"
<?=
$keygroup
;
?>
"
<?=
$keygroup
==
$pconfig
[
'pfsgroup'
]
?
"selected=
\"
selected
\"
"
:
""
;
?>
>
<?=
$keygroupname
;
?>
...
...
@@ -920,7 +920,7 @@ if (isset($input_errors) && count($input_errors) > 0) {
<tr>
<td>
</td>
<td
width=
"78%"
>
<?php
if
(
isset
(
$pconfig
[
'mobile'
]))
:
<?php
if
(
isset
(
$pconfig
[
'mobile'
]))
:
?>
<input
name=
"mobile"
type=
"hidden"
value=
"true"
/>
<input
name=
"remoteid_type"
type=
"hidden"
value=
"mobile"
/>
...
...
src/www/vpn_ipsec_settings.php
View file @
1fcd3fc1
...
...
@@ -209,7 +209,7 @@ function maxmss_checked(obj) {
<?php
endforeach
;
?>
<div
class=
"hidden"
for=
"help_for_ipsec_debug"
>
<?=
gettext
(
"Launches IPSec in debug mode so that more verbose logs "
.
<?=
gettext
(
"Launches IPSec in debug mode so that more verbose logs "
.
"will be generated to aid in troubleshooting."
);
?>
</div>
</td>
...
...
@@ -234,7 +234,7 @@ function maxmss_checked(obj) {
<strong>
<?=
gettext
(
"Enable MSS clamping on VPN traffic"
);
?>
</strong>
<input
name=
"maxmss"
id=
"maxmss"
type=
"text"
value=
"
<?=
!
empty
(
$pconfig
[
'maxmss'
])
?
$pconfig
[
'maxmss'
]
:
"1400"
;
?>
"
<?=
!
empty
(
$pconfig
[
'maxmss_enable'
])
?
"disabled=
\"
disabled
\"
"
:
""
;
?>
/>
<div
class=
"hidden"
for=
"help_for_maxmss_enable"
>
<?=
gettext
(
"Enable MSS clamping on TCP flows over VPN. "
.
<?=
gettext
(
"Enable MSS clamping on TCP flows over VPN. "
.
"This helps overcome problems with PMTUD on IPsec VPN links. If left blank, the default value is 1400 bytes. "
);
?>
</div>
</td>
...
...
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