I have a DSL and T1 line connected to my 2.2 ENDIAN firewall. Fail-over works great.
The DSL is the primary link (7mbps/800kbps) but I want all outbound email to go over our T1 link since it has reverse dns setup and has twice the upload speed. My Exchange server sends email out to the Internet directly (do not use the SMTP outbound proxy or a smarthost). I wish to continue this if possible.
How can I do this with ENDIAN?
[/quote]
I have no perfect solution to help you in this matter, but you can try the following;
1. Identifying e-mail server user or use. Example; Gmail, Yahoo, Hotmail, ...
2. Determine the address range IP address of the server. Example;# -----------------------------------------------------------
# Mail.yahoo.com
# -----------------------------------------------------------
# mail.yahoo.com 68.180.196.106
# CIDR: 66.163.160.0/19
route add -net 66.163.160.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 66.196.64.0/18
route add -net 68.196.64.0 netmask 255.255.192.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 67.195.0.0/16
route add -net 67.195.0.0 netmask 255.255.0.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 68.142.192.0/18
route add -net 68.142.192.0 netmask 255.255.192.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 68.180.192.0/20
route add -net 68.180.192.0 netmask 255.255.240.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 69.147.64.0/18
route add -net 69.147.64.0 netmask 255.255.192.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 98.136.0.0/14
route add -net 98.136.0.0 netmask 255.252.0.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 216.39.48.0/20
route add -net 216.39.48.0 netmask 255.255.240.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 206.190.32.0/19
route add -net 206.190.32.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.191.64.0/18
route add -net 209.191.64.0 netmask 255.255.192.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 67.195.160.0/19
route add -net 67.195.160.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 66.196.80.0/21
route add -net 66.196.80.0 netmask 255.255.248.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 66.196.96.0/21
route add -net 66.196.96.0 netmask 255.255.248.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 68.142.192.0/19
route add -net 68.142.192.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 98.137.32.0/19
route add -net 98.137.32.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# -----------------------------------------------------------
# Vip.sp1.yahoo.com
# -----------------------------------------------------------
# CIDR: 68.180.131.0/24
route add -net 68.180.131.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 68.142.255.0/24
route add -net 68.142.255.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 121.101.152.0/23
route add -net 121.101.152.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 119.160.240.0/20
route add -net 119.160.240.0 netmask 255.255.240.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 68.142.224.0/20
route add -net 68.142.224.0 netmask 255.255.240.0 gw Replace (Your Uplink1 Gateway)
# -----------------------------------------------------------
# Login.yahoo.com
# -----------------------------------------------------------
# login.yahoo.com 66.163.169.186
# CIDR: 69.147.96.0/19 (255.255.224.0)
route add -net 69.147.96.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 66.163.168.0/21 (255.255.248.0)
route add -net 66.163.168.0 netmask 255.255.248.0 gw Replace (Your Uplink1 Gateway)
# -----------------------------------------------------------
# Gmail.com
# -----------------------------------------------------------
# CIDR: 74.125.0.0/16
route add -net 74.125.0.0 netmask 255.255.0.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.16.0/24
route add -net 74.125.16.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.17.0/24
route add -net 74.125.17.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.18.0/23
route add -net 74.125.18.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.32.0/24
route add -net 74.125.32.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.33.0/24
route add -net 74.125.33.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.38.0/23
route add -net 74.125.38.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.42.0/23
route add -net 74.125.42.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.44.0/23
route add -net 74.125.44.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.46.0/23
route add -net 74.125.46.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.52.0/23
route add -net 74.125.52.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.54.0/23
route add -net 74.125.54.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.60.0/24
route add -net 74.125.60.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.61.0/24
route add -net 74.125.61.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.63.0/24
route add -net 74.125.63.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.64.0/23
route add -net 74.125.64.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.66.0/23
route add -net 74.125.66.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.68.0/23
route add -net 74.125.68.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.74.0/24
route add -net 74.125.74.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.75.0/24
route add -net 74.125.75.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.76.0/23
route add -net 74.125.76.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.78.0/23
route add -net 74.125.78.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.80.0/23
route add -net 74.125.80.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.86.0/23
route add -net 74.125.86.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.90.0/23
route add -net 74.125.90.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.92.0/23
route add -net 74.125.92.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.94.0/23
route add -net 74.125.94.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.98.0/24
route add -net 74.125.98.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.112.0/23
route add -net 74.125.112.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.114.0/23
route add -net 74.125.114.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.116.0/24
route add -net 74.125.116.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.117.0/24
route add -net 74.125.117.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.118.0/24
route add -net 74.125.118.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.119.0/24
route add -net 74.125.119.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.120.0/24
route add -net 74.125.120.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.121.0/24
route add -net 74.125.121.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.122.0/24
route add -net 74.125.122.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.126.0/23
route add -net 74.125.126.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.152.0/23
route add -net 74.125.152.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.154.0/23
route add -net 74.125.154.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.156.0/23
route add -net 74.125.156.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 74.125.158.0/23
route add -net 74.125.158.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.128.0/23
route add -net 209.85.128.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.128.0/17
route add -net 209.85.128.0 netmask 255.255.128.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.132.0/23
route add -net 209.85.132.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.134.0/23
route add -net 209.85.134.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.136.0/23
route add -net 209.85.136.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.138.0/23
route add -net 209.85.138.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.140.0/23
route add -net 209.85.140.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.144.0/23
route add -net 209.85.144.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.146.0/23
route add -net 209.85.146.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.148.0/23
route add -net 209.85.148.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.152.0/23
route add -net 209.85.152.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.154.0/23
route add -net 209.85.154.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.162.0/23
route add -net 209.85.162.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.164.0/23
route add -net 209.85.164.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.166.0/23
route add -net 209.85.166.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.168.0/23
route add -net 209.85.168.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.170.0/23
route add -net 209.85.170.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.172.0/23
route add -net 209.85.172.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.192.0/23
route add -net 209.85.192.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.194.0/23
route add -net 209.85.194.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.196.0/23
route add -net 209.85.196.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.198.0/23
route add -net 209.85.198.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.200.0/23
route add -net 209.85.200.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.208.0/23
route add -net 209.85.208.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.210.0/24
route add -net 209.85.210.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.211.0/24
route add -net 209.85.211.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.212.0/24
route add -net 209.85.212.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.213.0/24
route add -net 209.85.213.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.216.0/24
route add -net 209.85.216.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.218.0/24
route add -net 209.85.218.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.219.0/24
route add -net 209.85.219.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.220.0/24
route add -net 209.85.220.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.221.0/24
route add -net 209.85.221.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.222.0/24
route add -net 209.85.222.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.223.0/24
route add -net 209.85.223.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.224.0/23
route add -net 209.85.224.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.226.0/23
route add -net 209.85.226.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.228.0/23
route add -net 209.85.228.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.230.0/23
route add -net 209.85.230.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.236.0/23
route add -net 209.85.236.0 netmask 255.255.254.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 209.85.238.0/24
route add -net 209.85.238.0 netmask 255.255.255.0 gw Replace (Your Uplink1 Gateway)
# -----------------------------------------------------------
# Login.live.com
# -----------------------------------------------------------
# login.live.com 665.54.186.79, 65.54.186.107, 65.54.165.179,
# 65.54.165.136, 65.54.186.49
# CIDR: 65.52.0.0/14 (255.252.0.0)
route add -net 65.52.0.0 netmask 255.252.0.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 65.54.160.0/19
route add -net 65.54.160.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 65.55.192.0/18
route add -net 65.55.192.0 netmask 255.255.192.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 65.55.32.0/20
route add -net 65.55.32.0 netmask 255.255.240.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 64.4.0.0/18
route add -net 64.4.0.0 netmask 255.255.192.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 213.199.160.0/20
route add -net 213.199.160.0 netmask 255.255.240.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 207.46.64.0/19
route add -net 207.46.64.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 207.46.48.0/20
route add -net 207.46.48.0 netmask 255.255.240.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 65.54.224.0/19
route add -net 65.54.224.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
# CIDR: 65.55.160.0/19
route add -net 65.55.160.0 netmask 255.255.224.0 gw Replace (Your Uplink1 Gateway)
3. Use the following simple way: 3.1. If both links are good, set a static line for access to the server above the line 2.
3.2. If one takes two to connect, auto delete settings were added to the static line.
3.3. Check until the two work again, setup automatically add static line above.
You can reference additional way to check the road; http://efwsupport.com/index.php?topic=868.0
Step3. Scripting made simple load balancing, put in: /usr/local/sbin/balancing