A mi esto no me funciona... lo he probado con un compañero del trabajo que lo tengo justo frente mía y nada de nada...
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
Después de conectarse a xxxxxx, parece no haber acceso a Internet.
Esto puede indicar que su VPN no está configurada correctamente.
...
2017-05-20 01:14:58 Opening utun (connect(AF_SYS_CONTROL)): Resource busy
2017-05-20 01:14:58 Opened utun device utun1
2017-05-20 01:14:58 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
2017-05-20 01:14:58 MANAGEMENT: >STATE:1495235698,ASSIGN_IP,,10.8.0.14,
2017-05-20 01:14:58 /sbin/ifconfig utun1 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2017-05-20 01:14:58 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
2017-05-20 01:14:58 /sbin/ifconfig utun1 10.8.0.14 10.8.0.13 mtu 1500 netmask 255.255.255.255 up
2017-05-20 01:14:58 PLUGIN_CALL: POST /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.15-openssl-1.0.2k/openvpn-down-root.so/PLUGIN_UP status=0
2017-05-20 01:14:58 /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw utun1 1500 1572 10.8.0.14 10.8.0.13 init
**********************************************
Start of output from client.up.tunnelblick.sh
NOTE: No network configuration changes need to be made.
WARNING: Will NOT monitor for other network configuration changes.
WARNING: Will NOT disable IPv6 settings.
DNS servers 'xx.xx.xx.xx xx.xx.xx.xx' will be used for DNS queries when the VPN is active
NOTE: The DNS servers do not include any free public DNS servers known to Tunnelblick. This may cause DNS queries to fail or be intercepted or falsified even if they are directed through the VPN. Specify only known public DNS servers or DNS servers located on the VPN network to avoid such problems.
Flushed the DNS cache via dscacheutil
/usr/sbin/discoveryutil not present. Not flushing the DNS cache via discoveryutil
Notified mDNSResponder that the DNS cache was flushed
End of output from client.up.tunnelblick.sh
**********************************************
2017-05-20 01:15:00 *Tunnelblick: No 'connected.sh' script to execute
2017-05-20 01:15:00 /sbin/route add -net xx.xx.xx.xx 192.168.1.1 255.255.255.255
route: writing to routing socket: File exists
add net xx.xx.xx.xx: gateway 192.168.1.1: File exists
2017-05-20 01:15:00 /sbin/route add -net 0.0.0.0 10.8.0.13 128.0.0.0
add net 0.0.0.0: gateway 10.8.0.13
2017-05-20 01:15:00 /sbin/route add -net 128.0.0.0 10.8.0.13 128.0.0.0
add net 128.0.0.0: gateway 10.8.0.13
2017-05-20 01:15:00 MANAGEMENT: >STATE:1495235700,ADD_ROUTES,,,
2017-05-20 01:15:00 /sbin/route add -net 10.8.0.1 10.8.0.13 255.255.255.255
add net 10.8.0.1: gateway 10.8.0.13
2017-05-20 01:15:00 GID set to nogroup
2017-05-20 01:15:00 UID set to nobody
2017-05-20 01:15:00 Initialization Sequence Completed
2017-05-20 01:15:00 MANAGEMENT: >STATE:1495235700,CONNECTED,SUCCESS,10.8.0.14,xx.xx.xx.xx
...
function areUserAndPasswordValid($user, $password) {
global $db, $userId;
$query = SQLite3::escapeString('SELECT userId, password FROM users WHERE username = "' . $user . '"');
$result = $db->query($query) or die ("Invalid query: " . $query . ". Field user introduced is: " . $user);
$row = $result->fetchArray();
if ($row === FALSE)
return FALSE;
if ($password == $row['password'])
{
$userId = $row['userId'];
$_COOKIE['userId'] = $userId;
return TRUE;
}
else
{
return FALSE;
}
}