Community discussions

MikroTik App
 
dakinet
just joined
Topic Author
Posts: 7
Joined: Thu Jul 27, 2017 10:28 am

How to disable LAN connections to go to WAN

Sun Jul 30, 2017 11:24 am

For accesing internet from my home im using cisco router trat is configured to work like modem, pass all trafic to my mikrotik router. Cable router/modem have dynamic wan addres and static ip 192.168.1.1. Mikrotik router have wan address 192.168.1.2 and lan is 192.168.10.1 , enabled dhcp in range 192.168.10.100-192.168.10.200.

problem:
---------------------------------------
1. I can sucessfuly access to cisco modem entering 192.168.1.1 in browser and make cnange to them


questions:
------------------------------------------
1. How can i disable posibility to acces to MTK router wan subnet from my pc that is on address: 192.168.10.100 ?
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: How to disable LAN connections to go to WAN

Sun Jul 30, 2017 12:37 pm

By using a firewall filter rule.
/ip firewall filter
add chain=forward action=drop out-interface=WAN src-address=!your.pc.lan.ip dst-address=192.168.1.1
Rationale:

forward chain is the one for traffic traversing the router.

Traffic will be dropped if these three criteria are met:
- out interface is the one facing your cisco router, the WAN one.
- the source address trying to connect is not yours (can use an address list for this too, if you wan to access from more than one computer)
- destination address is cisco router ip.

Who is online

Users browsing this forum: almdandi, blazer4493, megabytenet, naazh, Peixeiro, TheColdy and 37 guests