Yes, we can use the attached files to setup a temporal fudge.
The file ClientBundleGenerator.pm must copied
over /usr/share/perl5/EBox/OpenVPN/Server/ClientBundleGenerator.pm .
The file 'clientBundle.mas' must copied
over /usr/share/ebox/templates/openvpn/clientBundle.mas 
Before overwrite any older file it may be good idea to backup it.

After you put the files in place, you must restart apache with the
command '/etc/init.d/ebox apache restart'.




Cheers,
  Javier


El lun, 17-09-2007 a las 11:05 -0400, Andrew Latham escribió:
> Can I force this as I have the eth0 set to the extern ip address and
> know the setup...
> 
> 
> On 9/17/07, Javier Amor García <[EMAIL PROTECTED]> wrote:
> > Hello,
> >   The problem is that the web service of www.showmyip.com is down.
> >   We use www.showmyip.com to try to guess the external address of the
> > network interfaces.  The user has later the option to change the address
> > if the guess is wrong.
> >  It seems that we have a bug, that makes eBox unable to continue the
> > operation if the said web service is down.
> >
> > You will able to use the bundle feature as soon as showmyip.com goes up
> > agian. And I will address the bug  as soon the schedule allows me.
> >
> > Cheers,
> >   Javier
> >
> > El lun, 17-09-2007 a las 10:08 -0400, Andrew Latham escribió:
> > > here is what I am seeing, I need to check this out...
> > >
> > > --09:51:14--  http://www.showmyip.com/simple/
> > >   (try:19) => `/var/lib/ebox/tmp//openvpn-wget.html'
> > > Connecting to www.showmyip.com[67.15.225.36]:80... connected.
> > > HTTP request sent, awaiting response...
> > > Read error (Connection timed out) in headers.
> > > Retrying.
> > >
> > > --09:51:30--  http://www.showmyip.com/simple/
> > >   (try:20) => `/var/lib/ebox/tmp//openvpn-wget.html'
> > > Connecting to www.showmyip.com[67.15.225.36]:80... failed: Connection 
> > > timed out.
> > > Giving up.
> > >
> > >
> > >
> > >
> > > On 9/17/07, Javier Amor García <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > >   the logs are at /'var/lib/ebox/log'. In this case the error message
> > > > should be at the last lines of the file 'ebox.log'.
> > > >
> > > > Cheers,
> > > >   Javier
> > > >
> > > > El lun, 17-09-2007 a las 09:36 -0400, Andrew Latham escribió:
> > > > > in konquer....
> > > > >
> > > > > "An internal error related to a template has occurred. This is a bug,
> > > > > relevant information can be found in the logs."
> > > > >
> > > > > where are the logs, I don't see them in /var/log/  ???
> > > > >
> > > > >
> > > > > On 9/17/07, Javier Uruen Val <[EMAIL PROTECTED]> wrote:
> > > > > > [...]
> > > > > > > VPN - I setup a VPN.  "/ebox/OpenVPN/ClientBundle?name=test" sits
> > > > > > > there and waits for a while.  At one point I even had to restart 
> > > > > > > the
> > > > > > > /etc/init.d/ebox
> > > > > >
> > > > > > Please, could you tell me what browser and version you are using?
> > > > > >
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > Ebox-user mailing list
> > > > > > [email protected]
> > > > > > https://lists.warp.es/mailman/listinfo/ebox-user
> > > > > >
> > > > >
> > > > >
> > > >
> > > > _______________________________________________
> > > > Ebox-user mailing list
> > > > [email protected]
> > > > https://lists.warp.es/mailman/listinfo/ebox-user
> > > >
> > >
> > >
> > > _______________________________________________
> > > Ebox-user mailing list
> > > [email protected]
> > > https://lists.warp.es/mailman/listinfo/ebox-user
> >
> > _______________________________________________
> > Ebox-user mailing list
> > [email protected]
> > https://lists.warp.es/mailman/listinfo/ebox-user
> >
> 
> 
> -- 
> /*
>  Andrew Latham
>  LATHAMA (lay-th-ham-eh)
>  [EMAIL PROTECTED]
>  [EMAIL PROTECTED]
> */
> _______________________________________________
> Ebox-user mailing list
> [email protected]
> https://lists.warp.es/mailman/listinfo/ebox-user

Attachment: ClientBundleGenerator.pm
Description: Perl program

<%args>
$name
$disabled
@availableCertificates
@addresses
</%args>
<%init>
use EBox::Gettext;

my @certificateOptions = map { { value => $_ } } @availableCertificates; 
my $certificateInput =  [ 
                         name => 'clientCertificate', 
                         printableName => __(q{Client's certificate}), 
                         input => 'select', 
                         options => [EMAIL PROTECTED] ,  
                         help => __('This certificate will be used by the 
client to authenticate itself to the server'),
                        ];

my $osInput = [
                         name => 'os', 
                         printableName => __(q{Client's operative system}), 
                         input => 'select', 
                          options => [ 
                                      {value => 'windows', printableValue 
=>'Windows'}, 
                                      {value => 'linux',   printableValue 
=>'Linux'} 
                                     ] , 
                                        
                         help => __('This selection should match the operative
                         system running on the client computer'),
                        ];



my @formElements = (
                     [ 
                        name => 'name', value => $name, input =>'hidden',
                     ],
                     $osInput,
                     $certificateInput,

                    ); 


my @addressesInputs = ();


my $nInputs = @addresses;
$nInputs = 2 if $nInputs < 2;

foreach my $i (0 .. $nInputs) {
  my $name = "ip$i";
  my $value = $i > @addresses ? '' : $addresses[$i];
  defined $value or $value = '';

  my $printableName;
  my $help;
  if ($i == 0) {
    $printableName = __(q{Server's IP address});
    $help          = __('This address should be the one used to reach the 
server.');
  }
  else {
    $printableName = __(q{Additional server's IP address (optional)});
    $help          = __('An additional address to reach the server can be 
specified here');
   }
  
  my $input = [  name => $name, value => $value, printableName => 
$printableName, help => $help ];
  push @addressesInputs, $input;
}


push @formElements, @addressesInputs;

# the submit button must be after the addresses
push @formElements, [ 
                       name => 'download', input => 'submit',
                       value => __(q{Download client's files}),
                     ];


</%init>
%# environment check..

% if ($disabled)  {
  <& /openvpn/caRequired.mas, caCreated => 0 &>
% return;
% }
% elsif (@availableCertificates == 0) {
   <& /openvpn/caRequired.mas, caCreated => 1 &>
%  return;
% }

<h3><% __x('Client files for server {name}', name => $name) %></h3>
<div class='note'>
<% __('You can download an archive with all the required files to set up a
OpenVPN client. Remember to place the contained files in the client machine 
configuration directory') %>
<p>
% if (@addresses) {
<%  __(q{eBox  has guessed for you the values of the addresses' fields. If 
those values are incorrect or you want another ones, change them}) %>
% }
% else {
<%  __(q{eBox was unable to guess for you the values of the server's address. 
Please, enter the value manually or check your internet connection and try 
again}) %>
% } 
</div>
<form  method='POST' >
<& /formTable.mas, rows => [EMAIL PROTECTED] &>
</form>
<a href='Index'> <% __(q{Return to the OpenVPN's main page}) %></a>

_______________________________________________
Ebox-user mailing list
[email protected]
https://lists.warp.es/mailman/listinfo/ebox-user

Responder a