mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-13 22:06:55 +02:00
update
This commit is contained in:
parent
378ee1dd8f
commit
5ca78aa507
@ -16,7 +16,5 @@ COPY pptpd-options /etc/ppp/
|
|||||||
EXPOSE 1723
|
EXPOSE 1723
|
||||||
|
|
||||||
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
||||||
&& syslogd \
|
|
||||||
&& pptpd \
|
&& pptpd \
|
||||||
&& sleep 0.1 \
|
&& syslogd -n -O /dev/stdout
|
||||||
&& tail -f /var/log/messages
|
|
||||||
|
@ -18,5 +18,22 @@ 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 -t nat -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner privoxy -j REDIRECT --to-ports 8118 \
|
CMD iptables -t filter -P OUTPUT DROP \
|
||||||
|
&& iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT \
|
||||||
|
&& iptables -t filter -A OUTPUT -p tcp \
|
||||||
|
-m multiport --dports 53,80,443,8118 \
|
||||||
|
-j ACCEPT \
|
||||||
|
&& iptables -t filter -A OUTPUT -p tcp \
|
||||||
|
-m state --state ESTABLISHED,RELATED \
|
||||||
|
-j ACCEPT \
|
||||||
|
&& iptables -t filter -A OUTPUT -p udp \
|
||||||
|
-m state --state ESTABLISHED,RELATED \
|
||||||
|
-j ACCEPT \
|
||||||
|
&& iptables -t filter -A OUTPUT -p tcp \
|
||||||
|
-m owner --uid-owner privoxy \
|
||||||
|
-j ACCEPT \
|
||||||
|
&& iptables -t nat -A OUTPUT -p tcp \
|
||||||
|
-m multiport --dports 80,443 \
|
||||||
|
-m owner ! --uid-owner privoxy \
|
||||||
|
-j REDIRECT --to-ports 8118 \
|
||||||
&& gosu privoxy privoxy --no-daemon /etc/privoxy/config
|
&& gosu privoxy privoxy --no-daemon /etc/privoxy/config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user