Skip to content

Commit

Permalink
working docker
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCore committed May 28, 2015
1 parent 3a24691 commit bd97c9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ COPY nat.sh /tmp/

RUN chmod 777 /tmp/nat.sh
RUN chmod +x /tmp/nat.sh
RUN sudo /tmp/nat.sh

#RUN apt-get -y install sudo
#RUN sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
#RUN sudo /tmp/nat.sh

VOLUME ["/vpn"]

Expand Down
1 change: 1 addition & 0 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

set -o nounset # Treat unset variables as an error

iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
### timezone: Set the timezone for the container
# Arguments:
# timezone) for example EST5EDT
Expand Down

0 comments on commit bd97c9e

Please sign in to comment.