mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
Enhanced configuration option 'restrict-user-to-ports'
This enhancement allows to negate the rules and allow the user connecting to all ports except the specified.
This commit is contained in:
@@ -480,6 +480,9 @@ no-route = 192.168.5.0/255.255.255.0
|
||||
# or in the per-user configuration.
|
||||
#restrict-user-to-ports = "tcp(443), tcp(80), udp(443), sctp(99), tcp(583), icmp(), icmpv6()"
|
||||
|
||||
# You could also use negation, i.e., block the user from accessing these ports only.
|
||||
#restrict-user-to-ports = "!(tcp(443), tcp(80))"
|
||||
|
||||
# When set to true, all client's iroutes are made visible to all
|
||||
# connecting clients except for the ones offering them. This option
|
||||
# only makes sense if config-per-user is set.
|
||||
|
||||
Reference in New Issue
Block a user