Welcome, Guest. Please login or register.
Did you miss your activation email?
Friday 22 November 2024, 10:56:28 am

Login with username, password and session length

Get the new Updates directly from Endian  HERE
14258 Posts in 4377 Topics by 6516 Members
Latest Member: DaveH
Search:     Advanced search
+  EFW Support
|-+  Development
| |-+  Contribute Your Customisations & Modifications
| | |-+  Dual Wan Support
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Dual Wan Support  (Read 46690 times)
euser4life
Full Member
***
Offline Offline

Posts: 13


« on: Friday 31 August 2007, 07:53:54 am »

This is one that I found going through the mailinglist.  I see this asked all the time so thought I'd post it.  (Note - I have not tested this)  Thanks goes to Dayne.


1) First you will need to access the console via ssh.
 
2)Then cp /var/efw/uplinks/main /var/efw/uplinks/link2
 
3)Modify the /var/efw/uplinks/link2/settings file in vi to reflect the other ISP connection. Make sure to change the RTABLE=200 to RTABLE=201.   
 
"This value is used as name of the link specific routing table, as priority within routing rule table (ip rule) and as mark in the iptables mangle table (iptables -t mangle -vnL)" - Peter Endian
 
Some people have reported issues with portforwarding.   
 
"if you use portforwarding, keep in mind that if you have multiple uplinks you have different uplink ip addresses"   


----- Here is another post towards the subject-------

LOAD BALANCING WITH 2 OR MORE RED NICS
*************************************

The objective of this small howto is to make a load balance of the internet traffic between 2 or more red nics with STATIC IP (is a must)
1. Configure 1 red nic using the web interface
2. Open a ssh connexion as root to the firewall and enter to the folder /var/efw/uplinks ("cd /var/efw/uplinks")
3. run the command "cp -p -r ./main ./link2 (if you have more red nics repeat this step but with ./link3 ./link4 ./link... you get the point)
4. Enter to each one of the copied folders and edit all of the parameter in the file "settings" except DEFAULT_GATEWAY, leave that one blank
5. Do the previous step with the folder main ( /var/efw/uplinks/main)
6. Recheck that all parameter for all of your links are set OK, and that all DEFAULT_GATEWAY fields are blank (is a must or else it wont balance the traffic)
7. Enter the directory /var/efw/inithooks ("/var/efw/inithooks")
8. add to the files start.local updatered.active.local updatered.inactive.local updatered.local  and updatewizard.local

  route del default
  route del default
  route del default
  route del default
  ip route add default equalize scope global \
                          nexthop via <gateway link1> dev <iface link1> weight 1 \
                          nexthop via <gateway link2> dev <iface link2> weight 1 \
                          nexthop via <gateway link3> dev <iface link3> weight 1 \
                          .
                          .
                          .
  NOTE: remove the " \ " in the last line
  NOTE: i modify ALL those files because i do not know witch one endian use to generate the routing tables.

9. Restart your endian firewall
10. Wait 5 minutes or so an log to the firewall
11. Check your routes with the command "ip route", it shoud show you all the gateways that are using in a round robin balance for the packets that goes out from your network to the internet.
12. HAVE FUN

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

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