Session Time Limit

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
zenlix
OpenVpn Newbie
Posts: 1
Joined: Wed Nov 18, 2020 1:13 pm

Session Time Limit

Post by zenlix » Wed Nov 18, 2020 1:16 pm

How i can limit the vpn sessions by the time?

I already view
telnet localhost 7505
kill ip:port

But, the client again auto reconnected to server.

Server conf:

Server config
management localhost 7505
local 157.230.57.160
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 67.207.67.2"
push "dhcp-option DNS 67.207.67.3"
keepalive 5 10
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
explicit-exit-notify
duplicate-cn


Client conf:

Client config
client
dev tun
proto udp
remote 157.230.57.160 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
ping-restart 0
ping-exit 5
connect-retry-max 1
Last edited by Pippin on Wed Nov 18, 2020 2:15 pm, edited 1 time in total.
Reason: Formatting

Post Reply