From a6b5f92baefd472c065dfb58170a0b82fbd1dcf2 Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 29 Jun 2015 10:07:44 +0800 Subject: [PATCH] update --- privoxy/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/privoxy/Dockerfile b/privoxy/Dockerfile index de5015d..4433067 100644 --- a/privoxy/Dockerfile +++ b/privoxy/Dockerfile @@ -19,6 +19,9 @@ VOLUME /etc/privoxy EXPOSE 8118 CMD iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -j REJECT \ + && iptables -A INPUT -s $(ip route | grep default | awk '{print $3}') \ + -d $(ip route | grep default | awk '{print $3}') \ + -j REJECT \ && iptables -t filter -P OUTPUT DROP \ && iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT \ && iptables -t filter -A OUTPUT -p tcp \