@phil.davis:
3 - I want the client to get the LAN IP address because it just one user who is going to use the VPN to access the LAN, I believe Tun mode is already selected on my VPN configuration
For the client to get real LAN IP, you have to use tap mode.
But the tun mode should also work - if you want to keep trying to make tun mode work, then post the OpenVPN server settings. Somehow the client is not getting the route - until that is fixed it definitely won't work.
Dear Phil,
the below is the confi file of the VPN I used on the client laptop to connect to the office,
P.S I changed the external IP and log in name :
dev tun
persist-tun
persist-key
cipher AES-128-CBC
auth SHA1
tls-client
client
resolv-retry infinite
remote XX.XXX.XX.X 1194 udp
lport 0
verify-x509-name "HassVPN" name
auth-user-pass
pkcs12 pfSense-udp-1194-jjansen.p12
tls-auth pfSense-udp-1194-jjansen-tls.key 1
ns-cert-type server
comp-lzo
Dear Philp,
i managed to fix the issue !
first i had to create a rule to allow the connection between the Lan and OPENVPN, like this it routed the connection from the virtual tunnel to the LAN
thank you so much for your help !