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 '20 at 00:43

1 Answers1

-1

From the squid box, block all outgoing traffic

$ sudo iptables -A OUTPUT -j DROP
Bruce Malaudzi
  • 214
  • 1
  • 5