0

This might be a stupid question but I was not able to google the right thing to find the answer.

How do I block all outgoing traffic from eth1 on Squid on the TCP level?

I have used the iptables rule below before when using Squid in Docker, not sure how to implement it without Docker.

iptables -t filter -I FORWARD -p tcp -o eth0 -m mark --mark 0x0c10f -j REJECT
  • Are you asking what filter might be appropriate in place of -m mark? Have you considered -m owner? – anx Oct 14 at 0:43
-1

From the squid box, block all outgoing traffic

$ sudo iptables -A OUTPUT -j DROP
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.