EFW Support

Support => General Support => Topic started by: Di4bLo on Friday 15 May 2015, 09:25:55 pm



Title: EFW Static routing doesn't work properly (3.0.5 beta 1)
Post by: Di4bLo on Friday 15 May 2015, 09:25:55 pm
I had the same problem on 2.4.1 and 2.5.1.

Green 10.0.0.0/24
Gateway 192.168.0.2

I want to create a static route for the subnet 10.0.1.0/24 so I create (via GUI):
Source: 10.0.1.0/24
Destination 0.0.0.0
Via Gateway: 192.168.0.1

After applied, I can see it on the routes page, but it doesn't work.
Through the console I can see:

root@efw-1431589536:/ # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0          *               255.255.255.0   U     0      0        0 br0
192.168.0.0    *               255.255.255.0   U     0      0        0 eth1
default         192.168.0.2     0.0.0.0         UG    0      0        0 eth1

root@efw-1431589536:/ # cat /var/efw/routing/config
on,10.0.1.0,0.0.0.0,192.168.0.2,Staff,,,,,,,

root@efw-1431589536:/ # ip rule show
0:      from all lookup local
5:      from all to 10.0.0.4/24 lookup main
5:      from all to 192.168.0.0/24 lookup main
10:     from all fwmark 0x10/0x7f8 lookup gateway-192.168.0.2
10:     from 10.0.1.0 to 0.0.0.0 lookup gateway-192.168.0.2
10:     from all to 10.0.0.0/24 lookup main
10:     from all to 192.168.0.0/24 lookup main
199:    from all fwmark 0x8/0x7f8 lookup uplink-main
200:    from 192.168.0.5 lookup uplink-main
32766:  from all lookup main
32767:  from all lookup default