I have an iptables entry to redirect 80 to 3128,
If I have apache on port 81 (so it doesn't loop continually)
Where would I set this for videocache?
I solved this myself by adding an iptables entry with a -i eth0 redirect to port 3128.
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j REDIRECT --to-port 3128
Basically, all incoming traffic for port 80 across that interface and internal traffic to the proxy itself goes to the correct port. This way apache can still run on port 80 as it needs to.
Also, the cache_host in the videocache.cfg had to be changed to the real outside world IP from 127.0.0.1
Noticed this during testing on Firefox when I saw the url_store_rewrite push the 127.0.0.1 address to the test pc. Obviously, it can't pull from itself since it's not a proxy.
Hope this helps anyone trying to get it working correctly.
As its rule of iptables, is correct. The apache can continue listening on port 81 .. I have the same situation, you need only add a line in the apache configuration file:
Listen 81 Listen 80
... and give a reload in the service.
In videocache.cfg cache_host must be the IP of your internal network. Test and post their results. Greetings
You need to sign in. Please sign in to add answer to this question.