mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
tests: check restrict-user-to-ports in firewall-test
This commit is contained in:
@@ -29,4 +29,4 @@ ADD fw-script /usr/bin/
|
||||
# template, so we untar it from this archive.
|
||||
ADD dev-tun.tgz /dev/
|
||||
|
||||
CMD nuttcp -S;sshd-keygen;/usr/sbin/sshd;mkdir -p /tmp/disconnect/;usr/sbin/ocserv -d 1 -f;sleep 3600
|
||||
CMD nuttcp -p 6001 -P 6000 -S;nuttcp -S;sshd-keygen;/usr/sbin/sshd;mkdir -p /tmp/disconnect/;usr/sbin/ocserv -d 1 -f;sleep 3600
|
||||
|
||||
@@ -256,6 +256,7 @@ route = fd91:6d87:7441:dc6a::/64
|
||||
no-route = 10.46.59.0/24
|
||||
|
||||
restrict-user-to-routes = true
|
||||
restrict-user-to-ports = "tcp(6000), tcp(6001), icmp(), icmpv6()"
|
||||
|
||||
# Configuration files that will be applied per user connection or
|
||||
# per group. Each file name on these directories must match the username
|
||||
|
||||
Reference in New Issue
Block a user