Community discussions

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

how do I block upload to IP

Wed Mar 16, 2016 11:19 am

I see my router is uploading to Ip I don't know
I want to block this IP - so I will not send to him any data
so I did this
chain=output action=drop dst-address=162.222.215.38 log=no log-prefix=""
is it good? or do I need to use reject?

Thanks ,
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12558
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: how do I block upload to IP

Wed Mar 16, 2016 12:15 pm

Simply:
/ip firewall filter
add chain=forward dst-address=162.222.215.38 action=drop 
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: how do I block upload to IP

Wed Mar 16, 2016 12:31 pm

well maybe i have another problem

I have connected my RB to a modem and coonet to him using pppoe-out
nothing is connected to the RB , only a computer in the same network without gateway
so the computer doesn't do to the internet
but i have in the Tx 4-8M - it's like someine is downloading from me something

how can i see which IP and block it?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12558
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: how do I block upload to IP

Wed Mar 16, 2016 4:38 pm

well maybe i have another problem

I have connected my RB to a modem and coonet to him using pppoe-out
nothing is connected to the RB , only a computer in the same network without gateway
so the computer doesn't do to the internet
but i have in the Tx 4-8M - it's like someine is downloading from me something

how can i see which IP and block it?
probably you have open the DNS service to the world...
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: how do I block upload to IP

Wed Mar 16, 2016 6:46 pm

just like this ? it opened?
how did i do this?
also (and more importent ) how do I close it?
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: how do I block upload to IP

Wed Mar 16, 2016 10:53 pm

Default firewall rules protect ether1-gateway from the internet. However, when you switch to PPPoE, the wan interface becomes pppoe1-out - if you don't go update your firewall rules to protect the pppoe1-out interface, then you're running vulnerable to such things as DNS ddos attacks.

I suspect that if you set pppoe mode in the quickset wizard, everything would be done automatically, but if you manually create the pppoe interface, test it, find it doesn't quite work, and then find the NAT rule to fix - when things then start working, you feel that you're done, but the firewall still needs to be fixed....

It's a common problem on here.
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: how do I block upload to IP

Thu Mar 17, 2016 9:35 am

so for now I have block udp port ,
and I see it O.K.
is there any way to know in which port there are trying to "attack" and block it?
for now all udp is close , and evryone who is trying to reach udp get block
but maybe some day i will need the udp - so I want to blcok only those who interfere me
Thanks ,
 
nxs02
Member Candidate
Member Candidate
Posts: 119
Joined: Sat Nov 07, 2015 1:25 pm
Location: Planet Earth

Re: how do I block upload to IP

Fri Mar 18, 2016 2:35 am

well im usually looking at log (log for rule that important)
 
soyelpulpo
newbie
Posts: 38
Joined: Mon Nov 10, 2014 1:22 am
Location: Lima - Peru

Fri Mar 18, 2016 5:37 am

Torch it
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: how do I block upload to IP

Fri Mar 18, 2016 5:43 am

If input chain says:
Allow established,related
Allow ICMP
Drop in-interface=pppoe1-out

(3 rules in that exact order)

Then you'll be safely blocking everything from the Internet - including DNS queries- but allowing anything that's a reply for something the Mikrotik requested.

Nice and easy.
 
nxs02
Member Candidate
Member Candidate
Posts: 119
Joined: Sat Nov 07, 2015 1:25 pm
Location: Planet Earth

Re: how do I block upload to IP

Fri Mar 18, 2016 2:34 pm

If input chain says:
Allow established,related
Allow ICMP
Drop in-interface=pppoe1-out

(3 rules in that exact order)

Then you'll be safely blocking everything from the Internet - including DNS queries- but allowing anything that's a reply for something the Mikrotik requested.

Nice and easy.
agree with this :D :D
simple, nice and easy
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: how do I block upload to IP

Mon Mar 21, 2016 5:39 pm

when I torch and see the IP - that mean how is trying to coonnect to my right now ?

so I have a question about it
I can see that 91.135.100.100 is connecting in FTP (trying)
but my RB is not open to FTP
so how could it try?
or it just show me "someon is trying yo connect using ftp"?

Thanks ,
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: how do I block upload to IP

Mon Mar 21, 2016 5:54 pm

or it just show me "someon is trying yo connect using ftp"?

Thanks ,
That's all it is - your router's firewall isn't a force field that prevents packets from even reaching the router at all - the TCP/SYN packet (requesting a new connection) will reach your router - and the firewall will examine the packet and discard it, or if it's allowed by the firewall, the packet will be passed up the IP stack, where TCP will realize that your router isn't even listening on port 21, so the packet will ultimately not do anything - but torch doesn't looks for things like "this packet works / this packet is discarded by firewall" - it simply counts packets that arrive on the wire, no matter what the packets' ultimate fate might be.
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: how do I block upload to IP

Tue Mar 22, 2016 10:02 am

Now I understand

Thanks ,

Who is online

Users browsing this forum: cyrq, TioVik, trustno1 and 33 guests