Two WANs with failover, accessing WAN1 router through WAN2?
-
You probably need some extra outbound NAT to make sure that things going to the WAN1 modem get NAT applied so it appears to be coming from the firewall's WAN1 IP, otherwise the WAN1 router would be trying to send it back out the dead line.
-
Thanks again. Yes, I see that this is exactly what is happening (through packet capture), it sends the packet out on WAN1 with the originating IP-address (the public IP-address from where I connect from).
How can I modify the NAT to use the WAN1 interface IP for these packets only?
-
Make an outbound NAT rule something like this:
Interface: WAN1
Source: Any
Destination: WAN1 modem IP -
Thanks, I will try that. Can the mode still be "Automatic outbound NAT rule generation" or do I have to switch to "Manual Outbound NAT rule generation" to make this work?
I guess the Destination should be the IP-address of the WAN1 modem with /32 as mask?
Thanks.
-
Manual, and yes, it would be the modem ip/32.
-
Ok, will this "break" other outbound traffic NAT'ing, that is do I need to add other rules as well to make outbound traffic/NAT work as before the switch to Manual?
-
no, when you switch to manual it makes a proper set of rules that do exactly what automatic was already doing.
-
I tried this and was able to access the WAN1 modem through WAN2, but with a major drawback (Running 2.0.1):
When I switch to "Manual Outbound NATโฆ" I am not able to access the web (surf), not able to access the WAN2 modem from LAN and so on.
When set to "Manual..." it now uses the host IP on the LAN as from-IP on the WAN-side... When set to "Auto.." it uses the interface IP.It looks like it DOESN'T add the proper set of rules as you describe? Do I need to add rules for every outbound connection or am I missing something?
Thanks for your prompt reply.
-
If your WANs are setup right (gateways exist and are selected on the interface pages, or they're dynamic) then it should be adding outbound NAT rules that cover those networks automatically.
-
Please give us a screenshot, so we could help you bit more
-
I figured it out :-) Added two outbound NAT rules for the interfaces, source "any".
Thanks.