• April 18, 2024, 06:49:19 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: DFL-800 with 2 wans (from different ISPs)  (Read 9433 times)

unnamedplayer

  • Level 1 Member
  • *
  • Posts: 13
DFL-800 with 2 wans (from different ISPs)
« on: November 02, 2009, 12:11:07 PM »

Hello all,

This is my situation. I currently have a DFL-800 connecting my network with my ISP. I am going to be switching ISPs and will be using a new IP address. My new ISP is ready to go, I just have to connect the modem to the router.

However, I have an in-house mail server. Our website is hosted by a third party and their name servers have an MX record which points to the IP assigned to me by the ISP I am leaving.

I would like to be able to have a connection to my new ISP so I can use it, but also still continue to have a connection with my old ISP so that I can continue to receive and send mail until I can update the MX records on our hosting partner.

Is a situation like that possible to accomplish?

Thanks!
Logged

Fatman

  • Level 9 Member
  • ****
  • Posts: 1675
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #1 on: November 02, 2009, 12:31:39 PM »

Sure, just plug in the number for your new ISP, ensure your routing table lists it as the first egress route and that your IP rules will accommodate it.

You will also want a second routing table where your old WAN is the primary egress route.  You will want a routing rule for traffic destined for your old WAN_IP specifying this new table as the return route.

Then you can transition MX records in eventuality and disable your old WAN completely.
Logged
non progredi est regredi

unnamedplayer

  • Level 1 Member
  • *
  • Posts: 13
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #2 on: November 02, 2009, 01:08:17 PM »

Thank you for the reply. I hate to sound dumb, but I am a little confused by all this  :-[

In the Routing section of my DFL-800 the only routing table I see listed is main

Are you saying I will need to add two more routing tables? Or do I have to change the routes for wan1 and wan2 in the main routing table.

Thanks for your help!!
Logged

Fatman

  • Level 9 Member
  • ****
  • Posts: 1675
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #3 on: November 02, 2009, 02:58:17 PM »

Change your main table to reflect your new ISP, then add another table (I usually call it drawkcaB, thanks for that telling habit Piers Anthony) where your old ISP is listed first.

Total of 2 routing tables.

Anything else I can clarify?
Logged
non progredi est regredi

unnamedplayer

  • Level 1 Member
  • *
  • Posts: 13
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #4 on: November 03, 2009, 05:51:54 AM »

OK, I think I get it. Basically in my main table I will something that looks like this:

InterfaceNetworkGateway
wan1wan1net
wan2all-netswan2_default_gw
wan2wan2net
lanlannet

This will get traffic going to all-net (aka the Internet) to go through wan2 (my new ISP) correct?

But you said I should also have a second table for my old ISP (wan1) that would look like this correct?

InterfaceNetworkGateway
wan1wan1net
wan1all-netswan1_default_gw
wan2wan2net
lanlannet

Is that right? And then I need to make a new routing rule that says if traffic is going to wan1 the return table is the new alternate table I just created?

Thank you for the help!!
Logged

unnamedplayer

  • Level 1 Member
  • *
  • Posts: 13
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #5 on: November 03, 2009, 07:42:26 AM »

I've confirmed that routing table does indeed work. I'm just a little confused with the routing rule. Do I need to make the rule so that everything from the lan interface/network going to the wan1 interface should use my alternate table?

Also, for some reason I cannot receive mail when I made the adjustments to my routing table and had both wan1 and wan2 operating. The log showed incoming connections from wan1 destined for port 25 but they were dropped because of a DEFAULT_ACCESS_RULE.

This makes no sense to me since I have not changed any of my previous rules which had mail coming in fine. The only rules I added were a couple of rules to allow tcp/udp traffic going from lan interface/network to wan2 interface to be allowed.

Any ideas?

Thanks again!!
Logged

Fatman

  • Level 9 Member
  • ****
  • Posts: 1675
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #6 on: November 03, 2009, 09:06:27 AM »

Your routing tables look good, though I would have only written the default route in your second table and had made it of type default.

The routing rule we are looking for looks like this.

Name: drawkcaB
Forward Table: main
Return Table: drawkcaB
Service: all-services
Source Interface: WAN1
Source Network: all-nets
Destination Interface: core
Destination Network: wan1_IP

Default Access Rule means that either...

There is no route for the destination address
or
You are receiving that packet over an interface that is configured for a different network.

In your network the second one is almost certainly the issue, but that is simply because we don't have the routing rule yet.
Logged
non progredi est regredi

unnamedplayer

  • Level 1 Member
  • *
  • Posts: 13
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #7 on: November 03, 2009, 10:45:09 AM »

Hmm..well I went ahead and added that rule. I can send mail fine, however, I could not receive mail. Looking at the log I saw entries for the rule that I configured to allow SMTP. It showed a connection from WAN1 to LAN with dest. port 25 but I never received anything.

I did see a new entry in the log that I had not seen before I did this which was another DEFAULT_ACCESS_RULE. Under Src/Dest If it was just listed as wan1 and under Src/Dest IP it just had my Wan1 IP. No source/destination ports. The exact event was: invalid_arp_sender_ip_address
drop

Not sure if this has something to do with it.

Thanks again for all your help Fatman!
Logged

Fatman

  • Level 9 Member
  • ****
  • Posts: 1675
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #8 on: November 03, 2009, 02:27:35 PM »

What type of routing table did you make drawkcaB?

Is your port forward using a NAT or an Allow action for the second rule?
Logged
non progredi est regredi

unnamedplayer

  • Level 1 Member
  • *
  • Posts: 13
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #9 on: November 03, 2009, 05:55:01 PM »

Originally it was Only but I changed it to Default after reading your post.

I have 2 rules to let mail come in:

1) SAT - directs smtp-in to my mail server
2) ALLOW - Allows smtp-in from wan1 (all nets) to core (wan1_ip)
Logged

Fatman

  • Level 9 Member
  • ****
  • Posts: 1675
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #10 on: November 04, 2009, 08:19:25 AM »

Does a SAT and a NAT provide connectivity, this will cause the incoming connections to be NAT'ed, but it will answer some crucial questions.
Logged
non progredi est regredi

unnamedplayer

  • Level 1 Member
  • *
  • Posts: 13
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #11 on: November 04, 2009, 08:43:52 AM »

Do you mean to add a NAT rule in addition to my two other rules for mail?

I added one for NAT for service smtp-in with Src If wan1 Src net all-nets destined for Dest If core Dest Net wan1_ip

In the log I got:

Rule: LocalUndelivered
Src/Dest If: wan1
Src/Dest Ip: 127.0.0.1/wan1_ip
Src/Dest Port: 5285/25
Event: unhandled_local
drop
Logged

Fatman

  • Level 9 Member
  • ****
  • Posts: 1675
Re: DFL-800 with 2 wans (from different ISPs)
« Reply #12 on: November 04, 2009, 08:46:29 AM »

No, I meant in place of the Allow.

And that log entry is surreal, I don't know how you would go about getting something that far off.  Call this one in if you can.  I want to see your config reach TS so they can dissect it.
Logged
non progredi est regredi