Menú principal
Menú

Mostrar Mensajes

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.

Menú Mostrar Mensajes

Mensajes - bacalao

#1
Servidores de archivos / Problemas con nextcloud
Diciembre 05, 2016, 02:20:59 PM
Buenas amigos del foro, hoy de nuevo por caca porque instale nextcloud una bifurcacion del owncloud todo en la instalacion estuvo perfecto lo instale bajo la distro de centos 7. en una maquina virtual hyper -v  de un servidor hp. 
El problema esta que quiero que los datos o la carpeta data  que se encuentra en esta direccion /var/www/html/nextcloud/data aparesca en el disco E:/nexcloud/data bajo windows 2012 r2 el detalle es que cuando comparto la carpeta

mount.cifs //192.168.1.5/nextcloud/data /var/www/html/nextcloud/data -o user=Admin,uid=apache,forceuid,file_mode=0770,dir_mode=0770


pero cuando la comaparto el nextcloud me arroja este error

Error interno del servidor
El servidor ha encontrado un error y no puede completar la solicitud.
Por favor, contacte con el administrador del servidor si este error reaparece múltiples veces. Incluya asimismo los detalles técnicos que se muestran a continuación.
Pueden verse más detalles en el registro del servidor.

Detalles técnicos
Dirección remota: 186.94.33.237
ID de la solicitud: WEW6UdmD51Qfcmx8lDAFawAAAAU


y cuando la dejo de compartir trabaja bien alguien sabe como puedo resolver este detallido o alguien ha trabajado con nextcloud?



Muchas gracias de antemano

Atte. Mohamed Hammaud
#2
Hola amigo yo puediera ayudarte tengo un cloud core 1016-12g  alli tengo el balanceo de carga con PCC. yo me encuentro en venezuela seria cuestion de cuadrar por mp y te ayudo por el team
#3
Otros / Mikrotik Vs PfSense
Abril 14, 2015, 03:15:19 PM
Buenas a todos del foro tengo una curiosidad sobre el pfsense, yo he utilizado siempre Mikrotik, pero no se si el pfsense es mejor que el mikrotik en cuanto administracion de usuario, firewall, queues, etc.


Si hay alguien que ha usado pfsense porfavor dejar su opinion o comentario.


Muchas gracias
#4
Amigos del foro después de unas vacaciones con mi familia he regresado otra vez a la rutina. Lo primero que deberíamos hacer serian las Tablas, que conformara la base datos del sistema, al tener como quien dice el esqueleto lo demás es carpintería.


Saludos a todos
#5
RaptorCache en General / Re:detalles en raptor
Marzo 20, 2015, 06:34:36 PM
Cita de: venezu en Marzo 20, 2015, 06:30:41 PM
estas usando navegacion en privado si es asi navega normal en amazon, o tienes descativadolos cookies en el navegador y muchas paginas los necesitan

No porque resulta que cuando desactivo el raptor funciona bien y no me da ese error. Otra cosita no sera problema del archivo que se crea fw.sh para los iptable el mio esta de la siguiente manera


Código (html5) [Seleccionar]

#!/bin/bash
echo ";;;;;;;;;;;;;;;;;;;;;;;"
echo ";     RaptorCache     ;"
echo ";;;;;;;;;;;;;;;;;;;;;;;"

#Borrar cadenas anteriores
iptables -F
iptables -X
iptables -Z
iptables -t nat -F

#Condiciones por defecto
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT

#Aceptamos el localhost
iptables -A INPUT -i lo -j ACCEPT

#Aceptamos la red local
iptables -A INPUT -s 10.10.0.0/24 -j ACCEPT
iptables -A INPUT -s 10.0.1.0/24 -j ACCEPT
iptables -A INPUT -s 10.0.2.0/24 -j ACCEPT
iptables -A INPUT -s 10.0.3.0/24 -j ACCEPT
iptables -A INPUT -s 10.0.4.0/24 -j ACCEPT
iptables -A INPUT -s 10.0.5.0/24 -j ACCEPT

iptables  -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

echo 1 > /proc/sys/net/ipv4/ip_forward


lo unico que me sale cuando lo ejecuto es esto

Código (html5) [Seleccionar]

echo ";;;;;;;;;;;;;;;;;;;;;;;"
echo ";     RaptorCache     ;"
echo ";;;;;;;;;;;;;;;;;;;;;;;"
#6
RaptorCache en General / Re:detalles en raptor
Marzo 20, 2015, 05:59:23 PM
Cita de: venezu en Marzo 20, 2015, 05:29:11 PM


Ok listo ahora por lo menos en amazon me sale este error

Código (html5) [Seleccionar]

Important messages about items in your Cart:
Please Enable Cookies in your Web Browser to Continue.

Learn more about cookies and how to enable them.

Once you have enabled cookies, please click here to continue shopping.


cuando tengo el raptor activo
#7
RaptorCache en General / Re:detalles en raptor
Marzo 20, 2015, 05:24:25 PM
Cita de: venezu en Marzo 20, 2015, 05:16:09 PM
amigo no entiendo esa redireccion y dice enmascarado si  usas por mangle  yo solo uso esto asi
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes to-addresses=0.0.0.0
add chain=dstnat comment="No pasar por el Cache" dst-address-list=no-cache \
    dst-port=80 protocol=tcp
add action=masquerade chain=srcnat comment="enmascarado de wan" \
    out-interface=ether1


Amigo entonces quito la regla del nat y solo dejo las del mangle??
#8
RaptorCache en General / Re:detalles en raptor
Marzo 20, 2015, 03:27:41 PM
Cita de: venezu en Marzo 20, 2015, 12:21:35 PM
publica tus reglas nat y mangle a ver que pueda ser

Reglas del Nat

Código (php) [Seleccionar]

/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes to-addresses=0.0.0.0
add chain=dstnat comment="No pasar por el Cache" dst-address-list=no-cache \
    dst-port=80 protocol=tcp
add action=masquerade chain=srcnat comment="Redirect Raptorcache" disabled=\
    yes src-address=10.10.0.0/30
add action=masquerade chain=srcnat out-interface=Wan
add action=dst-nat chain=dstnat dst-port=5006 protocol=tcp to-addresses=\
    192.168.1.80 to-ports=80
add action=dst-nat chain=dstnat dst-port=5007 protocol=tcp to-addresses=\
    192.168.1.145 to-ports=5007
add action=dst-nat chain=dstnat disabled=yes dst-port=2083 protocol=tcp \
    to-addresses=192.168.1.64 to-ports=8080
add action=dst-nat chain=dstnat disabled=yes dst-port=1442 protocol=tcp \
    to-addresses=10.10.0.250 to-ports=82



Reglas del Mangle

Código (php) [Seleccionar]

/ip firewall mangle
add action=mark-routing chain=prerouting comment=\
    "Raptor - Mangle ====================>" disabled=yes dst-port=80 \
    in-interface=Lan new-routing-mark=raptor_route passthrough=no protocol=\
    tcp
add action=mark-connection chain=forward comment="== RAPTORCACHE ==" content=\
    "X-Cache: HIT from Raptor" disabled=yes new-connection-mark=\
    raptor-connection
add action=mark-packet chain=forward connection-mark=raptor-connection \
    disabled=yes new-packet-mark=raptor-packs passthrough=no
add action=mark-connection chain=forward comment="==SQUID - TOS 12==" \
    disabled=yes dscp=12 new-connection-mark=squid-connection
add action=mark-packet chain=forward connection-mark=squid-connection \
    disabled=yes new-packet-mark=squid-packs
add action=mark-connection chain=prerouting comment="P2p TRAFFIC" \
    new-connection-mark=p2p_connect p2p=all-p2p
add action=mark-packet chain=prerouting connection-mark=p2p_connect \
    new-packet-mark=P2p



Saludos y Gracias
#9
RaptorCache en General / Re:detalles en raptor
Marzo 20, 2015, 12:12:07 PM
Cita de: venezu en Marzo 20, 2015, 12:05:15 PM
como estas usando tu raptor con MK o swich adminitrable, si es con mk puede que alguna regla este molestando, pues yo no presento problemas de ese tipo solo se me presento uno con la pagina del seniat con lo del rif solo hice que no pasara por el raptor

hola amigo Por MK version 6.27
#10
RaptorCache en General / detalles en raptor
Marzo 20, 2015, 11:44:24 AM
Buenas a todos del foro tengo el siguiente problema y es que cuando tengo el raptor activado mi red se pone lenta y las paginas cargan a la mitad, lo otro es que cuando entran en amazon y se logean todo chevere hasta allí, pero cuando le dan al boton de comprar le dice que debe habilitar las cookies, pero cuando desactivo el raptor no me pide nada de eso, alguien sabe porque sucede esto.


Saludos y muchas gracias a todos


#11
Cita de: freedarwuin en Marzo 19, 2015, 06:24:25 PM
excelente yo tengo eso ya tengo una buena base donde podemos sacar codigos lo que quiero es publicar lo que tengo para que lo veamos lo que queremos hacer... ya se esta instalando el debian en la pc para subir los archivos.

