Community discussions

MikroTik App
 
nedwed
just joined
Topic Author
Posts: 1
Joined: Thu Oct 27, 2016 10:15 am

Block internet access but allow gmail

Thu Oct 27, 2016 10:33 am

Hi,
I want to block internet access from a specified ip/mac except email.
My first idea was to block ports 80(http) and 443(https) and access email through a client (Thunderbird), but I'm having problems with gmail.
In theory gmail should use 993 and 465 ports to connect, but it seems that it needs the https port for authorization?
I think that the the OAuth2 method is the reason for this problem.
I've also tried to block only the DNS port and use direct IP for imap and smtp...also no luck with that.
Does someone have any experience with a similar problem?
 
alger
Frequent Visitor
Frequent Visitor
Posts: 80
Joined: Tue Dec 19, 2006 12:35 pm
Location: Russia
Contact:

Re: Block internet access but allow gmail

Fri Oct 28, 2016 11:14 pm

Make a rule with logging and see what ports are used.

Ps: And, for gmail you must enable POP or IMAP access.
 
Delte
just joined
Posts: 23
Joined: Tue Oct 25, 2016 3:18 pm

Re: Block internet access but allow gmail

Sat Oct 29, 2016 8:42 pm

You can give a try by allowing "pop.gmail.com" & "smtp.gmail.com" & block rest everything else.

However google have a huge range of IP for it so i guess you can get a script which constantly update it to your address list.