Commit 7d1aea09 authored by Daniele Venzano's avatar Daniele Venzano

Add the user gateway image sources to the main Zoe repository

parent 78b96e4d
......@@ -59,4 +59,4 @@ docs/_build/
target/
.idea/
state.zoe
*.conf
/zoe-*.conf
FROM alpine:3.3
MAINTAINER Daniele Venzano <venza@brownhat.org>
RUN apk add --update-cache openssh openssh-client
ADD start-ssh.sh /
RUN adduser -D -h /home/user -s /bin/ash user
RUN passwd -u user
#RUN apk add --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted dante-server && rm -Rf /var/cache/apk/*
#ADD sockd.conf /etc/sockd.conf
#ENV CFGFILE /etc/sockd.conf
#ENV PIDFILE /tmp/sockd.pid
#ENV WORKERS 2
EXPOSE 22 1080
CMD sh /start-ssh.sh
#CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS
debug: 0
logoutput: stderr
internal: 0.0.0.0 port = 1080
external: eth0
external: eth1
clientmethod: none
socksmethod: none
user.unprivileged: nobody
external.rotation: route
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: error
}
socks pass {
from: 0.0.0.0/0 to: 10.0.0.0/8
log: connect disconnect error
command: bind connect udpassociate
}
socks pass {
from: 10.0.0.0/0 to: 0.0.0.0/0
command: bindreply udpreply
log: connect disconnect error # connect disconnect iooperation
}
#!/bin/sh
ssh-keygen -A
/usr/sbin/sshd
if [ ! -f /home/user/.ssh/id_rsa ]; then
su -c "ssh-keygen -f /home/user/.ssh/id_rsa -N \"\"" user
fi
su -c "cp /home/user/.ssh/id_rsa.pub /home/user/.ssh/authorized_keys" user
su -c "ssh -D 1080 -o \"StrictHostKeyChecking no\" -g -N -v localhost" user
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment