tests: check restrict-user-to-ports in firewall-test

This commit is contained in:
Nikos Mavrogiannopoulos
2015-12-01 17:44:06 +01:00
parent 2bb25347d0
commit 34ac6bce56
4 changed files with 16 additions and 7 deletions

View File

@@ -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

View File

@@ -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