Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 30 November 2024, 04:19:52 pm

Login with username, password and session length

Get the new Updates directly from Endian  HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  static routing
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: static routing  (Read 11751 times)
vitsoft
Jr. Member
*
Offline Offline

Posts: 1


« on: Thursday 01 May 2014, 02:54:58 am »

I'm using efw 3.0 and I have problems setting one stattic route.

I would like to get that all that comes from a specific dmz ip address goes  to the Internet with a specific public ip address different from the default gateway.
With efw 2.5 I had no problems setting the static route and everything worked correctly; with efw 3.0 it's use always  the address of the default gateway, ignoring the static route.

Is something changed and I have to add other configurations?

thanks
Logged
cocoalcazar
Full Member
***
Offline Offline

Posts: 42



« Reply #1 on: Saturday 03 May 2014, 06:47:39 am »

try:



Hay que tener cuidado cuando se implementan rutas estáticas con endian y uno quiere aplicarles reglas normalmente. Endian por defecto maneja reglas de rutas (ip rules).

Para cada una de las rutas a crear se debe agregar una regla:

 ip rule add prio 5 to x.x.x.x/x lookup main


Ejemplo: /etc/init.d/rc.local

 route add -net  172.17.0.0 netmask 255.255.0.0 gateway 172.16.4.7
 ip rule add prio 5 to 172.17.0.0/16 lookup main

Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

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