Update readme and example init

This commit is contained in:
TheSpad
2022-07-31 16:46:19 +01:00
parent 04365c7862
commit c7a8f29178
14 changed files with 138 additions and 15 deletions
+2 -5
View File
@@ -1,8 +1,6 @@
#!/usr/bin/with-contenv bash
# Determine if setup is needed
if [ ! -f /usr/local/lib/python***/dist-packages/sshuttle ] && \
[ -f /usr/bin/apt ]; then
if [ -f /usr/bin/apt ]; then
## Ubuntu
apt-get update
apt-get install --no-install-recommends -y \
@@ -12,8 +10,7 @@ if [ ! -f /usr/local/lib/python***/dist-packages/sshuttle ] && \
python3-pip
pip3 install sshuttle
fi
if [ ! -f /usr/lib/python***/site-packages/sshuttle ] && \
[ -f /sbin/apk ]; then
if [ -f /sbin/apk ]; then
# Alpine
apk add --no-cache \
iptables \
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/with-contenv bash
if [ -f /usr/bin/apt ]; then
## Ubuntu
echo "\
iptables \
openssh-client \
python3 \
python3-pip" >> /mod-repo-packages-to-install.list
fi
if [ -f /sbin/apk ]; then
# Alpine
echo "\
iptables \
openssh \
python3 \
py3-pip" >> /mod-repo-packages-to-install.list
fi
echo "\
sshuttle" >> /mod-pip-packages-to-install.list
chown -R root:root /root
chmod -R 600 /root/.ssh
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mods-universal-sshvpn/run
@@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
sshuttle --dns --remote root@${HOST}:${PORT} 0/0 -x 172.17.0.0/16
@@ -0,0 +1 @@
longrun
Regular → Executable
View File