How to correctly use DCO mode configuration
-
now i using local pf23.01-BETA system and remote using ubuntu 22.10 openvpn 2.6 with dco kernel.
I can't find complete help documentation on configuring with DCO.
Not sure what is the correct configuration.this pfsense openvpn log:
Jan 29 09:47:03 openvpn 42716 SIGUSR1[soft,process-push-msg-failed] received, process restarting Jan 29 09:47:03 openvpn 42716 Failed to open tun/tap interface Jan 29 09:47:03 openvpn 42716 ERROR: Failed to apply push options Jan 29 09:47:03 openvpn 42716 OPTIONS ERROR: pushed options are incompatible with data channel offload. Use --disable-dco to connect to this server Jan 29 09:47:03 openvpn 42716 OPTIONS IMPORT: Server did not request DATA_V2 packet format required for data channel offload Jan 29 09:47:01 openvpn 42716 [tv189.com] Peer Connection Initiated with [AF_INET]188.156.188.65:51756 Jan 29 09:47:01 openvpn 42716 WARNING: 'ifconfig' is present in remote config but missing in local config, remote='ifconfig 10.18.3.2 10.18.3.1' Jan 29 09:47:01 openvpn 42716 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1500', remote='tun-mtu 1451' Jan 29 09:47:01 openvpn 42716 peer info: IV_PROTO=106 Jan 29 09:47:01 openvpn 42716 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305 Jan 29 09:47:01 openvpn 42716 UDPv4 link remote: [AF_INET]188.156.188.65:51756 Jan 29 09:47:01 openvpn 42716 UDPv4 link local (bound): [AF_INET]10.78.252.35:0 Jan 29 09:47:01 openvpn 42716 TCP/UDP: Preserving recently used remote address: [AF_INET]188.156.188.65:51756 Jan 29 09:47:01 openvpn 42716 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
-
i want to use openvpn for p2p bgp tunnel. so use p2p mode.
this is remote ubuntu openvpn config:
mode p2p local 188.156.188.65 port 51756 proto udp4 dev-type tun dev usvpn link-mtu 1500 ecdh-curve ED448 tls-server remote-cert-tls client ca ca.crt cert server.crt key server.key float dh none auth SHA3-256 tls-crypt ta.key ifconfig 10.18.3.1 10.18.3.2 ifconfig-ipv6 2a0c:2406:513:b::2/124 2a0c:2406:513:b::3 auth-nocache keepalive 30 120 pull-filter ignore peer-id ping-timer-rem cipher AES-256-GCM user nobody group nogroup persist-key persist-tun status openvpn-status.log log openvpn.log verb 3 max-clients 100 mute 20 tls-version-min 1.3
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.