EFW Support

Support => General Support => Topic started by: Rushlow on Wednesday 03 October 2012, 03:01:45 am



Title: Endian 2.5.1 Static Route
Post by: Rushlow on Wednesday 03 October 2012, 03:01:45 am
Hello,

I would like to add a Static Route to my endian firewall. I am able to use route add -net 192.168.0.0/16 gw 192.168.12.8 with out any issues, but after a reboot this route is deleted and needs to be added. I have setup routes in the GUI but they don't work as I would expect. Which from what I can tell is a Bug in the GUI

I have done some work with rc.local but unable to get the route to add at boot.

In the end I just need two routes added at boot

route add -net 192.168.0.0/16 gw 192.168.12.8
route add -net 10.3.0.3/32 gw 192.168.6.159

Here is what I have tried so far

I modified /etc/rc.d/rc.ipc

echo "Setting up ip accounting"
/etc/rc.d/helper/writeipac.pl
/usr/sbin/fetchipac -S
/etc/rc.d/init.d/rc.local


I created /etc/rc.d/init.d/rc.local

#!/Bin/sh

route add -net 192.168.0.0/16 gw 192.168.12.8
route add -net 10.3.0.3/32 gw 192.168.6.159

exit 0

What am I missing?


Title: Re: Endian 2.5.1 Static Route
Post by: fqureshi on Wednesday 03 October 2012, 06:31:11 am
Which Endian version you are running? I am using 2.5.1 and using static routes which I have defined through GUI and they are working without any issues.



Title: Re: Endian 2.5.1 Static Route
Post by: fqureshi on Wednesday 03 October 2012, 06:39:57 am
I am not sure if this will work for you but while doing some research to provide you with a solution I found that routing details are added to /var/efw/routing

My file has following enteries:

on,X.X.X.X&X.X.X.X&,,UPLINK:main,,,,,,,,
on,X.X.X.X/30,,X.X.X.X,For VC device,,,,,,,

I have replaced real IPs with X.X.X.X :)

Hope this might help you in some way....


Title: Re: Endian 2.5.1 Static Route
Post by: steven on Tuesday 01 January 2013, 01:29:07 am
We using 2.5.1 with static routes and they seem to be working fine.

Steve - Techtron Computers


Title: Re: Endian 2.5.1 Static Route
Post by: cmateski on Sunday 10 February 2013, 10:00:11 am
Static routes entered via GUI work fine for me.
efw 2.5.1


Title: Re: Endian 2.5.1 Static Route
Post by: Di4bLo on Tuesday 07 May 2013, 08:10:45 pm
EFW 2.5.1 and I have the same problem. If I update a static route (via GUI or via SSH) it doesnt save anything.

Pay attention because I can see static routes on the GUI but not in the real config (status -> network status).
Could you please check if it's the same for you?

thank you.


Title: Re: Endian 2.5.1 Static Route
Post by: jamerson on Wednesday 22 May 2013, 08:03:29 am
this issue is knowed in the previously version,
please update to 2.5.1 !


Title: Re: Endian 2.5.1 Static Route
Post by: Di4bLo on Tuesday 28 May 2013, 06:06:08 pm
What do you mean Jamerson? I have the 2.5.1 and I have the same problem.


Title: Re: Endian 2.5.1 Static Route
Post by: Di4bLo on Thursday 06 June 2013, 01:00:35 am
I solved saving the route commands manually to /etc/init.d/rc.local.

Something like

#!/bin/sh

route add -net 10.0.0.0/24 gw 192.168.0.2

exit 0