Joined: Sat May 24, 2008 2:37 am Posts: 58
Karma: 0
Hello,
Please can some one give me a bit of info.. I have looked at this link
http://www.mikrotik.com/testdocs/ros/2.9/ip/webproxy.php and confused the hell out of me..
And i am well still confused.. We run a 2.6 Squid server on a standalone machine. I dont want the ROUTEROS to handle the cache, all i want is it to forward all the webpage requests to the SQUID Server.
Ok this is our network layout
192.168.0.x/24 Customers -----> 192.168.0.251 (RouterOS Gatway) ----> 192.168.0.2 DNS Server -----> 192.168.0.4 --- Squid Server ----> 192.168.0.1 Internet Modem
Here is my config so far:
# ADDRESS NETWORK BROADCAST INTERFACE 0 ;;; local Lan 192.168.0.251/24 192.168.0.0 192.168.0.255 ether1 1 ;;; WAN 192.168.9.100/24 192.168.9.0 192.168.9.255 ether2
Flags: X - disabled, I - invalid, D - dynamic 0 chain=srcnat action=masquerade
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE IN.. 0 A S 0.0.0.0/0 r 192.168.9.1 1 et.. 1 ADC 192.168.0.0/24 192.168.0.251 0 et.. 2 ADC 192.168.9.0/24 192.168.9.100 0 et..
So do i need to add a route or use the ROUTEROS Proxy and point and a parent proxy.
I WILL UNDERSTAND THIS ONE DAY! If anyone can point me in the right direction to a simple way to configure this, as i am very new to ROUTEROS and SQUID so its a learning curve.
Then all i have to get working is NLB and failover..... then all done, PROJECT FINISHED!!!!! I have to say i would not have got this far with out this forum!! THANK YOU ALL!!!!!
Joined: Fri May 28, 2004 10:04 am Posts: 17163 Location: Riga, Latvia
webproxy is not working in the demo version. you can try it only in the key-less 24h version.
another approach would be to not use any webproxy on the RouterOS, but just make a DST-NAT rule with action DST-NAT to redirect all TCP:80 traffic to your Squid
Some aspect of the HTTP Request is invalid. Possible problems:
* Missing or unknown request method * Missing URL * Missing HTTP Identifier (HTTP/1.0) * Request is too large * Content-Length missing for POST or PUT requests * Illegal character in hostname; underscores are not allowed
Joined: Sat May 24, 2008 2:37 am Posts: 58
Karma: 0
Once again thanks to the Forum i was able to get squid now working correctly as a Transparent Cache.
Now got to work on failover just in case it stops working. If anyone is having problems configuring squid, please email me and i will send you my squid.conf setup with the RouterOS Config so you can setup like it did...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum