Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Beginner Basics • Redirect all traffic to the LAN webserver

$
0
0
Hi, I know this has been asked many times, but I'm not making it to work by following other recommendations found at this forum


In a new fresh installed hAP lite router, I'm trying to redirect all the traffic from my web browser(port 80 & 443) to the raspberry webserver

I have just two clients in the dhcp
Code:
[admin@MikroTik] > ip dhcp-server lease printFlags: X - disabled, R - radius, D - dynamic, B - blocked  #   ADDRESS             MAC-ADDRESS       H SE.. R STATUS  LAST-SEEN             0 D 192.168.89.253      B8:27:EB:43:B0:86 r de..   bound   4m38s  <- raspberry pi with the webserver      1 D 192.168.89.254      74:E5:F9:46:64:87 D de..   bound   4m53s <- my pc
Web proxy is disabled
No rules in the proxy access


NAT rules
Code:
[admin@MikroTik] /ip firewall nat> printFlags: X - disabled, I - invalid, D - dynamic  0    ;;; defconf: masquerade      chain=srcnat action=masquerade out-interface-list=WAN       ipsec-policy=out,none 
Filter rules
Code:
[admin@MikroTik] /ip firewall filter> printFlags: X - disabled, I - invalid, D - dynamic  0  D ;;; special dummy rule to show fasttrack counters      chain=forward action=passthrough  1    ;;; defconf: accept established,related,untracked      chain=input action=accept connection-state=established,related,untracked  2    ;;; defconf: drop invalid      chain=input action=drop connection-state=invalid  3    ;;; defconf: accept ICMP      chain=input action=accept protocol=icmp  4    ;;; defconf: accept to local loopback (for CAPsMAN)      chain=input action=accept dst-address=127.0.0.1  5    ;;; defconf: drop all not coming from LAN      chain=input action=drop in-interface-list=!LAN  6    ;;; defconf: accept in ipsec policy      chain=forward action=accept ipsec-policy=in,ipsec  7    ;;; defconf: accept out ipsec policy      chain=forward action=accept ipsec-policy=out,ipsec  8    ;;; defconf: fasttrack      chain=forward action=fasttrack-connection       connection-state=established,related  9    ;;; defconf: accept established,related, untracked      chain=forward action=accept       connection-state=established,related,untracked 10    ;;; defconf: drop invalid      chain=forward action=drop connection-state=invalid 11    ;;; defconf: drop all from WAN not DSTNATed      chain=forward action=drop connection-state=new       connection-nat-state=!dstnat in-interface-list=WAN 

I have tried these:
viewtopic.php?t=83074
viewtopic.php?f=2&t=81798&p=409593#p409593
viewtopic.php?t=88049
Even this
https://wiki.mikrotik.com/wiki/Manual:I ... on_example

with no success.. I'm still able to browse to http://example.com and should be redirecting to the raspberry webserver
If I access the 192.168.88.253 from the browser it loads, so the pi is not the issue

I don't understand what I'm doing wrong, appreciated is any help
thank you

Statistics: Posted by redstoneminer — Sun Mar 10, 2024 6:16 am



Viewing all articles
Browse latest Browse all 15394

Trending Articles