Commit ce90805e authored by 神楽坂玲奈's avatar 神楽坂玲奈

cisco anyconnect

parent e8f25bcf
Pipeline #15940 failed with stages
in 1 minute and 9 seconds
FROM debian:bullseye-slim FROM debian:bullseye-slim
RUN apt update && apt -y --no-install-recommends install \ RUN apt update && apt -y --no-install-recommends install \
openconnect ca-certificates iproute2 iptables ipset && \ wget procps libxml2 libglib2.0-0 kmod ca-certificates && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
CMD ["openconnect"] RUN wget http://dl1.technet24.ir/Downloads/Software/Cisco/AnyConnect/anyconnect-linux64-4.10.05111-predeploy-k9.tar.gz -O - | tar -xz && \
cd anyconnect-linux64-4.10.05111/vpn && \
rm license.txt && \
mkdir -p /usr/share/desktop-directories /usr/share/applications && \
bash -c "mkdir -p /usr/share/icons/hicolor/{48x48,64x64,96x96,128x128,256x256}/apps" && \
./vpn_install.sh && \
rm -rf anyconnect-linux64-4.10.05111
WORKDIR /opt/cisco/anyconnect/bin/
COPY entrypoint.sh .
CMD ["./entrypoint.sh"]
#!/bin/bash
# https://stackoverflow.com/a/55817495
cp /etc/resolv.conf /etc/resolv.conf.bak
umount /etc/resolv.conf
cp /etc/resolv.conf.bak /etc/resolv.conf
vpnagentd
echo -e "${username}\n${password}" | vpn -s connect ${host}
\ No newline at end of file
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