Hi!
Need to assign a second IP address to the server from another ISP. I have MT connected to 2 providers with the following setup:
/ip address add address=30.30.30.1/30 interface=WAN1
/ip address add address=40.40.40.2/28 interface=WAN2
/ip address add address=30.30.10.1/24 interface=LAN
/ip route add dst-address=0.0.0.0/0 gateway=30.30.30.2
/ip route add dst-address=0.0.0.0/0 gateway=40.40.40.1 routing-mark=ISP2
/ip route add src-address=40.40.40.0/24 action=lookup table=ISP2
/ip firewall nat add chain=dstnat action=dst-nat to-addresses=30.30.10.10 to-ports=0-65535 dst-address=40.40.40.2
/ip firewall nat add chain=srcnat action=src-nat to-addresses=40.40.40.2 to-ports=0-65535 src-address=30.30.10.10
Server has the current address 30.30.10.10 and I want to forward all traffic for IP 40.40.40.2 to this server with NAT. Also I’ve tried to assign a second address (172.31.141.10) to the server and configure the NAT so:
/ip firewall nat add chain=dstnat action=dst-nat to-addresses=172.31.141.10 to-ports=0-65535 dst-address=40.40.40.2
/ip firewall nat add chain=srcnat action=src-nat to-addresses=40.40.40.2 to-ports=0-65535 src-address=172.31.141.10
but I had no success. please help me to configure this.
thanks in advance.