@viragomann
I find myself in great difficulty for a random behavior.
Yet the configuration is the "basic" one, created with the Wizard and the same as many others described on the Internet.
For testing I use:
Browser with clean cache
Browsing in private mode, not to save caches, cookies, etc.
Online newspapers because they have a very dynamic content.
Well:
In pfSense there is the Redirect Gateway = ON
I connect to the VPN, the tray icon turns green; a Win10Pro message appears telling me that an IP has been assigned for the tunnel; I can access the pfSense configuration page.
I open the browser for the test; I open the online newspaper; I browse some articles; I ping using the newspaper domain. So, everything is OK.
After few minutes, the VPN is still active, but the pages are no longer reachable and the ping from the PC no longer works because it cannot resolve the domain, while if I do it from the GUI of pfSense, ping works correctly on all interfaces.
OpenVPN log reports:
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_VER=2.5.4
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_PLAT=win
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_PROTO=6
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_LZ4=1
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_LZ4v2=1
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_LZO=1
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_COMP_STUB=1
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_COMP_STUBv2=1
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_TCPNL=1
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_GUI_VER=OpenVPN_GUI_11
Nov 15 07:00:40 openvpn 30979 IP-ROUTER:55664 peer info: IV_SSO=openurl,crtext
Nov 15 07:00:41 openvpn 27557 user 'USERNAME' authenticated
Nov 15 07:00:46 openvpn 30979 IP-ROUTER:55664 [USERNAME] Peer Connection Initiated with [AF_INET]IP-ROUTER:55664
Nov 15 07:00:46 openvpn 30979 USERNAME/IP-ROUTER:55664 MULTI_sva: pool returned IPv4=10.101.101.2, IPv6=(Not enabled)
Then follow dozens of reports all the same
Nov 15 07:00:56 openvpn 30979 USERNAME/IP-ROUTER:55664 Authenticate/Decrypt packet error: bad packet ID (may be a replay): [ #163 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
Sometimes disconnecting and reconnecting is not useful and I have to close the OpenVPN client to reopen it again.
Now I am forced to work with three PCs:
One to access pfSense.
One to test the VPN
One connected directly to the router to be able to navigate so that you can always access the online documentation.
The OpenVPNclient GUI is v11.25.0.0
Installed with OpenVPN-2.5.4-I604-amd64.msi
This is the config (.ovpn)
dev tun
persist-tun
persist-key
ncp-disable
cipher AES-256-CBC
auth SHA512
tls-client
client
resolv-retry infinite
remote MYDDNS.duckdns.org 1194 udp4
setenv opt block-outside-dns
lport 0
verify-x509-name "mynamepfsense-ovpn-rwa" name
auth-user-pass
remote-cert-tls server
explicit-exit-notify
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-auth>