EFW Support

Support => General Support => Topic started by: apocalipsys on Tuesday 17 March 2009, 04:12:04 am



Title: Routeback on GREEN
Post by: apocalipsys on Tuesday 17 March 2009, 04:12:04 am
Hi everyone. As i'm new to efw. We need to allow a routing for some ips through the GREEN eth. Unfortunelly we reach the destination but we can't reach the mail server that must be routed. I left a diagram for what we need. Hope you can help us.

                                                WAN
                                                   |
                                                 EFW------DMZ
                                                   |
           MailServer----Router-----LAN-------Clients
                                                   

Lets asum the following ips:

WAN: 10.0.0.1
DMZ: 192.168.0.1
LAN: 172.28.119.200
Router: 172.28.119.53
Clients: 172.28.119.x

What i need is to route the traffic for the IP 192.3.52.103 through the internal Router and not to using NAT for the LAN request and a routeback (Shorewall Terms) for those conections.


Title: Re: Routeback on GREEN
Post by: mrkroket on Friday 20 March 2009, 01:36:40 am
I'm new to efw, but you can try to add it manually to file '/etc/rc.d/init.d/rc.local'
Add there your static route, and you should have something like:

Code:
#!/bin/sh

. /etc/rc.d/efw_lib.sh

route add -net 192.3.52.0/24 gw 172.28.119.53

exit 0
Restart the firewall, and check in Status->Network the routing table.