Community discussions

MikroTik App
 
User avatar
mrmut
Member Candidate
Member Candidate
Topic Author
Posts: 199
Joined: Mon May 18, 2009 2:10 pm

Block internet traffic from IP

Sun Dec 09, 2018 11:59 am

How would I proceed to block all traffic towards internet from a specific IP, bar several ports?

From what I understand, I should select forward chain, src address (local PC IP address) and set the rule to block?

I also have two TCP ports that I need to work, so I should set the allow rule to forward, port, protocol, (in interface) and destination address.

Am I good with this?
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Block internet traffic from IP  [SOLVED]

Sun Dec 09, 2018 12:40 pm

sure, that will do it. Easiast to first allow what you want, and close with "reject all". Reject will be communicated to user, so he won't have to timeout.

something like
/ip firewall filter
add action=accept chain=forward protocol=tcp dst-ports=80,443, ... ? src-address=ip
add action=reject chain=forward src-address=ip
 
User avatar
mrmut
Member Candidate
Member Candidate
Topic Author
Posts: 199
Joined: Mon May 18, 2009 2:10 pm

Re: Block internet traffic from IP

Sun Dec 09, 2018 3:01 pm

Thanks! Appreciated! :-)

Who is online

Users browsing this forum: No registered users and 108 guests