Inbound Proxy?

I’ve been going through the WebProxy tool in RouterOS. It appears to be for traffic originating on the LAN which needs filtered or indirect access to WAN. How about the other direction? Suppose that I have, behind a single (static) IP, two NAS units which have content that I want to be web-addressable. Is there a RouterOS provision to take incoming traffic directed to “nas1.mynet.net” and “nas2.mynet.net” and direct them to the proper LAN destination? Or do I need to set up a separate dedicated proxy server inside the firewall?

There’s no built-in support for reverse proxy, If your device has sufficient resource like RB4011 / RB5009 install container package and pull image like nginx or haproxy

My main gateway router is an RB4011, but I also have a Raspberry Pi dedicated to network tasks. Best to put it there?

Please note that I’ve never done that before, so if you have links to examples it would be appreciated.

You can set up RouterOS to direct incoming traffic to your NAS units without a dedicated proxy server by using port forwarding (destination NAT). Here’s how to do it:

  1. DNS Setup: Ensure nas1.mynet.net and nas2.mynet.net point to your static IP.

  2. Create NAT Rules:

  • Go to the Firewall section in RouterOS.
    Under the NAT tab, create rules for each NAS.
  1. For nas1.mynet.net:
  • Chain: dstnat
    Protocol: tcp
    Dst. Port: (e.g., 80 for HTTP)
    Action: dst-nat
    To Addresses: (IP of NAS1)
    To Ports: (port NAS1 listens on)
  1. For nas2.mynet.net, repeat the above with NAS2’s details.

  2. Firewall Filters: Ensure you allow traffic on the specified ports in your firewall.

  3. Testing: Access nas1.mynet.net and nas2.mynet.net from an external network to verify everything is working.

This setup effectively routes incoming traffic based on subdomains to the correct NAS device. If you’re also looking for options for online activities, consider exploring the best shared proxies to enhance your browsing experience while ensuring privacy and security.

Hello, sorry for bumping this. Have you managed to do it, OP? Can I do it with these proxies - https://lightningproxies.net/?

Reply in post #2 is still true.

One time, juggling multiple NAS units behind one IP got tricky until using a reverse proxy made routing neat and easy. Also, for anyone juggling multiple IPs or locations, Buy Rotating Proxies can be a solid way to manage diverse traffic smoothly.

Edited 8 days old post to add an Ad?