Answer the question
In order to leave comments, you need to log in
How to configure squid and iptables to filter certain ips by url?
It is necessary to filter certain sites by url, there is an ip address and the actual url.
What was the idea - a rule is created in iptables to mark packets to specific addresses
iptables -A PREROUTING -i eth0 -p tcp --dport 80 -d 199.115.119.133 -t mangle -j MARK --set-mark 1
Answer the question
In order to leave comments, you need to log in
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -d 199.115.119.133 -j DNAT --to localhost:3128
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question