Community discussions

MikroTik App
 
cubacan
just joined
Topic Author
Posts: 8
Joined: Sun Jan 27, 2008 3:21 am

question about how to use a private proxy on a mikrotik router as a client proxy.

Thu Jan 20, 2022 12:06 am

hi I would like I do not know if I am in the right topic in case I apologize in advance. I would like to ask for information I have a private device proxy and I would like all my devices to automatically connect to the private proxy from the mikrotik router without having to enter the proxy authentication and password. is it possible to configure a proxy as a client without having to use the web browser settings? but have the proxy ip directly?
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2983
Joined: Mon Apr 08, 2019 1:16 am

Re: question about how to use a private proxy on a mikrotik router as a client proxy.

Thu Jan 20, 2022 1:09 am

Transparent proxy might be what you are looking for (e.g. use proxy for selected traffic without specifying it at the client)

After you setup the proxy , redirect all passing traffic that should be proxied to the proxy port.
Here the MT has IP address 192.168.87.1 and all port 80 traffic should be proxied except that from or to the MT router.

"!" means NOT
# create proxy with the features you like
/ip proxy
set enabled=yes max-cache-size=3000KiB parent-proxy=0.0.0.0
#
# now redirect traffic  with dst-port=80 via proxy port 8080, exclude router traffic
/ip firewall nat
add action=redirect chain=dstnat comment="transparent proxy" dst-address=!192.168.87.1 dst-port=80 protocol=tcp src-address=!192.168.87.1 to-ports=8080
#
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11433
Joined: Thu Mar 03, 2016 10:23 pm

Re: question about how to use a private proxy on a mikrotik router as a client proxy.

Thu Jan 20, 2022 10:23 am

A word of warning: https (TCP port 443) can not be transparently proxied because it is almost certain that proxy won't have the right certificate installed.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: question about how to use a private proxy on a mikrotik router as a client proxy.

Thu Jan 20, 2022 1:50 pm

Yup.
This will not give you much, since most sites today uses 443
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2983
Joined: Mon Apr 08, 2019 1:16 am

Re: question about how to use a private proxy on a mikrotik router as a client proxy.

Thu Jan 20, 2022 3:56 pm

Explicit proxy will work, as device will send a "CONNECT" request through the Proxy tunnel. But caching of pages is not possible as the encryption changes with every download.
https://stackoverflow.com/questions/516 ... xy-servers

Auto detection/configuration based on WPAD or PAC file. Might be another way if the client device supports this. (https://en.wikipedia.org/wiki/Web_Proxy ... y_Protocol)

Who is online

Users browsing this forum: coreshock and 27 guests