hermano q tanto sabes de php

porque aparte de eso trabajaremos con el api php mikrotik

Hermano te soy sincero tengo años que no programo en PHP pero eso nunca se olvida, lo que tengo es que ponerme al dia nuevamente pero cuenta con mi apoyo, lo único malo es que de diseño soy malisimooooo.

#12
Cita de: freedarwuin en Marzo 19, 2015, 05:53:35 PM
Y MIKROLAN?

Pudiera ser MIKROLAN WEB

y navegando por la web conseguí esto como trabajar ROUTEROS por php

apimikrotik.php
Código (php) [Seleccionar]

<?php
/*****************************
 *
 * RouterOS PHP API class v1.4
 * Author: Denis Basta
 * Contributors:
 *    Miguel Figueroa
 *    Nick Barnes
 *    Ben Menking (ben [at] infotechsc [dot] com)
 *    Jeremy Jefferson (http://jeremyj.com)
 *    Cristian Deluxe (djcristiandeluxe [at] gmail [dot] com)
 *    Nicolas Daitsch, Nro de Puerto publico 
 *
 * http://www.mikrotik.com
 * http://wiki.mikrotik.com/wiki/API_PHP_class
 *
 ******************************/

class routeros_api
{
    var 
$debug false;      // Show debug information
    
var $error_no;           // Variable for storing connection error number, if any
    
var $error_str;          // Variable for storing connection error text, if any
    
var $attempts 5;       // Connection attempt count
    
var $connected false;  // Connection state
    
var $delay 3;          // Delay between connection attempts in seconds
    //var $port = 8728;        // Port to connect to
    
var $timeout 3;        // Connection attempt timeout and data read timeout
    
var $socket;             // Variable for storing socket resource
    
    /**
     * Print text for debug purposes
     *
     * @param string      $text       Text to print
     *
     * @return void
     */
    
function debug($text)
    {
        if (
$this->debug)
            echo 
$text "\n";
    }


    
/**
     * 
     *
     * @param string        $length
     *
     * @return void
     */
    
function encode_length($length)
    {
        if (
$length 0x80) {
            
$length chr($length);
        } else if (
$length 0x4000) {
            
$length |= 0x8000;
            
$length chr(($length >> 8) & 0xFF) . chr($length 0xFF);
        } else if (
$length 0x200000) {
            
$length |= 0xC00000;
            
$length chr(($length >> 16) & 0xFF) . chr(($length >> 8) & 0xFF) . chr($length 0xFF);
        } else if (
$length 0x10000000) {
            
$length |= 0xE0000000;
            
$length chr(($length >> 24) & 0xFF) . chr(($length >> 16) & 0xFF) . chr(($length >> 8) & 0xFF) . chr($length 0xFF);
        } else if (
$length >= 0x10000000)
            
$length chr(0xF0) . chr(($length >> 24) & 0xFF) . chr(($length >> 16) & 0xFF) . chr(($length >> 8) & 0xFF) . chr($length 0xFF);
        return 
$length;
    }


    
/**
     * Login to RouterOS
     *
     * @param string      $ip         Hostname (IP or domain) of the RouterOS server
     * @param string      $login      The RouterOS username
     * @param string      $password   The RouterOS password
     *
     * @return boolean                If we are connected or not
     */
    
function connect($ip$login$password$port)
    {
        for (
$ATTEMPT 1$ATTEMPT <= $this->attempts$ATTEMPT++) {
            
$this->connected false;
            
$this->debug('Connection attempt #' $ATTEMPT ' to ' $ip ':' $port '...');
            if (
$this->socket = @fsockopen($ip$port$this->error_no$this->error_str$this->timeout)) {
                
socket_set_timeout($this->socket$this->timeout);
                
$this->write('/login');
                
$RESPONSE $this->read(false);
                if (
$RESPONSE[0] == '!done') {
                    if (
preg_match_all('/[^=]+/i'$RESPONSE[1], $MATCHES)) {
                        if (
$MATCHES[0][0] == 'ret' && strlen($MATCHES[0][1]) == 32) {
                            
$this->write('/login'false);
                            
$this->write('=name=' $loginfalse);
                            
$this->write('=response=00' md5(chr(0) . $password pack('H*'$MATCHES[0][1])));
                            
$RESPONSE $this->read(false);
                            if (
$RESPONSE[0] == '!done') {
                                
$this->connected true;
                                break;
                            }
                        }
                    }
                }
                
fclose($this->socket);
            }
            
sleep($this->delay);
        }
        if (
$this->connected)
            
$this->debug('Connected...');
        else
            
$this->debug('Error...');
        return 
$this->connected;
    }


    
/**
     * Disconnect from RouterOS
     *
     * @return void
     */
    
function disconnect()
    {
        
fclose($this->socket);
        
$this->connected false;
        
$this->debug('Disconnected...');
    }


    
/**
     * Parse response from Router OS
     *
     * @param array       $response   Response data
     *
     * @return array                  Array with parsed data
     */
    
function parse_response($response)
    {
        if (
is_array($response)) {
            
$PARSED      = array();
            
$CURRENT     null;
            
$singlevalue null;
            
$count       0;
            foreach (
$response as $x) {
                if (
in_array($x, array(
                    
'!fatal',
                    
'!re',
                    
'!trap'
                
))) {
                    if (
$x == '!re') {
                        
$CURRENT =& $PARSED[];
                    } else
                        
$CURRENT =& $PARSED[$x][];
                } else if (
$x != '!done') {
                    if (
preg_match_all('/[^=]+/i'$x$MATCHES)) {
                        if (
$MATCHES[0][0] == 'ret') {
                            
$singlevalue $MATCHES[0][1];
                        }
$CURRENT[$MATCHES[0][0]] = (isset($MATCHES[0][1]) ? $MATCHES[0][1] : '');
}
                }
            }
            if (empty(
$PARSED) && !is_null($singlevalue)) {
                
$PARSED $singlevalue;
            }
            return 
$PARSED;
        } else
            return array();
    }


    
/**
     * Parse response from Router OS
     *
     * @param array       $response   Response data
     *
     * @return array                  Array with parsed data
     */
    
function parse_response4smarty($response)
    {
        if (
is_array($response)) {
            
$PARSED  = array();
            
$CURRENT null;
            
$singlevalue null;
            foreach (
$response as $x) {
                if (
in_array($x, array(
                    
'!fatal',
                    
'!re',
                    
'!trap'
                
))) {
                    if (
$x == '!re')
                        
$CURRENT =& $PARSED[];
                    else
                        
$CURRENT =& $PARSED[$x][];
                } else if (
$x != '!done') {
                    if (
preg_match_all('/[^=]+/i'$x$MATCHES)) {
                        if (
$MATCHES[0][0] == 'ret') {
                            
$singlevalue $MATCHES[0][1];
                        }
                        
$CURRENT[$MATCHES[0][0]] = (isset($MATCHES[0][1]) ? $MATCHES[0][1] : '');
}
                }
            }
            foreach (
$PARSED as $key => $value) {
                
$PARSED[$key] = $this->array_change_key_name($value);
            }
            return 
$PARSED;
            if (empty(
$PARSED) && !is_null($singlevalue)) {
                
$PARSED $singlevalue;
            }
        } else {
            return array();
        }
    }


    
/**
     * Change "-" and "/" from array key to "_"
     *
     * @param array       $array      Input array
     *
     * @return array                  Array with changed key names
     */
    
function array_change_key_name(&$array)
    {
        if (
is_array($array)) {
            foreach (
$array as $k => $v) {
                
$tmp str_replace("-""_"$k);
                
$tmp str_replace("/""_"$tmp);
                if (
$tmp) {
                    
$array_new[$tmp] = $v;
                } else {
                    
$array_new[$k] = $v;
                }
            }
            return 
$array_new;
        } else {
            return 
$array;
        }
    }


    
/**
     * Read data from Router OS
     *
     * @param boolean     $parse      Parse the data? default: true
     *
     * @return array                  Array with parsed or unparsed data
     */
    
function read($parse true)
    {
        
$RESPONSE = array();
        while (
true) {
            
// Read the first byte of input which gives us some or all of the length
            // of the remaining reply.
            
$BYTE   ord(fread($this->socket1));
            
$LENGTH 0;
            
// If the first bit is set then we need to remove the first four bits, shift left 8
            // and then read another byte in.
            // We repeat this for the second and third bits.
            // If the fourth bit is set, we need to remove anything left in the first byte
            // and then read in yet another byte.
            
if ($BYTE 128) {
                if ((
$BYTE 192) == 128) {
                    
$LENGTH = (($BYTE 63) << 8) + ord(fread($this->socket1));
                } else {
                    if ((
$BYTE 224) == 192) {
                        
$LENGTH = (($BYTE 31) << 8) + ord(fread($this->socket1));
                        
$LENGTH = ($LENGTH << 8) + ord(fread($this->socket1));
                    } else {
                        if ((
$BYTE 240) == 224) {
                            
$LENGTH = (($BYTE 15) << 8) + ord(fread($this->socket1));
                            
$LENGTH = ($LENGTH << 8) + ord(fread($this->socket1));
                            
$LENGTH = ($LENGTH << 8) + ord(fread($this->socket1));
                        } else {
                            
$LENGTH ord(fread($this->socket1));
                            
$LENGTH = ($LENGTH << 8) + ord(fread($this->socket1));
                            
$LENGTH = ($LENGTH << 8) + ord(fread($this->socket1));
                            
$LENGTH = ($LENGTH << 8) + ord(fread($this->socket1));
                        }
                    }
                }
            } else {
                
$LENGTH $BYTE;
            }
            
// If we have got more characters to read, read them in.
            
if ($LENGTH 0) {
                
$_      "";
                
$retlen 0;
                while (
$retlen $LENGTH) {
                    
$toread $LENGTH $retlen;
                    
$_ .= fread($this->socket$toread);
                    
$retlen strlen($_);
                }
                
$RESPONSE[] = $_;
                
$this->debug('>>> [' $retlen '/' $LENGTH '] bytes read.');
            }
            
// If we get a !done, make a note of it.
            
if ($_ == "!done")
                
$receiveddone true;
            
$STATUS socket_get_status($this->socket);
            if (
$LENGTH 0)
                
$this->debug('>>> [' $LENGTH ', ' $STATUS['unread_bytes'] . ']' $_);
            if ((!
$this->connected && !$STATUS['unread_bytes']) || ($this->connected && !$STATUS['unread_bytes'] && $receiveddone))
                break;
        }
        if (
$parse)
            
$RESPONSE $this->parse_response($RESPONSE);
        return 
$RESPONSE;
    }


    
/**
     * Write (send) data to Router OS
     *
     * @param string      $command    A string with the command to send
     * @param mixed       $param2     If we set an integer, the command will send this data as a "tag"
     *                                If we set it to boolean true, the funcion will send the comand and finish
     *                                If we set it to boolean false, the funcion will send the comand and wait for next command
     *                                Default: true
     *
     * @return boolean                Return false if no command especified
     */
    
function write($command$param2 true)
    {
        if (
$command) {
            
$data explode("\n"$command);
            foreach (
$data as $com) {
                
$com trim($com);
                
fwrite($this->socket$this->encode_length(strlen($com)) . $com);
                
$this->debug('<<< [' strlen($com) . '] ' $com);
            }
            if (
gettype($param2) == 'integer') {
                
fwrite($this->socket$this->encode_length(strlen('.tag=' $param2)) . '.tag=' $param2 chr(0));
                
$this->debug('<<< [' strlen('.tag=' $param2) . '] .tag=' $param2);
            } else if (
gettype($param2) == 'boolean')
                
fwrite($this->socket, ($param2 chr(0) : ''));
            return 
true;
        } else
            return 
false;
    }


    
/**
     * Write (send) data to Router OS
     *
     * @param string      $com        A string with the command to send
     * @param array       $arr        An array with arguments or queries
     *
     * @return array                  Array with parsed
     */
    
function comm($com$arr = array())
    {
        
$count count($arr);
        
$this->write($com, !$arr);
        
$i 0;
        foreach (
$arr as $k => $v) {
            switch (
$k[0]) {
                case 
"?":
                    
$el "$k=$v";
                    break;
                case 
"~":
                    
$el "$k~$v";
                    break;
                default:
                    
$el "=$k=$v";
                    break;
            }
            
$last = ($i++ == $count 1);
            
$this->write($el$last);
        }
        return 
$this->read();
    }
}
?>

#13
Hola a todos las tablas para la base de datos se pudiera poner estas:

Tabla_Clientes
Tabla_Zonas
Tabla_Planes
Tabla_Servicio_tecnico
Tabla_Bancos
Tabla_Pagos
Tabla_Registrar_Pagos
Tabla_Reportes
....... y las que hagan falta

Tabla Cliente puede contener
1.-Cedula
2.-Nombre
3.-Apellido
4.-telefono
5.-email
6.-plan_activo
7.-plan_contratado
8.-plan_advertencia
9.-plan_cortado
10.-dias_corte
11.-fecha_inscrito

amigos tengo que salir un momento despues sigo con esto o si quieren pueden poner lo que se me escapo para tener algo mucho mejor
#14
Cita de: freedarwuin en Marzo 18, 2015, 08:32:00 PM
Nombre del Sistema "MikroAdmin" Slogan "Para los que saben elegir"
Nombre del Sistema "          " Slogan "Ahora es muy facil de administrar"
Descripción del proyecto:

Necesito colaboradores para realizar una Aplicacion de sistema de Gestion para mikrotik que sea para sistema opetativo linux y tambien sea para instalar en un HOSTING
la aplicacion se concetará con un servidor con software Mikrotik mediante NAS o API.

Dicho sistema de instalara en un Servidor Matriz donde hay todos los proveedores registren su WISP y de asi sus clientes
LA cantidad minima para registros de WISP sera de 50 proveedores recordando que sera una pc de pocos recursos de asi haer pruebas
y hacer mejoras de axcuerdo a las exigencias

El sistema sera Gratuito.


Debes tener las fuciones de registrar clientes por IP+MAC, Hotspot , PPPoE y PCQ
con:

Registro Averias
Registro Cientes online
Registro Clientes Suspendido
Registro de Pagos
Envio Notificacion Emails
Acoplar un sistema de mensajeria PLAYSMS
Registro de Pagos
Descarga de Facturas
Suspensiòn Clientes
Adminsitración PPPoE
Adminstración IP/MAC
Adminsitración Hostpot
Adminstración PCQ
Administracion Addres List


Presentar sus propuestas.

El nomre de mikroadmin ya esta siendo usado por otra persona y para evitar inconvenientes es mejor cambiarlo por otro nombre como MIKRONET ADMIN O MIKRO WEB ADMIN. Estoy realizando una pruebas de sacar los datos del mikrotik por la parte de hotspot y mostrarla en html

Saludos
#15
Cita de: josemanuel155 en Marzo 19, 2015, 08:13:04 AM
saludo hermano entonce deberia de quedar asi

:global GA [/ip dhcp-client get [find interface=wan1-gateway]
:global GB [/ip dhcp-client get [find interface=wan2-gateway]
:global GC [/ip dhcp-client get [find interface=wan3-Gateway]
:global GD [/ip dhcp-client get [find interface=wan4-Gateway]


el problema es que tengo que cambiar todo lo del scrip 
ya corregi lo de las comillas con razon no funciona jejeje pero estoy aprendiendo


Buenas amigo eso debe quedar asi

Código (php) [Seleccionar]

:global GA [/ip dhcp-client get [find interface=wan1]gateway]
:global GB [/ip dhcp-client get [find interface=wan2]gateway]
:global GC [/ip dhcp-client get [find interface=wan3]gateway]
:global GD [/ip dhcp-client get [find interface=wan4]gateway]


de los que yo te pase te voy a modificar el script para  la linea 1 y tu modificaras el resto

Código (php) [Seleccionar]

#SCRIPT ENVIADO POR CESAR O. RIVAS Y MODIFICADO POR MOHAMED W. HAMMAUD

#Se toman las variables de las interfaces donde esten conectados la WAN
:global GA [/ip dhcp-client get [find interface=wan1] gateway]
:global GB [/ip dhcp-client get [find interface=wan2] gateway]
:global GC [/ip dhcp-client get [find interface=wan3] gateway]
:global GD [/ip dhcp-client get [find interface=wan4] gateway]

#creamos variables globales
:global pingresultA
:global pingresultB
:global pingresultC
:global pingresultD
:global access 0


:if ([:len $GA] != 0) do={
                :global pingresultA  [/ping $GA interface=wan1 count=4]
} else={
               :global pingresultA 0
}

#Si WAN1 esta activo:

:if ($pingresultA>0) do={
    :local gatewayNuevo [/ip dhcp-client get [find interface=wan1] gateway ]
    :local gatewayActivo [/ip route get [find routing-mark=to_wan1] gateway ]
    :if ($gatewayNuevo != $gatewayActivo) do={
        /ip route set [find routing-mark=to_wan1] gateway=[/ip dhcp-client get [find interface=wan1] gateway ]
        :log info "Wan1 activo y se actualiza Gateway"
    }   
   
}

#Si WAN1 se cae:
:if ($pingresultA=0) do={

                :local status [/ip dhcp-client get [/ip dhcp-client find interface=wan1] status ]
                 :if ($status="bound") do={
                                 /ip dhcp-client set [find interface=wan1] disabled=yes
                                :local d [/ip dhcp-client get [/ip dhcp-client find interface=wan1] disabled ]
                                 :if ($d=true) do={
                                         /ip dhcp-client set [find interface=wan1] disabled=no
                                   }
                 }
             
                 :if ([:len $GB] != 0) do={
                       :global pingresultB  [/ping $GB interface=wan2 count=4]
                 } else={
                       :global pingresultB 0               
                 }

        :if ($pingresultB>0 and $access=0) do={
                :local gatewayNuevoB [/ip dhcp-client get [find interface=wan2] gateway ]
                :local gatewayActivoA [/ip route get [find routing-mark=to_wan1] gateway ]
                :if ($gatewayNuevoB != $gatewayActivoA) do={
                        /ip route set [find routing-mark=to_wan1] gateway=[/ip dhcp-client get [find interface=wan2] gateway ]
                        :log info "Wan1 inactivo se le asigna el Gateway del Wan2 "
                }       
                       :global access 1
        }

         :if ([:len $GC] != 0) do={
                       :global pingresultC  [/ping $GC interface=wan3 count=4]
                 } else={
                       :global pingresultC 0               
                 }

        :if ($pingresultC>0 && $access=0) do={
                :local gatewayNuevoB [/ip dhcp-client get [find interface=wan3] gateway ]
                :local gatewayActivoA [/ip route get [find routing-mark=to_wan1] gateway ]
                :if ($gatewayNuevoB != $gatewayActivoA) do={
                        /ip route set [find routing-mark=to_wan1] gateway=[/ip dhcp-client get [find interface=wan3] gateway ]
                        :log info "Wan1 inactivo se le asigna el Gateway del Wan3 "
                }       
                       :global access 1         
        }
               :if ([:len $GD] != 0) do={
                       :global pingresultD  [/ping $GD interface=wan4 count=4]
                 } else={
                       :global pingresultD 0               
                 }

        :if ($pingresultD>0 && $access=0) do={
                :local gatewayNuevoB [/ip dhcp-client get [find interface=wan4] gateway ]
                :local gatewayActivoA [/ip route get [find routing-mark=to_wan1] gateway ]
                :if ($gatewayNuevoB != $gatewayActivoA) do={
                        /ip route set [find routing-mark=to_wan1] gateway=[/ip dhcp-client get [find interface=wan4] gateway ]
                        :log info "Wan1 inactivo se le asigna el Gateway del Wan4 "
                }       
                  :global access 1

        }
}


Suerte con la modificacion de los demas
#16
Firewall & NAT / Problemas con juegos PS3
Marzo 17, 2015, 03:11:20 PM
Buenas a todos los amigos del foro mi problema es el siguiente tengo una persona que juega con su PS3 y me lleva la vida hecha cuadros porque desde que instale el raptor no puede acceder a sus juegos online desde su consola. Los juegos son Uncharted3, resident evil6, call of duty, the last of us, gta V. alguien le ha pasado lo mismo. o como puedo resolver ese detalle. Uso Mikrotik con Hotspot



Saludos a todos
#17
Cita de: TooR en Marzo 16, 2015, 07:33:57 PM
Ademas pendientes con el routing-mark=to_WanX
X= 1, 2, 3, 4  :-*

Si usan la misma to_Wan1, to_Wan2, to_Wan3, to_Wan4 no habrá problema.

gracias amigo Toor se me paso decir sobre el routing-mark.

lo mas importante es leer, aprender y aplicar

saludos
#18
Cita de: freedarwuin en Marzo 08, 2015, 09:49:03 AM
cuando comenzamos es sistema seragratis tengo algunos apuntes x hay

Amigos en que lenguaje se hara el sistema:
PHP, Ajax, .Net, JavaScript?

Y base datos cual trabajariamos:
Mysql, SQLServer, Interbase?

Es para tener una idea y hacer unas pruebas y dejar algo por aca 8)
#19
Cita de: josemanuel155 en Marzo 16, 2015, 06:30:06 PM
saludo hermano estaba terminando de modificar todo los scrip

no esta bien la modificacion ??
en estos momento tengo que salir a la iglesia pero regreso en 2 horas y medias lo que subi fue el primer escrip de la linea 1
Si tu interface de red se llama wan1.....5 deberia quedar asi
Código (php) [Seleccionar]

    :global GA [/ip dhcp-client get [find interface=wan2] gateway]
    :global GB [/ip dhcp-client get [find interface=wan3] gateway]
    :global GC [/ip dhcp-client get [find interface=wan4] gateway]
    :global GD [/ip dhcp-client get [find interface=wan5] gateway]
#20
Cita de: josemanuel155 en Marzo 16, 2015, 06:01:05 PM

mi hermano gracia por ayudarme aqui modifique el primer scrip para ver si esta bien



#SCRIPT ENVIADO POR CESAR O. RIVAS Y MODIFICADO POR MOHAMED W. HAMMAUD
     
    #Se toman las variables de las interfaces donde esten conectados la wan
    :global GA [/ip dhcp-client get [find interface=wan2-gateway1] gateway]
    :global GB [/ip dhcp-client get [find interface=wan3-gateway2] gateway]
    :global GC [/ip dhcp-client get [find interface=wan4-Gateway3] gateway]
    :global GD [/ip dhcp-client get [find interface=wan5-Gateway4] gateway]
     
    #creamos variables globales
    :global pingresultA
    :global pingresultB
    :global pingresultC
    :global pingresultD
    :global access 0
     
     
    :if ([:len $GA] != 0) do={
                    :global pingresultA  [/ping $GA interface=wan2-gateway1 count=4]
    } else={
                   :global pingresultA 0
    }
     
    #Si wan1 esta activo:
     
    :if ($pingresultA>0) do={
        :local gatewayNuevo [/ip dhcp-client get [find interface=wan2-gateway1] gateway ]
        :local gatewayActivo [/ip route get [find routing-mark=to_wan1] gateway ]
        :if ($gatewayNuevo != $gatewayActivo) do={
            /ip route set [find routing-mark=to_wan1] gateway=[/ip dhcp-client get [find interface=wan2-gateway1] gateway ]
            :log info "wan1 activo y se actualiza Gateway"
        } 
       
    }
     
    #Si wan1 se cae:
    :if ($pingresultA=0) do={
     
                    :local status [/ip dhcp-client get [/ip dhcp-client find interface=wan2-gateway1] status ]
                     :if ($status="bound") do={
                                     /ip dhcp-client set [find interface=wan2-gateway1] disabled=yes
                                    :local d [/ip dhcp-client get [/ip dhcp-client find interface=wan2-gateway1] disabled ]
                                     :if ($d=true) do={
                                             /ip dhcp-client set [find interface=wan2-gateway1] disabled=no
                                       }
                     }
                 
                     :if ([:len $GB] != 0) do={
                           :global pingresultB  [/ping $GB interface=wan3-gateway2 count=4]
                     } else={
                           :global pingresultB 0             
                     }
     
            :if ($pingresultB>0 and $access=0) do={
                    :local gatewayNuevoB [/ip dhcp-client get [find interface=wan3-gateway2] gateway ]
                    :local gatewayActivoA [/ip route get [find routing-mark=to_wan1] gateway ]
                    :if ($gatewayNuevoB != $gatewayActivoA) do={
                            /ip route set [find routing-mark=to_wan1] gateway=[/ip dhcp-client get [find interface=wan3-gateway2] gateway ]
                            :log info "Wan1 inactivo se le asigna el Gateway del wan2 "
                    }     
                           :global access 1
            }
     
             :if ([:len $GC] != 0) do={
                           :global pingresultC  [/ping $GC interface=wan4-Gateway3 count=4]
                     } else={
                           :global pingresultC 0             
                     }
     
            :if ($pingresultC>0 && $access=0) do={
                    :local gatewayNuevoB [/ip dhcp-client get [find interface=wan4-Gateway3] gateway ]
                    :local gatewayActivoA [/ip route get [find routing-mark=to_wan1] gateway ]
                    :if ($gatewayNuevoB != $gatewayActivoA) do={
                            /ip route set [find routing-mark=to_wan1] gateway=[/ip dhcp-client get [find interface=wan4-Gateway3] gateway ]
                            :log info "Wan1 inactivo se le asigna el Gateway del wan3 "
                    }     
                           :global access 1       
            }
                   :if ([:len $GD] != 0) do={
                           :global pingresultD  [/ping $GD interface=wan5-Gateway4 count=4]
                     } else={
                           :global pingresultD 0             
                     }
     
            :if ($pingresultD>0 && $access=0) do={
                    :local gatewayNuevoB [/ip dhcp-client get [find interface=wan5-Gateway4] gateway ]
                    :local gatewayActivoA [/ip route get [find routing-mark=to_wan1] gateway ]
                    :if ($gatewayNuevoB != $gatewayActivoA) do={
                            /ip route set [find routing-mark=to_Wan1] gateway=[/ip dhcp-client get [find interface=wan5-Gateway4] gateway ]
                            :log info "wan1 inactivo se le asigna el Gateway del wan4 "
                    }     
                      :global access 1
     
            }
    }
   

amigo mio pasame tu id y password del team y te ayudo gustosamente a que este perfecto el failover