I am trying to use an absolete rb1000 box with a 40Mb memory card in its slot.
I have followed the several step to initiate the disk and force the port 80 traffic towards port 8080 etc.
I have the box with two ports connected to a router 1100AH that serves as traffic collector for 80% of my network traffic before its send over a backhaul link to a fibre connection (=internet)
rb1100AH ether 10 has ip 10.30.30.2/30 and connects to rb1000 ether 3 with IP 10.30.30.1/30.
rb1100AH ether 11 has ip 10.50.50.1/30 and connects to rb1000 ether 4 with IP 10.50.50.2/30
In rb1100AH I have dst-nat rule:
/ip firewall nat
add action=dst-nat chain=dstnat dst-port=80 in-interface=vlan20_AP-B protocol=tcp src-address=172.25.55.0/25 to-addresses=10.30.30.1
(I use vlan20_AP-B in this instance only for testing. All traffic from AP-B comes into router 1100AH on this vlan interface.)
This rule should make sure all port 80 traffic gets redirected to ehter3 of the rb1000 (=web proxy box)
In rb1000 I have redirect rule:
/ip firewall nat
add action=redirect chain=dstnat dst-port=80 protocol=tcp to-ports=8080
and setup of web proxy;
[adminrudy@Web Proxy Server] /ip proxy> pr
enabled: yes
src-address: ::
port: 8080
parent-proxy: ::
parent-proxy-port: 0
cache-administrator: webmaster
max-cache-size: unlimited
max-cache-object-size: 2048KiB
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: CF1
this rb1000 proxy server has also default route:
/ip route
add distance=1 gateway=10.50.50.1
/ip route rule
add dst-address=0.0.0.0/0 src-address=0.0.0.0/0 table=main
and routes table:
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 10.50.50.1 1
1 ADC 10.30.30.0/30 10.30.30.1 ether3-IN 0
2 ADC 10.50.50.0/30 10.50.50.2 ether4-OUT 0
Now, I am testing the setup:
- I see some little traffic movement on the dst-nat rule in the rb1100AH.
- I see only incoming traffic on the ether3 interface of the rb1000
- I see much more traffic going in, and going out of ether 4 interface of the rb1000 (???)
- In “Web Proxy Connections” I see lots of connections beeing build
- In web proxy status I see requests, but not a single hit;
[adminrudy@Web Proxy Server] /ip proxy> monitor
status: running
uptime: 38m33s
requests: 1704
hits: 0
cache-used: 0KiB
total-ram-used: 1867KiB
received-from-servers: 10423KiB
sent-to-clients: 10403KiB
hits-sent-to-clients: 0KiB
-
Browsing on connected laptop does work. And when I hit a webpage I see the produced traffic like just explained.
But something is not right: -
Why don’t I see the proxy cache beeing build up?
-
Why don’t I see any ‘hits’?
-
Why do I only see incoming traffic on ether3 but see high traffic load in and out going on ether4?
Any advices?