Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

I want to block from WiFi user to get to the router-how to?

Thu Dec 25, 2014 1:47 pm

I want to be able to enter the router using HTTP only from the Ethernet connection
so if someone try to enter from the WiFi - he will get 404 error - or something

this is what I have done but it doesn't work -
chain=forward action=drop src-address=0.0.0.0/0 dst-address=172.20.164.254
the Wlan IP is 172.20.164.254

I don't want to change the port (80) - because this is not a solution for me

what am I missing or doing wrong?
this is doable I want to believe , no ?

what I do now it NAT to address I don't use
chain=dstnat action=dst-nat to-addresses=172.20.164.5 
     dst-address=172.20.164.254 in-interface=wlan1
I can stay with this , but if I want to do NAT to an image inside the router - can it be done?





Thanks,
 
tinka
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Dec 02, 2009 5:48 pm

Re: I want to block from WiFi user to get to the router-how

Fri Dec 26, 2014 1:37 am

i think that you have specify the input (not the forward) chain to block access to the router.
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: I want to block from WiFi user to get to the router-how

Sun Dec 28, 2014 10:49 am

have try this also -
still doesn't block
 
tinka
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Dec 02, 2009 5:48 pm

Re: I want to block from WiFi user to get to the router-how

Tue Dec 30, 2014 8:34 pm

have you put the rules in the correct order?

i would suggest to make a log rule and use only src. place it on top of the rule list. Start accesing the router from the src address. Once you see packets hit the log rule you know it works. Now change the action to drop.

Be carefull because you can block yourself so make sure you can login with mac.

Now once this works try to change to your liking and check with each step if the rule gets triggered.
Last edited by tinka on Wed Dec 31, 2014 6:59 am, edited 1 time in total.
 
User avatar
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
Joined: Sat Jun 01, 2013 12:44 pm
Location: Bandar Abbas , Iran

Re: I want to block from WiFi user to get to the router-how

Tue Dec 30, 2014 10:00 pm

Hi,
you can use In/Out interface in firewall rules , or IP addresses , chain is input , src address is you Wifi network subnet such as 192.168.200.0/24 or something like that , and your dest address is your router address action is drop or tarpit

Who is online

Users browsing this forum: Amazon [Bot], deadmaus911, jaclaz, pturmel, qwertykolea, yogsoncdw and 205 guests