Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 15 November 2024, 05:23:12 pm

Login with username, password and session length

CLICK HERE for the The official Endian Roadmap and Issue tracker
14255 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Endian 2.5.1 Static Route
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Endian 2.5.1 Static Route  (Read 26787 times)
Rushlow
Jr. Member
*
Offline Offline

Posts: 2


« 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?
Logged
fqureshi
Sr. Member
****
Offline Offline

Posts: 126


« Reply #1 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.

Logged
fqureshi
Sr. Member
****
Offline Offline

Posts: 126


« Reply #2 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 Smiley

Hope this might help you in some way....
Logged
steven
Full Member
***
Offline Offline

Gender: Male
Posts: 10


WWW
« Reply #3 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
Logged
cmateski
Full Member
***
Offline Offline

Posts: 19


« Reply #4 on: Sunday 10 February 2013, 10:00:11 am »

Static routes entered via GUI work fine for me.
efw 2.5.1
Logged
Di4bLo
Full Member
***
Offline Offline

Posts: 39


« Reply #5 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.
Logged
jamerson
Full Member
***
Offline Offline

Posts: 24


« Reply #6 on: Wednesday 22 May 2013, 08:03:29 am »

this issue is knowed in the previously version,
please update to 2.5.1 !
Logged
Di4bLo
Full Member
***
Offline Offline

Posts: 39


« Reply #7 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.
Logged
Di4bLo
Full Member
***
Offline Offline

Posts: 39


« Reply #8 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
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.078 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com