I have installed https://github.com/Nyr/openvpn-install
onto my dedicated machine, and I need to lock down SSH connections to this system. I have attempted to configure /etc/ssh/sshd_config
with the Listen Address: 10.8.0.1
address and ListenAddress 10.8.0.0
but unfortunately this does lock down the connection, but I am unable to connect after the VPN is enabled. Unfortunately it throws Connection Refused
with SSH connections.
This is the top configuration of my OVPN file, please let me know what I need to edit so I A: Get the VPN to work (It does work and connects sucessfully, but not routing traffic through it I believe, which is why it will not allow me to connect (Basically forcing my connection via the server I think, not too sure though if that's the cause)) and B: Have I got the ListenAddress
configured correctly? Which IP do I need to allow? .1 or .0 on the 10.8.0.x
address. If I get this correct, I just need to fix the VPN file, and then we are good to connect basically and lock it down to VPN authentication.
Server IP Configuration: (Configured By OVPN I presume) https://jasmeow.pics/CKF7TX.png
dev tun
proto udp
remote <IPREDACTED> <PORTREDACTED>
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
<ca>```