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
c97e95bd
Commit
c97e95bd
authored
Oct 16, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openvpn: small include fix and log conversion
parent
d6e14d26
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
19 deletions
+14
-19
Menu.xml
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
+1
-1
diag_logs_auth.php
src/www/diag_logs_auth.php
+1
-1
diag_logs_ipsec.php
src/www/diag_logs_ipsec.php
+1
-1
diag_logs_ntpd.php
src/www/diag_logs_ntpd.php
+1
-1
diag_logs_openvpn.php
src/www/diag_logs_openvpn.php
+7
-12
diag_logs_relayd.php
src/www/diag_logs_relayd.php
+1
-1
diag_logs_tabs.inc
src/www/diag_logs_tabs.inc
+0
-2
vpn_openvpn_export.php
src/www/vpn_openvpn_export.php
+1
-0
vpn_openvpn_export_shared.php
src/www/vpn_openvpn_export_shared.php
+1
-0
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
View file @
c97e95bd
...
...
@@ -59,7 +59,6 @@
<DHCP
url=
"/diag_logs_dhcp.php"
/>
<PPP
url=
"/diag_logs_ppp.php"
/>
<VPN
url=
"/diag_logs_vpn.php*"
/>
<OpenVPN
url=
"/diag_logs_openvpn.php"
/>
<Proxy
url=
"/diag_logs_proxy.php"
>
<ProxyActions
url=
"/diag_logs_proxy.php?*"
/>
</Proxy>
...
...
@@ -295,6 +294,7 @@
<Edit
url=
"/vpn_openvpn_export.php?*"
/>
</ClientExport>
<ClientSharedKeyExport
VisibleName=
"Shared Key Export"
url=
"/vpn_openvpn_export_shared.php"
/>
<Log
VisibleName=
"Log File"
url=
"/diag_logs_openvpn.php"
/>
<Server
VisibleName=
"Server Settings"
url=
"/vpn_openvpn_server.php"
>
<Edit
url=
"/vpn_openvpn_server.php?*"
/>
</Server>
...
...
src/www/diag_logs_auth.php
View file @
c97e95bd
...
...
@@ -66,7 +66,7 @@ include("head.inc");
<table
class=
"table table-striped table-sort"
>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
'Last %s Portal Auth log entries'
),
$nentries
);
?>
</strong></td></tr>
<?php
dump_clog
(
$portal_logfile
,
$nentries
,
true
);
?>
<tr><td>
<tr><td
colspan=
"2"
>
<form
action=
"diag_logs_auth.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
...
...
src/www/diag_logs_ipsec.php
View file @
c97e95bd
...
...
@@ -68,7 +68,7 @@ include("head.inc");
<table
class=
"table table-striped table-sort"
>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
"Last %s IPsec log entries"
),
$nentries
);
?>
</strong></td></tr>
<?php
dump_clog
(
$ipsec_logfile
,
$nentries
);
?>
<tr><td>
<tr><td
colspan=
"2"
>
<form
action=
"diag_logs_ipsec.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
...
...
src/www/diag_logs_ntpd.php
View file @
c97e95bd
...
...
@@ -69,7 +69,7 @@ include("head.inc");
<table
class=
"table table-striped table-sort"
>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
"Last %s NTP log entries"
),
$nentries
);
?>
</strong></td></tr>
<?php
dump_clog
(
$ntpd_logfile
,
$nentries
);
?>
<tr><td>
<tr><td
colspan=
"2"
>
<form
action=
"diag_logs_ntpd.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
...
...
src/www/diag_logs_openvpn.php
View file @
c97e95bd
...
...
@@ -34,7 +34,7 @@ require_once("services.inc");
require_once
(
"system.inc"
);
require_once
(
"interfaces.inc"
);
$pgtitle
=
array
(
gettext
(
"Status"
),
gettext
(
"System logs"
),
gettext
(
"OpenVPN"
));
$pgtitle
=
array
(
gettext
(
'Services'
),
gettext
(
'OpenVPN'
),
gettext
(
'Log File'
));
$openvpn_logfile
=
'/var/log/openvpn.log'
;
...
...
@@ -64,27 +64,22 @@ include("head.inc");
<section
class=
"col-xs-12"
>
<?
include
(
'diag_logs_tabs.inc'
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"container-fluid"
>
<p>
<?php
printf
(
gettext
(
"Last %s OpenVPN log entries"
),
$nentries
)
?>
</p>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-sort"
>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
"Last %s OpenVPN log entries"
),
$nentries
)
?>
</strong></td></tr>
<?php
dump_clog
(
$openvpn_logfile
,
$nentries
);
?>
<tr><td
colspan=
"2"
>
<form
action=
"diag_logs_openvpn.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
</td></tr>
</table>
</div>
<form
action=
"diag_logs_openvpn.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
</div>
</div>
</section>
</div>
</div>
...
...
src/www/diag_logs_relayd.php
View file @
c97e95bd
...
...
@@ -70,7 +70,7 @@ include("head.inc");
<table
class=
"table table-striped table-sort"
>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
'Last %s Load Balancer log entries'
),
$nentries
);
?>
</strong></td></tr>
<?php
dump_clog
(
$relayd_logfile
,
$nentries
);
?>
<tr><td>
<tr><td
colspan=
"2"
>
<form
action=
"diag_logs_relayd.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
...
...
src/www/diag_logs_tabs.inc
View file @
c97e95bd
...
...
@@ -31,10 +31,8 @@ $tab_array = array();
$tab_array
[]
=
array
(
gettext
(
"System"
),
$active_tab
==
"/diag_logs.php"
,
"diag_logs.php"
);
$tab_array
[]
=
array
(
gettext
(
"Firewall"
),
$active_tab
==
"/diag_logs_filter.php"
,
"diag_logs_filter.php"
);
$tab_array
[]
=
array
(
gettext
(
"DHCP"
),
$active_tab
==
"/diag_logs_dhcp.php"
,
"diag_logs_dhcp.php"
);
$tab_array
[]
=
array
(
gettext
(
"Portal Auth"
),
$active_tab
==
"/diag_logs_auth.php"
,
"diag_logs_auth.php"
);
$tab_array
[]
=
array
(
gettext
(
"PPP"
),
$active_tab
==
"/diag_logs_ppp.php"
,
"diag_logs_ppp.php"
);
$tab_array
[]
=
array
(
gettext
(
"VPN"
),
$active_tab
==
"/diag_logs_vpn.php"
,
"diag_logs_vpn.php"
);
$tab_array
[]
=
array
(
gettext
(
"OpenVPN"
),
$active_tab
==
"/diag_logs_openvpn.php"
,
"diag_logs_openvpn.php"
);
$tab_array
[]
=
array
(
gettext
(
"Proxy"
),
$active_tab
==
"/diag_logs_proxy.php"
,
"diag_logs_proxy.php?type=cache"
);
$tab_array
[]
=
array
(
gettext
(
"Settings"
),
$active_tab
==
"/diag_logs_settings.php"
,
"diag_logs_settings.php"
);
display_top_tabs
(
$tab_array
);
src/www/vpn_openvpn_export.php
View file @
c97e95bd
...
...
@@ -29,6 +29,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"services.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/vpn_openvpn_export_shared.php
View file @
c97e95bd
...
...
@@ -29,6 +29,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"services.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
...
...
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