virtual ip and privately access lan

Dear all mikroterian,
What i am trying to do is like this

public ip A will hit request to port 80 on public ip B ( this is WAN interface of mikrotik).
public ip A should be mapped to lan ip of mikrotik and that request should be forward to http server on LAN.

What i want is to reach internal private http server, the public ip should carry with internal private ip.

can it be done?

Best Regards,
Thanks
Amir

Yes. Set dst nat rule for it.

What i want to achieve is to use Mikrotik as SBC ( Session Border Controller). Please suggest on this.

Hi Amir

DST NAT is your solution , test it :wink:

good luck

dear all,
What i want is public ip A should be mapped to private ip B which is ip secondary ip address of router and forward request with ip header of private B to private server C.


Public A------------Router-----Private B------------------------------------------------------------------Private Server C
1.1.1.1 2.2.2.1 2.2.2.5
2.2.2.2

Here, When request hit to public ip 1.1.1.1, it should be mapped to private ip 2.2.2.2 and forwarded to 2.2.2.5 with source ip 2.2.2.2

Thanks,

Dear Amir
it’s clear that when you use Dst Nat action you are able to redirect packets from outsides(public ip address) to any private one in inside your network , and during this action router remove destination ip address(your public ip) with user defined private on and packet’s will forward through your private network with private IP address.

Correct me please if i’m wrong

and if you want to do that with 2 server at the same time , i’m not sure but i think you can use 2 action(not sure)



thank you

Dear ShayanFiroozi,
Here is the actual requirement. Please have a look and let me know if it is feasible through mikrotik or not.

Thank you

Here is the actual requirements.
http://forum.mikrotik.com/t/virtual-ip-issues/84133/1