mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Added example scripts and updated documentation.
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Disable the firewall for the user's device
|
||||
iptables -A INPUT -i $DEVICE -j ACCEPT
|
||||
|
||||
if [ "$GROUPNAME" != "admins" ];then
|
||||
#rate limit the tun device to 64kbyte
|
||||
wondershaper $DEVICE 524288 524288
|
||||
fi
|
||||
|
||||
echo "User '$USERNAME' from '$IP_REAL' connected. Local IP is '$IP_REMOTE'"
|
||||
Reference in New Issue
Block a user