I have multiple public IP’s and I have NAT port forwarding for multiple services.
When I input a new WAN IP and route it ie a PPPoEout connection, it drops the NAT for all the others.
For instance, if I have this:
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 10.0.0.2 5
1 S 0.0.0.0/0 202.1XX.5x.X 5
2 X S 0.0.0.0/0 192.168.3.1 5
3 ADS 0.0.0.0/0 2XX.8X.5x.1 1 ALL SERVICES NAT TO THIS
So, say that I add a new PPPoE OUT connection:
1 A S 0.0.0.0/0 203.1xx.5x.1 5
I can’t make any NAT through this one above. Can’t ping from external, can’t do anything.
And if I mark “Add Default Route” I can ping from outside but it kills all the other PPTP and NAT’s port fwd from the 202.1XX.5x.X , for example:
Post the output of /ip firewall nat print for us please.
Also, you an only have one default gateway unless you label traffic and then route by label. This is the only way, that I’m aware of, to have multiple default gateways at once.
Having two default gateways will result in only one of them being used.
This makes sense, I do use marked routes, but someone has done this for me.
Now I need to be onsite to check this out (I don’t wanna risk to do it remotely.)
I use masquerade for hotspots and multiple VLANs but I believe routing-marks will be the culprit.
Ok, I am using route marks and I can get the outgoing connection to work fine.
However, I still not able to make the IP to respond to incoming connections.
if yo have several WAN connections and you want to use them both then
mark routing, so traffic knows where to go out, like some load balancing (seems you have this)
you have to mark incoming connections and assign them wan routing marks so packets that came it WAN1 will go out WAN1 not any other of available WAN interfaces
if you want NAT to specific addresses you can use 1 to 1 map or use specific source nat rule to NAT specific addresses to specific global address.
idea behind is that x.x.x.0/24 translates to x.x.x.0-x.x.x.255 since /24 includes x.x.x.0 and x.x.x.255 and these addresses are perfectly fine for example, when pppoe is used and tunnel remote address is x.x.x.0/32 or x.x.x.255/32 or something that we are more used to as x.x.x.254/32