From 209c4be3b056e9bdfc84577ee85e2f7df805a8c5 Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 29 Jun 2015 10:09:28 +0800 Subject: [PATCH] update --- privoxy/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/privoxy/Dockerfile b/privoxy/Dockerfile index 4433067..512a230 100644 --- a/privoxy/Dockerfile +++ b/privoxy/Dockerfile @@ -19,8 +19,8 @@ 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}') \ + && iptables -A INPUT -s $(ip a s eth0 | grep -w inet | awk '{print $2}' | cut -d/ -f1) \ + -d $(ip a s eth0 | grep -w inet | awk '{print $2}' | cut -d/ -f1) \ -j REJECT \ && iptables -t filter -P OUTPUT DROP \ && iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT \