[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Erro no OpenVPN



Caros,
estou com o seguinte erro na openvpn:
 
: bad interpreter: No such file or directory./matriz.up: /bin/bash            
 FAILED-> matriz.                                                             
Feb  5 23:49:23 fit ovpn-matriz[2036]: OpenVPN 2.0 i386-pc-linux [SSL] [LZO] [E
OLL] built on Nov  3 2005                                                     
Feb  5 23:49:23 fit ovpn-matriz[2036]: WARNING: --ping should normally be used
ith --ping-restart or --ping-exit                                             
Feb  5 23:49:23 fit ovpn-matriz[2036]: Diffie-Hellman initialized with 1024 bit
key                                                                           
Feb  5 23:49:23 fit ovpn-matriz[2036]: WARNING: file 'matriz.key' is group or o
hers accessible                                                               
Feb  5 23:49:23 fit ovpn-matriz[2036]: Control Channel MTU parms [ L:1541 D:138
EF:38 EB:0 ET:0 EL:0 ]                                                        
Feb  5 23:49:23 fit ovpn-matriz[2036]: TUN/TAP device tun0 opened             
Feb  5 23:49:23 fit ovpn-matriz[2036]: ifconfig tun0 10.10.0.1 pointopoint 10.1
.0.2 mtu 1500                                                                 
Feb  5 23:49:23 fit ovpn-matriz[2036]: ./matriz.up tun0 1500 1541 10.10.0.1 10.
0.0.2 init                                                                    
Feb  5 23:49:23 fit ovpn-matriz[2036]: script failed: shell command exited with
error status: 126                                                             
Feb  5 23:49:23 fit ovpn-matriz[2036]: Exiting                                
Feb  5 23:49:24 fit kernel: Losing some ticks... checking if CPU frequency chan
ed.                                                                            
Ele startta o daemon, mas quando chega no matriz.up da o erro:                           
Feb  5 23:49:23 fit ovpn-matriz[2036]: ./matriz.up tun0 1500 1541 10.10.0.1 10.
0.0.2 init                                                                    
Feb  5 23:49:23 fit ovpn-matriz[2036]: script failed: shell command exited with
error status: 126                                                             
Feb  5 23:49:23 fit ovpn-matriz[2036]: Exiting 
 
eu tenei executar o script matriz.up direto no shell:
 
fit:/etc/openvpn# ./matriz.up                                                
: bad interpreter: No such file or directory                           
 
Abaixo segue o conteúdo do arquivo:
 
#!/bin/bash                                                                   
route add -net 10.10.1.0 netmask 255.255.255.0 gw $5                           
                                                                      
Já atualizei o  bash da maquina e monti um script que funcionaou sem problemas, será que algume pode me ajudar:
 
Att.
 
Moreira.

 
      
 
 

Reply to: