Author Topic: Salida siempre por el mismo gateway.  (Read 3231 times)

x04n

  • Zen Apprentice
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Salida siempre por el mismo gateway.
« on: February 15, 2010, 04:49:58 pm »
Tengo configurado el EBOX como router de salida a internet y tenemos dos ADSL.
Las dos ADSL se encuentran en eth0 y están configuradas en el aparatado de "Gateway".
En el balanceo de carga le he puesto que la red eth1 salga siempre por el mismo gateway pero no hace caso y sale cada ves por un adsl. ¿Sabeis si es un bug o no lo configuro correctamente?

Gracias.

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Salida siempre por el mismo gateway.
« Reply #1 on: February 15, 2010, 05:24:20 pm »
Puedes postear la salida de:

Code: [Select]
iptables -t mangle -L -n -v
y
Code: [Select]
ip route ls table default

x04n

  • Zen Apprentice
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Salida siempre por el mismo gateway.
« Reply #2 on: February 15, 2010, 05:31:01 pm »
Muy gustosamente lo postearia pero en tengo otro problema que lo he puesto en este post http://forum.ebox-platform.com/index.php?topic=2999.0 y todavia no lo he resuelto.

x04n

  • Zen Apprentice
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Salida siempre por el mismo gateway.
« Reply #3 on: February 16, 2010, 09:50:06 am »
Bueno, ahora ya he solucionado el tema de acceso a la shell.
Aquí dejo las salidas que me comentó javi:

Code: [Select]
~# iptables -t mangle -L -n -v
Chain PREROUTING (policy ACCEPT 89229 packets, 48M bytes)
 pkts bytes target     prot opt in     out     source               destination         
 8001 5955K CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0           CONNMARK restore
  480  300K MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           MARK match 0x0/0xff MAC 00:23:F8:80:1B:74 MARK set 0x1
  243 13228 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           MARK match 0x0/0xff MAC 00:23:F8:D3:B1:7D MARK set 0x2
  153 11040 MARK       all  --  eth3   *       0.0.0.0/0            0.0.0.0/0           MARK match 0x0/0xff MARK set 0x1
 7676 5662K CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0           CONNMARK save 

Chain INPUT (policy ACCEPT 41911 packets, 25M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 47137 packets, 23M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 31882 packets, 23M bytes)
 pkts bytes target     prot opt in     out     source               destination         
 7078 6071K CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0           CONNMARK restore
   82 54968 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           OWNER GID match 124 MARK set 0x1

Chain POSTROUTING (policy ACCEPT 78972 packets, 46M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain EBOX-SHAPER (0 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain EBOX-SHAPER-eth1 (0 references)
 pkts bytes target     prot opt in     out     source               destination     

y

Code: [Select]
# ip route ls table default
default
nexthop via 192.168.1.1  dev eth0 weight 15
nexthop via 192.168.1.2  dev eth0 weight 15

Quedo a la espera de vuestros comentarios.

Gracias.

x04n

  • Zen Apprentice
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Salida siempre por el mismo gateway.
« Reply #4 on: February 17, 2010, 01:04:33 pm »
¿Puede que sea porque tengo configurado el proxy transparente?