mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update
This commit is contained in:
@@ -18,10 +18,9 @@ RUN sed -i -e '/^listen-address/s/127.0.0.1/0.0.0.0/' \
|
|||||||
VOLUME /etc/privoxy
|
VOLUME /etc/privoxy
|
||||||
EXPOSE 8118
|
EXPOSE 8118
|
||||||
|
|
||||||
CMD iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -j REJECT \
|
CMD echo "{+block}" >> /etc/privoxy/user.action \
|
||||||
&& iptables -A INPUT -s $(ip a s eth0 | grep -w inet | awk '{print $2}' | cut -d/ -f1) \
|
&& ip a s eth0 | grep -w inet | awk '{print $2}' | cut -d/ -f1 >> /etc/privoxy/user.action \
|
||||||
-d $(ip a s eth0 | grep -w inet | awk '{print $2}' | cut -d/ -f1) \
|
&& ip r s | grep default | awk '{print $3}' >> /etc/privoxy/user.action \
|
||||||
-j REJECT \
|
|
||||||
&& iptables -t filter -P OUTPUT DROP \
|
&& iptables -t filter -P OUTPUT DROP \
|
||||||
&& iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT \
|
&& iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT \
|
||||||
&& iptables -t filter -A OUTPUT -p tcp \
|
&& iptables -t filter -A OUTPUT -p tcp \
|
||||||
|
|||||||
@@ -40,6 +40,12 @@ file: user.action
|
|||||||
```
|
```
|
||||||
{+filter{rot}}
|
{+filter{rot}}
|
||||||
/
|
/
|
||||||
|
|
||||||
|
{+block}
|
||||||
|
127.0.0.1
|
||||||
|
104.156.239.190
|
||||||
|
.datageek.info
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
file: user.filter
|
file: user.filter
|
||||||
|
|||||||
@@ -1,2 +1,8 @@
|
|||||||
{+filter{rot}}
|
{+filter{rot}}
|
||||||
/
|
/
|
||||||
|
|
||||||
|
{+block}
|
||||||
|
127.0.0.1
|
||||||
|
104.156.239.190
|
||||||
|
.datageek.info
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user