access modem web interface

Hi all,

I’m try to access my modem web interface via LAN PC. Below are the connection details

Modem IP (192.168.0.1) Modem web interface IP (192.168.0.5)

Mikrotik IP (assign by modem DHCP 192.168.0.20)
Lan PC1 connected to mikrotik with IP (192.168.50.40)

What configurations should I do so than my Lan pc (192.168.50.40) and access the web interface at (192.168.0.5) ?

Any guidance is much appreciated.

Two options:

  1. route traffic towards modem for LAN hosts and then use modem’s IP address (and port) to connect to modem GUI
  2. add port-forwarding (DST NAT) and then use router’s IP and forwarded port to connect to modem GUI

In both cases you’ll have to perform SRC-NAT for traffic destined at modem, in case #2 this is the other half of hair-pin NAT.

There is something strange, if the MikroTik RouterBOARD already has an address 192.168.0.x/24 you should already see the page without any other rules.
In fact the 192.168.50.x/24 of your PC should already be NATTATED with the IP of the RouterBOARD… (or not? blanked the config?..)
There’s something I’m missing… or that you haven’t written.

But the question is: why your modem have 2 IPs?
Is the first time I see 2 different IPs one for manage and the other for traffic, unless there are other things involved that you haven’t written…

Not necessarily … modem would have to know to route replies via MT router and not via its own default route (if it exists). The SRC NAT (hairpin nat or not) cures this problem.

But if the traffic is already masqueraded/src-natted, nothing special is needed, the modem see as source 192.168.0.20, why reply to 192.168.50.40?
So, if the masquerade/src-nat is already done, no other rule is needed… (or the user “blanked the config” and do not do NAT at all…)

You’re assuming.

At home my ISP offers internet via PPPoE and modem is set-up in bridge mode. So WAN interface on my router is pppoe-out1 and strictly speaking only this interface needs to have SRC NAT enabled (to get internet access from LAN). In order to access management UI I need to enable SRC NAT for “raw” ethernet interface as well.

Since @OP has problems accessing modem’s UI, I’m assuming (yes, me too :wink: ) that for some reason traffic towards modem’s own IP address is not SRC NATed (yet).

Really, I assumed that the user deleted the default configuration and now it doesn’t work as expected… :wink: :laughing: :laughing: :laughing:


(or not? blanked the config?..)



(or the user “blanked the config” and do not do NAT at all…)

hi,
Thanks for the advice. I’m quite new to mikrotik, can you give me guidance on how to achieve the steps you recommended? Basically, I want to be able to key in the ip 192.168.0.5 on the browser of pc 192.168.50.40 and i’ll be able to access the web interface on the modem.
The reason this modem have to 2 ip address cause its used for satellite communications. It have some other features hence the 2 ip addresses.


Is Starlink? About the config of the MikroTik device, is the default or you have resetted it all?

Hi,
It is not Starlink and mikrotik is not in default. I’ve configured it with some firewall rules. I’m using mikrotik rb3011 series. The firewall rules basically only allow 1ip of email server. The rules are working fine.

port1 - connected to modem line
port2-8 - connected to lan with ip 192.168.50.xxx



All is working except the modem interface, right?

Hi,
Yes, all working fine except for the modem interface.

hi, anyone have any ideas? I’m really stuck at this problem

Can you please supply both a network diagram (containing all private IP addresses), all WAN IP information from the MikroTik and a config?


/export file=anynameyoulike

Don’t forget to remove serial and post between code tags

Modem IP (192.168.0.1) Modem web interface IP (192.168.0.5)

Mikrotik IP (assign by modem DHCP 192.168.0.20) connected to port 1 in mikrotik
Lan PC1 connected to mikrotik with IP (192.168.50.40) connected to port 2 in mikrotik

i have tried bridge port 1 and 3
If I manually configure pc ip address(192.168.0.20) and connect to port 3, i can access the web interface.

I want the lan pc that is connected to port 2 able to connect to 192.168.0.5 web interface without manually changing their ip address.

.

/ip firewall nat
add action=src-nat chain=srcnat comment=modem dst-address=192.168.0.5 protocol=tcp dst-port=80,443 out-interface=ether1 src-address=192.168.50.40 to-addresses=192.168.0.20

HI,
I tried your way but failed. I’m also at mistake. Actually the IP as per below

Modem IP (192.168.0.1) Modem web interface IP (10.5.5.10) NOT: (192.168.0.5)

Mikrotik IP (assign by modem DHCP 192.168.0.20) connected to port 1 in mikrotik
Lan PC1 connected to mikrotik with IP (192.168.50.40) connected to port 2 in mikrotik

i have tried bridge port 1 and 3
If I manually configure pc ip address(10.5.5.12) and connect to port 3, i can access the web interface.

I want the lan pc that is connected to port 2 able to connect to 10.5.5.10 web interface without manually changing their ip address.

Any help guys..