Community discussions

MikroTik App
 
calabash
just joined
Topic Author
Posts: 5
Joined: Wed Aug 30, 2006 12:18 pm

Block internal ip from accessing internet

Fri Jun 15, 2007 2:06 am

I'm afraid I have this wonderful router... and I don't know how to use it yet. I could use some assistance in configuring our Campus for summer school.
My old, puny router (linksys SOHO router) had a table that I could type in ip addresses from my static lan. Then those PCs could access our servers, but had no internet connectivity.
How do I do this with a MikroTik router? I don't even know the proper name for what I want to do. I can read and understand directions however, so if someone could point me to a page in the manual or just tell me where on the menu to go, that would be wonderful.
I also need to do this remotely, or perhaps a chron job.. on the router? Or from my Linux box?

T.I.A.
 
calabash
just joined
Topic Author
Posts: 5
Joined: Wed Aug 30, 2006 12:18 pm

Re: Block internal ip from accessing internet

Fri Jun 15, 2007 8:29 pm

And a <bump> to the top, for hope.

t.i.a.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Block internal ip from accessing internet

Fri Jun 15, 2007 8:34 pm

 
calabash
just joined
Topic Author
Posts: 5
Joined: Wed Aug 30, 2006 12:18 pm

Re: Block internal ip from accessing internet

Fri Jun 15, 2007 8:48 pm

Ah.. I've been there. I honestly have tried to use the manual. I can't understand it. And I'm working to correct that by studying.
In the mean time however, this router has been set up and I need to modify it to block internal (static) IPs from going outbound/inbound w/packets. What is that called?

I know it is not the first 5 bullet points on the routing page you linked. I looked in the Routing Questions section, is what I want to do called "blackhole"ing?

If I could just have the correct terminology, then I would have a chance to follow the manual. As you can see, without knowing what I want to do is called, it makes finding the section near to impossible to do in a short time period.

T.I.A.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Block internal ip from accessing internet

Fri Jun 15, 2007 9:00 pm

to block traffic you must add firewall filter rules.
http://www.mikrotik.com/testdocs/ros/2.9/ip/filter.php
 
calabash
just joined
Topic Author
Posts: 5
Joined: Wed Aug 30, 2006 12:18 pm

Re: Block internal ip from accessing internet

Fri Jun 15, 2007 9:19 pm

Okay. I think that I've figured out where I used to do this on the Linksys SOHO router. It disallowed IPs in its NAT section. I think when I loaded the IP addresses there, I was saying "do NOT translate these IPs to our external IP address" and therefore the PCs were blocked.

But what you're saying is now I have a real router and I must use firewall rules? Right?

And those rules are put down in the form of a function embedded in a chain?

I'm trying to read it. I just hope I don't bork the router completely.

So I want to modify the output chain.. yes?

t.i.a.
 
cahook
just joined
Posts: 9
Joined: Tue Apr 25, 2006 3:04 am

Re: Block internal ip from accessing internet

Fri Jun 15, 2007 10:19 pm

You would be modifying the forward chain. Keep in mind the funtions of the chains, input is for traffic to the router itself, output is traffic from the router to something else (traffic which originates within the router) and forward is for traffic that comes from somewhere and needs to go somewhere else. (That traffic only transits the router, it does not originate or terminate there)
 
calabash
just joined
Topic Author
Posts: 5
Joined: Wed Aug 30, 2006 12:18 pm

Re: Block internal ip from accessing internet

Sat Jun 16, 2007 1:02 am

So... I would -

add chain=forward protocol=tcp dst-address=192.168.0.141 drop comment="Block this IP"

?

If you could see my expressions as I try to interpret all those properties... priceless. My brain is going to asplode now....

Help?!
 
Mashimoto
Frequent Visitor
Frequent Visitor
Posts: 51
Joined: Thu Feb 24, 2011 3:55 pm

Re: Block internal ip from accessing internet

Thu Mar 03, 2011 7:10 am

change dst-address to src-address

Who is online

Users browsing this forum: halijy, karlisi, mohsenbakhti and 58 guests