Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
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
Administrator
pve-manager
Commits
787217cd
Commit
787217cd
authored
Aug 01, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to configure cipher list for pveproxy
parent
d7644255
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
APIDaemon.pm
PVE/APIDaemon.pm
+3
-0
pveproxy
bin/pveproxy
+10
-1
No files found.
PVE/APIDaemon.pm
View file @
787217cd
...
...
@@ -201,6 +201,7 @@ sub read_proxy_config {
$shcmd
.=
'
echo
\
"ALLOW_FROM:
\
$ALLOW_FROM
\
";
';
$shcmd
.=
'
echo
\
"DENY_FROM:
\
$DENY_FROM
\
";
';
$shcmd
.=
'
echo
\
"POLICY:
\
$POLICY
\
";
';
$shcmd
.=
'
echo
\
"CIPHERS:
\
$CIPHERS
\
";
';
my
$data
=
-
f
$conffile
?
`
bash -c "
$shcmd
"
`
:
'';
...
...
@@ -218,6 +219,8 @@ sub read_proxy_config {
}
elsif
(
$key
eq
'
POLICY
')
{
die
"
unknown policy '
$value
'
\n
"
if
$value
!~
m/^(allow|deny)$/
;
$res
->
{
$key
}
=
$value
;
}
elsif
(
$key
eq
'
CIPHERS
')
{
$res
->
{
$key
}
=
$value
;
}
else
{
# silently skip everythin else?
}
...
...
bin/pveproxy
View file @
787217cd
...
...
@@ -92,7 +92,7 @@ eval {
logfile => '/var/log/pveproxy/access.log',
lockfile => $lockfile,
ssl => {
cipher_list => 'HIGH:MEDIUM:!aNULL:!MD5',
cipher_list =>
$proxyconf->{CIPHERS} ||
'HIGH:MEDIUM:!aNULL:!MD5',
key_file => '/etc/pve/local/pve-ssl.key',
cert_file => '/etc/pve/local/pve-ssl.pem',
},
...
...
@@ -288,6 +288,15 @@ The default policy is 'allow'.
No match | deny | allow
Match Both Allow
&
Deny | deny | allow
=head1 SSL Cipher Suite
You can define the chiper list in /etc/default/pveproxy, for example
CIPHERS="HIGH:MEDIUM:!aNULL:!MD5"
Above is the default. See the ciphers(1) man page from the openssl
package for list of all available options.
=head1 FILES
/etc/default/pveproxy
...
...
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