Community discussions

MikroTik App
 
MethOd63
just joined
Topic Author
Posts: 10
Joined: Tue Sep 30, 2008 11:57 pm

Transparent Proxy in MT 3.14

Wed Oct 01, 2008 12:10 am

Can someone tell me how to f......k set up transparent proxy on MT 3.14 ??? Firewall rule works fine in redirect, proxy seems to work fine too , bo all i se in proxy log is : not fount : 1275 , hits: 0......What's with this ???

Thanks for answer.
 
alex998r
Frequent Visitor
Frequent Visitor
Posts: 96
Joined: Sun Jan 07, 2007 10:54 pm
Contact:

Re: Transparent Proxy in MT 3.14

Wed Oct 01, 2008 12:52 pm

But...... with so little informations HOW we can help you?
Please post more informations,data etc.
More informations = MORE help you receive
Regards
Alex
 
MethOd63
just joined
Topic Author
Posts: 10
Joined: Tue Sep 30, 2008 11:57 pm

Re: Transparent Proxy in MT 3.14

Wed Oct 01, 2008 1:55 pm

enabled: yes 
src-address: 0.0.0.0 
port: 8080 
parent-proxy: 0.0.0.0 
parent-proxy-port: 0 
cache-drive: system 
cache-administrator: "webmaster" 
max-cache-size: unlimited 
cache-on-disk: yes 
max-client-connections: 600 
max-server-connections: 600 
max-fresh-time: 3d 
serialize-connections: no 
always-from-cache: yes 
cache-hit-dscp: 4 
Proxy is running.

Now rule in firewall:
/ip firewall nat add chain=dstnat action=redirect to-ports=8080 src-address=192.168.xx.xx/24 dst-port=80 protocol=tcp 
this works fine in 2.9.xx, but in 3.14 not.
Rules in web-proxy access are added. I se many requests but 0 hits, and pages don't display.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Transparent Proxy in MT 3.14

Wed Oct 01, 2008 4:07 pm

pages don't display.
just try... /ip firewall nat add chain=srcnat out-interface=your_uplink action=masquerade
 
MethOd63
just joined
Topic Author
Posts: 10
Joined: Tue Sep 30, 2008 11:57 pm

Re: Transparent Proxy in MT 3.14

Wed Oct 01, 2008 5:05 pm

pages don't display.
just try... /ip firewall nat add chain=srcnat out-interface=your_uplink action=masquerade
Masquerade to transparent proxy ???? you kidding.............
I want to make rule that all my clients opening some websites , will be redirected to proxy server on my MT , is that so hard ???
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Re: Transparent Proxy in MT 3.14

Wed Oct 01, 2008 6:54 pm

In 2.9 there were 2 web proxies:
- "Proxy": typically only available to hotspot users.
- "Web-Proxy": to use at your own discretion (just enable it on default port 3128, enable the transparent proxy option and manually insert rules in nat->dst-nat for protocl=tcp dst-port=80 with action=redirect to-port=3128).

Some differences:
- Web-proxy had more options and could have a cache.
- "Proxy" was associated to hotspot users by default.
- You could configure "proxy" to use "web-proxy" as a parent proxy.
- They used different internal ports.
 
netrat
Member
Member
Posts: 402
Joined: Thu Jun 07, 2007 1:16 pm
Location: Virginia

Re: Transparent Proxy in MT 3.14

Wed Oct 01, 2008 7:08 pm

pages don't display.
just try... /ip firewall nat add chain=srcnat out-interface=your_uplink action=masquerade
Masquerade to transparent proxy ???? you kidding.............
I want to make rule that all my clients opening some websites , will be redirected to proxy server on my MT , is that so hard ???
No it's not hard at all. The rule that Chupaka posted is the masquerade rule that will need to be in place for the redirect to work in the first place. Client's default route is the Mikrotik router, Mikrotik router does NAT(masquerade), any outgoing connection destined for port 80 gets redirected to port 8080 on Mikrotik router.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Transparent Proxy in MT 3.14

Wed Oct 01, 2008 7:26 pm

pages don't display.
just try... /ip firewall nat add chain=srcnat out-interface=your_uplink action=masquerade
Masquerade to transparent proxy ???? you kidding.............
I want to make rule that all my clients opening some websites , will be redirected to proxy server on my MT , is that so hard ???
Did you tried? Is it so hard? If you do not need any help - you are not welcome here

Try this rule - web-proxy in v3.x had a bug with src-address of proxy connections to remote websites

Who is online

Users browsing this forum: Bing [Bot] and 76 guests