Community discussions

MikroTik App
 
upviqq
newbie
Topic Author
Posts: 39
Joined: Thu Jun 02, 2016 10:18 am

Can I redirect all trafic to squid?

Thu Jul 28, 2016 3:03 pm

If I set my local proxy server on mobile devices wi-fi settings all traffic goes through that proxy, even from apps and https.
Can I do the same with mikrotik?
I know about transparent proxy and can redirect port 80, but what about all traffic, like in system settings?
 
User avatar
reidavidinho
Frequent Visitor
Frequent Visitor
Posts: 80
Joined: Mon Jul 25, 2016 11:11 am
Location: Ibadan, Nigeria
Contact:

Re: Can I redirect all trafic to squid?

Thu Jul 28, 2016 3:42 pm

there's always action=redirect in Mikrotik firewall
 
upviqq
newbie
Topic Author
Posts: 39
Joined: Thu Jun 02, 2016 10:18 am

Re: Can I redirect all trafic to squid?

Thu Jul 28, 2016 3:53 pm

there's always action=redirect in Mikrotik firewall
Just redirect all incoming traffic from all ports on WAN to squid ip and port?
Ok, I'll try it.
 
User avatar
cdiedrich
Forum Veteran
Forum Veteran
Posts: 997
Joined: Thu Feb 13, 2014 2:03 pm
Location: Basel, Switzerland // Bremen, Germany
Contact:

Re: Can I redirect all trafic to squid?

Thu Jul 28, 2016 3:56 pm

there's always action=redirect in Mikrotik firewall
Beware that the redirect action is meant for redirecting traffic to a local port on the router itself.
The appropriate action for this scenario would be dst-nat.
And I frankly don't get the point what this should be useful for.
-Chris
 
upviqq
newbie
Topic Author
Posts: 39
Joined: Thu Jun 02, 2016 10:18 am

Re: Can I redirect all trafic to squid?

Thu Jul 28, 2016 4:19 pm

And I frankly don't get the point what this should be useful for.
-Chris
To block ads and redirect few useful domains, blocked by ISP, to TOR. And without additional settings for my guests, of course.
 
User avatar
cdiedrich
Forum Veteran
Forum Veteran
Posts: 997
Joined: Thu Feb 13, 2014 2:03 pm
Location: Basel, Switzerland // Bremen, Germany
Contact:

Re: Can I redirect all trafic to squid?

Thu Jul 28, 2016 4:35 pm

To block ads and redirect few useful domains, blocked by ISP, to TOR. And without additional settings for my guests, of course.
Makes sense...
The statement "all ports on WAN" made me conclude that you wanted to forward all inbound traffic to oyur squid.
-Chris
 
mjsabri
Trainer
Trainer
Posts: 112
Joined: Sat Dec 12, 2015 10:55 am

Re: Can I redirect all trafic to squid?

Thu Jul 28, 2016 5:07 pm

hello
you should add rule in firewall-nat with chain dst-nat and set protocol tcp and dst-port your port then action set with dst-nat and to-address squid server
 
upviqq
newbie
Topic Author
Posts: 39
Joined: Thu Jun 02, 2016 10:18 am

Re: Can I redirect all trafic to squid?

Fri Jul 29, 2016 7:52 am

My dstnat rule not working. There are matching packets in winbox, but I can't see Squid rules working. And disabling masquerade disables internet.
Chain: dstnat, Protocol: tcp, In interface: pppoe-out1(from my ISP), Action: dstnat, To Addresses: 192.168.88.2, To Ports: 3128.
 
upviqq
newbie
Topic Author
Posts: 39
Joined: Thu Jun 02, 2016 10:18 am

Re: Can I redirect all trafic to squid?

Fri Jul 29, 2016 4:10 pm

I'm trying now to dstnat at least port 80, it doesn't work either.

Who is online

Users browsing this forum: No registered users and 21 guests