Hi All,
I've tried searching for a solution all over the place, I've recently relocated my openvpn server to a different office, different public and private IPs. I've changed the IP on server.conf file, I can connect to the vpn server, and i can access the office LAN network, but no public internet access, all the traffic stopped at the vpnserver, I have the redirect-gateway def1 in config and the NAT rule in place. It's really strange, that there's really nothing changed other than the vpn server LAN ip, and i don't know why it kept trying to bind to the old address.
old vpn server ip: 192.168.2.2
network: 192.168.2.0/24
New VPN server IP: 192.168.12.10
network: 192.168.12.0/24
vpn netowrk: 10.8.0.0/24
And I'm seeing this error in the log
Jan 30 17:48:58 openvpn[4698]: TCP/UDP: Socket bind failed on local address [AF_INET]192.168.2.2:1194: Cannot assign requested address (errno=99)
local 192.168.12.10
port 1194
proto udp4
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
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
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
client-cert-not-required
plugin /usr/local/lib/openvpn-auth-ldap.so /etc/openvpn/openvpn-auth-ldap.conf
client
dev tun
proto udp
remote server_public_address 1194
resolv-retry infinite
persist-key
persist-tun
nobind
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
verb 3
auth-user-pass
auth-retry interact
<ca>