Bridge with Proxy

Is it possible to use the Web Proxy with bridged traffic?

/interface bridge settings set use-ip-firewall=yes

then you can use NAT rules to setup transparent proxy (see documentation for example)

If I have the following settings:
/ip proxy> print
enabled: yes
src-address: 0.0.0.0
port: 8080
parent-proxy: 0.0.0.0
parent-proxy-port: 0
cache-administrator: “webmaster”
max-cache-size: 20000KiB
cache-on-disk: yes
max-client-connections: 600
max-server-connections: 600
max-fresh-time: 3d
serialize-connections: no
always-from-cache: no
cache-hit-dscp: 4
cache-drive: system

/ip firewall nat
add action=redirect chain=dstnat comment=“” disabled=no dst-port=80
in-interface=ether4 protocol=tcp to-ports=8080

I don’t see any activity.
I have bridged ports ether1-wan and port ether4

instead of in-interface=ether4, you should use in-bridge-port=ether4

Does your bridge interface have an IP address?

  • Sudipta

instead of in-interface=ether4, you should use in-bridge-port=ether4

I tried that, it didn’t work.

Does your bridge interface have an IP address?

Yes.

so, the rule still doesn’t count packets?

do you have another dst-NAT rules?

so, the rule still doesn’t count packets?

No.

do you have another dst-NAT rules?

No.

Should I be setting the rules under
/ip firewall nat
or
/interface bridge nat
?

under

/ip firewall nat

also, show us

/interface bridge settings print

Give a simple answer.

  1. when you do a tracert to www.google.com from your user pc do you pass through the IP address on the bridge port? I mean does the tracert result show up the ip address of the bridge interface anywhere?

If the answer is no then it is impossible to fire a transparent proxy in the current topology.

just check.

regards,

Sudipta

of course bridge’s IP is not shown in tracert. if it’s shown - then it’s routing, not bridging =)

Chupaka,

I started over from scratch with a clean install. Followed instructions and it worked.

Thanks

glad to hear that =)

Hello,

I have face a problem of Bridge with Proxy.

Problem is : From my remote user PC (connected by vlan) http website work is very slow as like opening time 10/15 minute (Browser status bar show Transferring data). but https website work is good.

But my local user PC is working good, no problem.

See my network diagram:
Network-Diagram.jpg
My router configuration is as follows:

IP/Address Interface
000.000.00.000 = ISP (vlan565)
192.168.10.254 = br_local_lan

bridge name = br_local_lan
protocol mode = none
Use Ip firewall = yes
Allow fast Path = yes

Bridge/Ports
ether3lan = br_local_lan
vlan757 = br_local_lan

IP/Firewall nat rule: Add chain= dstnat Protocol=6(tcp) Dst.Port=80 In.Interface=br_local_lan Action=redirect To ports=8080

I am not find out the problem of my configuration, So pl help me how to solve the problem.

Regards,
Nishadul

sounds like MTU problem. you may try to decrease MSS for TCP packets by Mangle rule and check again