Hwo can I disable access for a particular user with strongswan public key authentication?
So I have pub key authentication working. the SAN is the email and is the id. Is there a way to reject authentication for a particular userid (rightid) ? I want to be able to switch user access off and on easily which I realize I could do with psk auth by just removing entries in the secrets file. I am hoping there is a way to do with with certs. I would revoke a cert with the "hold" reason, but strongswan's pki doesn't support the unrevoking ability. I also tried to set up a trap to reject authentication with no success. There must be the ability to specify which clientids are allowed to connect
conn main
leftauth=pubkey
leftcert=servercert.pem
rightauth=pubkey
leftid=mydomain.com
type=tunnel
left=%any
leftsubnet=0.0.0.0/0
right=%any
rightsubnet=192.168.137.0/24
esp=aes128gcm16-sha256-modp3072
ike=aes128gcm16-sha256-modp3072
keyexchange=ikev2
ikelifetime=28800s #Time before re authentication of keys
auto=add
conn close
also=main
rightid=myclientemail@domain.com
rightauth=never
auto=route