openconnect

This commit is contained in:
mercury
2024-01-29 22:26:51 +04:00
parent 6fc7571e76
commit aa48fb3bda
16 changed files with 1100 additions and 31 deletions
+9
View File
@@ -0,0 +1,9 @@
cat /ssh/key.pub > /root/.ssh/authorized_keys
ssh-keygen -A
exec /usr/sbin/sshd -D -e "$@" &
mkdir -p /dev/net
mknod /dev/net/tun c 10 200
chmod 600 /dev/net/tun
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ocserv -c /etc/ocserv/ocserv.conf
tail -f /dev/null