Hi,
I hope this is the right place for my question. If not I won't be mad if you just delete my post.
I installed OpenVPN on an Ubuntu 20.04 Server and at the beginning everything seemed to work well. By trying to connect from my nothing worked.
Here is the log from "Tunnelblick" on my Mac:
[olog]2021-08-29 13:16:13.314799 *Tunnelblick: openvpnstart log:
OpenVPN started successfully.
Command used to start OpenVPN (one argument per displayed line):
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.5.3-openssl-1.1.1l/openvpn
--daemon
--log /Library/Application Support/Tunnelblick/Logs/-SLibrary-SApplication Support-STunnelblick-SShared-Sclient1.tblk-SContents-SResources-Sconfig.ovpn.769_0_3_0_34652464.58425.openvpn.log
--cd /Library/Application Support/Tunnelblick/Shared/client1.tblk/Contents/Resources
--machine-readable-output
--setenv IV_GUI_VER "net.tunnelblick.tunnelblick 5710 3.8.6 (build 5710)"
--verb 3
--config /Library/Application Support/Tunnelblick/Shared/client1.tblk/Contents/Resources/config.ovpn
--setenv TUNNELBLICK_CONFIG_FOLDER /Library/Application Support/Tunnelblick/Shared/client1.tblk/Contents/Resources
--verb 3
--cd /Library/Application Support/Tunnelblick/Shared/client1.tblk/Contents/Resources
--management <myip> 58425 /Library/Application Support/Tunnelblick/dmegflkokbjgjhdkmfjeppaedigmeiganoidopoe.mip
--management-query-passwords
--management-hold
--script-security 2
--route-up /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw
--down /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -9 -d -f -m -w -ptADGNWradsgnw
2021-08-29 13:16:13.325506 MANAGEMENT: Client connected from [AF_INET]<myip>:58425
2021-08-29 13:16:13.379863 *Tunnelblick: Established communication with OpenVPN
2021-08-29 13:16:13.381315 MANAGEMENT: CMD 'pid'
2021-08-29 13:16:13.385374 MANAGEMENT: CMD 'auth-retry interact'
2021-08-29 13:16:13.385464 MANAGEMENT: CMD 'state on'
2021-08-29 13:16:13.385541 MANAGEMENT: CMD 'state'
2021-08-29 13:16:13.385631 MANAGEMENT: CMD 'bytecount 1'
2021-08-29 13:16:13.406221 *Tunnelblick: >INFO:OpenVPN Management Interface Version 3 -- type 'help' for more info
2021-08-29 13:16:13.407633 MANAGEMENT: CMD 'hold release'
2021-08-29 13:16:13.409489 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:16:13.416921 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:16:13.416958 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:16:13.419094 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:16:13.419198 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:16:13.419224 UDP link local: (not bound)
2021-08-29 13:16:13.419248 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:16:13.419318 MANAGEMENT: >STATE:1630235773,WAIT,,,,,,
2021-08-29 13:17:13.168948 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2021-08-29 13:17:13.170556 TLS Error: TLS handshake failed
2021-08-29 13:17:13.178545 SIGUSR1[soft,tls-error] received, process restarting
2021-08-29 13:17:13.178598 MANAGEMENT: >STATE:1630235833,RECONNECTING,tls-error,,,,,
2021-08-29 13:17:13.184052 MANAGEMENT: CMD 'hold release'
2021-08-29 13:17:13.184155 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:17:13.184253 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:17:13.184279 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:17:13.184558 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:17:13.184612 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:17:13.184630 UDP link local: (not bound)
2021-08-29 13:17:13.184642 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:17:13.184659 MANAGEMENT: >STATE:1630235833,WAIT,,,,,,
2021-08-29 13:17:13.184936 MANAGEMENT: CMD 'hold release'
2021-08-29 13:18:13.367270 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2021-08-29 13:18:13.367387 TLS Error: TLS handshake failed
2021-08-29 13:18:13.367642 SIGUSR1[soft,tls-error] received, process restarting
2021-08-29 13:18:13.367730 MANAGEMENT: >STATE:1630235893,RECONNECTING,tls-error,,,,,
2021-08-29 13:18:13.381842 MANAGEMENT: CMD 'hold release'
2021-08-29 13:18:13.381947 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:18:13.382965 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:18:13.383005 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:18:13.383155 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:18:13.383217 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:18:13.383237 UDP link local: (not bound)
2021-08-29 13:18:13.383254 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:18:13.383303 MANAGEMENT: >STATE:1630235893,WAIT,,,,,,
2021-08-29 13:18:13.385585 MANAGEMENT: CMD 'hold release'
2021-08-29 13:19:13.910663 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2021-08-29 13:19:13.911180 TLS Error: TLS handshake failed
2021-08-29 13:19:13.920993 SIGUSR1[soft,tls-error] received, process restarting
2021-08-29 13:19:13.921087 MANAGEMENT: >STATE:1630235953,RECONNECTING,tls-error,,,,,
2021-08-29 13:19:13.927012 MANAGEMENT: CMD 'hold release'
2021-08-29 13:19:13.927777 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:19:13.928066 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:19:13.928093 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:19:13.928242 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:19:13.928303 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:19:13.928322 UDP link local: (not bound)
2021-08-29 13:19:13.928340 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:19:13.928367 MANAGEMENT: >STATE:1630235953,WAIT,,,,,,
2021-08-29 13:19:13.930043 MANAGEMENT: CMD 'hold release'
2021-08-29 13:20:13.305726 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2021-08-29 13:20:13.305818 TLS Error: TLS handshake failed
2021-08-29 13:20:13.308456 SIGUSR1[soft,tls-error] received, process restarting
2021-08-29 13:20:13.308564 MANAGEMENT: >STATE:1630236013,RECONNECTING,tls-error,,,,,
2021-08-29 13:20:13.314506 MANAGEMENT: CMD 'hold release'
2021-08-29 13:20:13.314867 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:20:13.315951 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:20:13.315992 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:20:13.316101 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:20:13.316160 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:20:13.316180 UDP link local: (not bound)
2021-08-29 13:20:13.316198 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:20:13.316223 MANAGEMENT: >STATE:1630236013,WAIT,,,,,,
2021-08-29 13:20:13.324901 MANAGEMENT: CMD 'hold release'
2021-08-29 13:21:13.356360 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2021-08-29 13:21:13.359451 TLS Error: TLS handshake failed
2021-08-29 13:21:13.361134 SIGUSR1[soft,tls-error] received, process restarting
2021-08-29 13:21:13.362593 MANAGEMENT: >STATE:1630236073,RECONNECTING,tls-error,,,,,
2021-08-29 13:21:13.405064 MANAGEMENT: CMD 'hold release'
2021-08-29 13:21:13.405140 MANAGEMENT: CMD 'hold release'
2021-08-29 13:21:13.405167 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:21:13.425292 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:21:13.426543 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:21:13.426902 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:21:13.426975 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:21:13.426998 UDP link local: (not bound)
2021-08-29 13:21:13.427016 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:21:13.432279 MANAGEMENT: >STATE:1630236073,WAIT,,,,,,
2021-08-29 13:22:13.631692 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2021-08-29 13:22:13.631918 TLS Error: TLS handshake failed
2021-08-29 13:22:13.635270 SIGUSR1[soft,tls-error] received, process restarting
2021-08-29 13:22:13.635358 MANAGEMENT: >STATE:1630236133,RECONNECTING,tls-error,,,,,
2021-08-29 13:22:13.652041 MANAGEMENT: CMD 'hold release'
2021-08-29 13:22:13.654199 MANAGEMENT: CMD 'hold release'
2021-08-29 13:22:13.654244 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:22:13.654316 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:22:13.654330 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:22:13.654439 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:22:13.654492 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:22:13.654506 UDP link local: (not bound)
2021-08-29 13:22:13.654519 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:22:13.654539 MANAGEMENT: >STATE:1630236133,WAIT,,,,,,
2021-08-29 13:23:13.175129 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2021-08-29 13:23:13.175217 TLS Error: TLS handshake failed
2021-08-29 13:23:13.178179 SIGUSR1[soft,tls-error] received, process restarting
2021-08-29 13:23:13.178222 MANAGEMENT: >STATE:1630236193,RECONNECTING,tls-error,,,,,
2021-08-29 13:23:13.207098 MANAGEMENT: CMD 'hold release'
2021-08-29 13:23:13.211298 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:23:13.211398 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:23:13.211421 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:23:13.212226 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:23:13.212296 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:23:13.212316 UDP link local: (not bound)
2021-08-29 13:23:13.212334 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:23:13.212359 MANAGEMENT: >STATE:1630236193,WAIT,,,,,,
2021-08-29 13:23:13.213376 MANAGEMENT: CMD 'hold release'
2021-08-29 13:24:13.127685 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2021-08-29 13:24:13.127811 TLS Error: TLS handshake failed
2021-08-29 13:24:13.132374 SIGUSR1[soft,tls-error] received, process restarting
2021-08-29 13:24:13.132432 MANAGEMENT: >STATE:1630236253,RECONNECTING,tls-error,,,,,
2021-08-29 13:24:13.163069 MANAGEMENT: CMD 'hold release'
2021-08-29 13:24:13.163186 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2021-08-29 13:24:13.163323 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:24:13.163348 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-08-29 13:24:13.164848 TCP/UDP: Preserving recently used remote address: [AF_INET]<myip>:1194
2021-08-29 13:24:13.166112 Socket Buffers: R=[786896->786896] S=[9216->9216]
2021-08-29 13:24:13.171010 UDP link local: (not bound)
2021-08-29 13:24:13.171060 UDP link remote: [AF_INET]<myip>:1194
2021-08-29 13:24:13.171088 MANAGEMENT: >STATE:1630236253,WAIT,,,,,,
2021-08-29 13:24:13.172155 MANAGEMENT: CMD 'hold release'
[/olog]
and the server log
[olog]Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=358 TOS=0x00 PREC=0x00 TTL=64 ID=384 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=34592 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=858 TOS=0x00 PREC=0x00 TTL=64 ID=34593 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=581 TOS=0x00 PREC=0x00 TTL=64 ID=385 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=358 TOS=0x00 PREC=0x00 TTL=64 ID=386 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=34594 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK URGP=0
Aug 29 11:06:06 flowserve systemd[1]:
openvpn@vpn.service: Scheduled restart job, restart counter is at 76.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support:
http://www.ubuntu.com/support
--
-- Automatic restarting of the unit
openvpn@vpn.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 29 11:06:06 flowserve systemd[1]: Stopped OpenVPN connection to vpn.
-- Subject: A stop job for unit
openvpn@vpn.service has finished
-- Defined-By: systemd
-- Support:
http://www.ubuntu.com/support
--
-- A stop job for unit
openvpn@vpn.service has finished.
--
-- The job identifier is 2476623 and the job result is done.
Aug 29 11:06:06 flowserve systemd[1]: Failed to create compat systemd cgroup /system.slice/system-openvpn.slice/
openvpn@vpn.service: Read-only file system
Aug 29 11:06:06 flowserve systemd[1]: Failed to attach 290755 to compat systemd cgroup /system.slice/system-openvpn.slice/
openvpn@vpn.service: No such file or directory
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=857 TOS=0x00 PREC=0x00 TTL=64 ID=34595 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=581 TOS=0x00 PREC=0x00 TTL=64 ID=387 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=358 TOS=0x00 PREC=0x00 TTL=64 ID=388 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve systemd[1]: Starting OpenVPN connection to vpn...
-- Subject: A start job for unit
openvpn@vpn.service has begun execution
-- Defined-By: systemd
-- Support:
http://www.ubuntu.com/support
--
-- A start job for unit
openvpn@vpn.service has begun execution.
--
-- The job identifier is 2476623.
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=34596 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK URGP=0
Aug 29 11:06:06 flowserve systemd[290755]: Failed to attach 290755 to compat systemd cgroup /system.slice/system-openvpn.slice/
openvpn@vpn.service: No such file or directory
Aug 29 11:06:06 flowserve ovpn-vpn[290755]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpn.conf
Aug 29 11:06:06 flowserve ovpn-vpn[290755]: Use --help for more information.
Aug 29 11:06:06 flowserve systemd[1]:
openvpn@vpn.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support:
http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit
openvpn@vpn.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Aug 29 11:06:06 flowserve systemd[1]:
openvpn@vpn.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support:
http://www.ubuntu.com/support
--
-- The unit
openvpn@vpn.service has entered the 'failed' state with result 'exit-code'.
Aug 29 11:06:06 flowserve systemd[1]: Failed to start OpenVPN connection to vpn.
-- Subject: A start job for unit
openvpn@vpn.service has failed
-- Defined-By: systemd
-- Support:
http://www.ubuntu.com/support
--
-- A start job for unit
openvpn@vpn.service has finished with a failure.
--
-- The job identifier is 2476623 and the job result is failed.
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=851 TOS=0x00 PREC=0x00 TTL=64 ID=34597 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=581 TOS=0x00 PREC=0x00 TTL=64 ID=389 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=358 TOS=0x00 PREC=0x00 TTL=64 ID=390 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=34598 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=851 TOS=0x00 PREC=0x00 TTL=64 ID=34599 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=581 TOS=0x00 PREC=0x00 TTL=64 ID=391 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=358 TOS=0x00 PREC=0x00 TTL=64 ID=392 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:06 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=34600 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK URGP=0
Aug 29 11:06:07 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=857 TOS=0x00 PREC=0x00 TTL=64 ID=34601 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:07 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=581 TOS=0x00 PREC=0x00 TTL=64 ID=393 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:07 flowserve kernel: BANDWIDTH_OUT:IN= OUT=enp2s0 SRC=<myip> DST=<myip> LEN=358 TOS=0x00 PREC=0x00 TTL=64 ID=394 DF PROTO=TCP SPT=45850 DPT=49000 WINDOW=1283 RES=0x00 ACK PSH URGP=0
Aug 29 11:06:07 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:2c:3a:fd:ab:07:33:08:00 SRC=<myip> DST=<myip> LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=34602 DF PROTO=TCP SPT=49000 DPT=45850 WINDOW=7290 RES=0x00 ACK URGP=0
Aug 29 11:06:07 flowserve kernel: BANDWIDTH_IN:IN=enp2s0 OUT= MAC=b8:ac:6f:d6:9f:7b:00:e0:4c:68:12:cf:08:00 SRC=<myip> DST=<myip> LEN=88 TOS=0x08 PREC=0x40 TTL=64 ID=0 DF PROTO=TCP SPT=51758 DPT=22 WINDOW=2048 RES=0x00 ACK PSH URGP=0
[/olog]
the client config:
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
##############################################
# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client
# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one. On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap
# Are we connecting to a TCP or
# UDP server? Use the same setting as
# on the server.
;proto tcp
proto udp
# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote <myip> 1194
;remote my-server-2 1194
# Choose a random host from the remote
# list for load-balancing. Otherwise
# try hosts in the order specified.
;remote-random
# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite
# Most clients don't need to bind to
# a specific local port number.
nobind
# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nogroup
# Try to preserve some state across restarts.
persist-key
persist-tun
# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
# Wireless networks often produce a lot
# of duplicate packets. Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings
# SSL/TLS parms.
# See the server config file for more
# description. It's best to use
# a separate .crt/.key file pair
# for each client. A single ca
# file can be used for all clients.
#ca ca.crt
#cert client.crt
#key client.key
# Verify server certificate by checking that the
# certicate has the correct key usage set.
# This is an important precaution to protect against
# a potential attack discussed here:
#
http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the keyUsage set to
# digitalSignature, keyEncipherment
# and the extendedKeyUsage to
# serverAuth
# EasyRSA can do this for you.
remote-cert-tls server
# If a tls-auth key is used on the server
# then every client must also have the key.
#tls-auth ta.key 1
# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
# Note that v2.4 client/server will automatically
# negotiate AES-256-GCM in TLS mode.
# See also the ncp-cipher option in the manpage
cipher AES-256-CBC
auth SHA256
# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
#comp-lzo
# Set log file verbosity.
verb 3
# Silence repeating messages
;mute 20
# key direction
key-direction 1
# script-security 2
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
<ca>
-----BEGIN CERTIFICATE-----
MIIDSzCCAjOgAwIBAgIUK7318oWq0KTBEF6kugN4CXWwohIwDQYJKoZIhvcNAQEL
BQAwFjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwHhcNMjEwODI4MTQ1MTQxWhcNMzEw
ODI2MTQ1MTQxWjAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQTCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAKi9Q0EochSeKEtZPdaK90a1KAZYx38JdGvZEe5L
n2W3H88VkDeUXYBr9UfgYdSgj4SB1amc5RUzGcPe2hpgj8gbK6pSmCe5LladmeTW
wE6AxZCBaqXPMSP2cw2NIZVn3HOqpgHYuMk0ph4x7avrvBAgg5Eu8Jp+SkT1Rv09
EbmONAqobMw6I4C44hY88PZ6Go9g0cHhaIomVvRwvT/Y+ufMohsNVQ29oLLzIHAg
7UcqyaOrix+vKsngSzj5SSZC+QpPG9BdFFQ1AK7proR9ISfWjqttFyfk6F7krEbr
9Iw0YBG0h8aM+gQvPwFS7A+aTQM2AGHhXwOSAqHjFZa3frECAwEAAaOBkDCBjTAd
BgNVHQ4EFgQU8vSJhILxyX4CKhLqqo+RUUPHyKcwUQYDVR0jBEowSIAU8vSJhILx
yX4CKhLqqo+RUUPHyKehGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghQrvfXy
harQpMEQXqS6A3gJdbCiEjAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIBBjANBgkq
hkiG9w0BAQsFAAOCAQEAYIjn9CiDPAWbhfHkUcxCziyR5p0+tAWqxw1u82ZFiA8E
yoOyRfoIzu+wtnxO7j6Kww85aBbhfwuB/zu+ar7iDpufX49tHLo33pP/tD+35Xwi
PeXcW3eJQ8izc+9dh7nrJOIxt8msPGVi/Z9Vwd9awIIQqkuGiWo3PEMr37Pcwpsu
QtE8p4xzNEBYkgD3Kj9H5jTwePTQ6xM9N4lVKWpQgxNkMbWsiwOOV645g47yifeL
yO8Ml0BIPNu+1Y4wu5wwmlc6EkGdY5c93TD+6fkYALiP1wixyqukKb9kTw3Caila
FEI99TwoeKSRTy+Ym8s2pMecexE0DNlDSz3O0pJTbQ==
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
db:a5:cb:82:cd:d5:51:78:f8:03:58:fe:2b:a6:78:7e
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=Easy-RSA CA
Validity
Not Before: Aug 28 15:09:50 2021 GMT
Not After : Aug 26 15:09:50 2031 GMT
Subject: CN=client1
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:a9:ea:2b:95:6a:ff:88:41:9d:8e:52:e1:df:32:
0b:55:4d:90:9d:fd:fe:28:0e:df:96:4b:13:d0:41:
13:6d:1b:b8:e3:2e:88:37:83:be:bd:39:7d:a4:65:
9c:eb:81:da:31:b0:f1:9b:dd:4b:73:cc:eb:d9:bc:
e8:3b:64:76:d8:88:87:23:b4:b8:1c:5f:0b:69:1b:
59:1e:ff:54:13:c3:cc:5f:f0:38:fb:4b:c7:75:bb:
7a:cf:20:be:a7:f3:23:73:2b:65:bc:ef:fa:ff:bb:
33:68:5a:d8:5e:2f:5e:7f:6c:40:d7:4f:21:39:ee:
80:42:18:5d:4c:5c:f3:00:3b:02:b9:30:dc:64:2d:
ba:4a:4d:7e:66:d4:18:7a:90:cd:25:a1:a9:a4:a8:
d8:c1:ee:b5:23:f8:bc:8a:65:31:00:9e:88:31:a9:
44:1d:80:54:ac:01:4a:74:aa:b8:c1:ce:7c:d5:77:
78:0e:d5:32:89:34:9e:9a:89:1b:3c:69:ce:aa:a5:
9f:65:c1:c3:a1:2b:d3:b9:bc:4a:1f:9a:f7:79:5a:
09:7a:fb:dd:06:64:38:d3:da:cc:44:f5:fd:c3:7a:
60:4e:8a:93:e1:51:eb:e0:8f:83:79:b0:8d:0d:5a:
2b:38:95:c8:86:4f:b0:fd:22:80:11:17:fc:b4:1b:
c9:47
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
X509v3 Subject Key Identifier:
96:28:2F:16:02:AF:4B:5C:64:5C:0C:11:03:BB:0F:7B:3F:69:48:1A
X509v3 Authority Key Identifier:
keyid:F2:F4:89:84:82:F1:C9:7E:02:2A:12:EA:AA:8F:91:51:43:C7:C8:A7
DirName:/CN=Easy-RSA CA
serial:2B:BD:F5:F2:85:AA:D0:A4:C1:10:5E:A4:BA:03:78:09:75:B0:A2:12
X509v3 Extended Key Usage:
TLS Web Client Authentication
X509v3 Key Usage:
Digital Signature
Signature Algorithm: sha256WithRSAEncryption
11:27:ae:d2:70:2f:b0:2e:bb:76:bb:d2:b4:be:22:ac:21:25:
8b:4a:46:b9:bb:86:de:2c:29:58:43:c4:7a:89:67:d5:d9:87:
f9:a3:5f:c8:58:3e:2c:15:70:73:1f:6e:ad:31:70:a6:71:ce:
69:99:a0:3e:cb:d8:37:7a:5b:60:e9:1e:1a:c1:20:89:f6:6e:
36:ea:55:ba:46:89:bd:ea:ad:21:79:a4:2d:f4:71:cd:5a:69:
18:3e:a0:09:9b:f2:a2:65:a5:27:e8:b5:40:02:45:3d:89:af:
ac:84:bd:bd:17:c9:b2:60:c0:70:1f:58:d1:03:be:b2:e4:52:
87:3f:9f:6f:ef:9f:7f:cb:7b:36:8f:10:a2:91:ca:a3:44:eb:
9c:84:d7:6c:5d:8c:ed:ec:90:3d:fb:d8:e8:bd:aa:16:98:8e:
b0:c1:97:5e:ff:fd:ae:d7:31:8e:4c:d2:29:de:10:44:76:aa:
7a:12:4b:9c:22:e2:28:5c:c0:bb:2e:ed:3c:18:54:8a:82:a6:
36:11:19:10:37:b3:62:23:8c:b5:27:9e:58:29:44:f1:8b:7a:
76:f8:b2:63:70:e0:81:7b:80:22:d4:55:d2:b3:52:28:7f:88:
b6:16:0a:6d:f9:2e:86:8e:fe:31:97:e8:30:14:99:f0:9a:1d:
44:1c:d3:e8
-----BEGIN CERTIFICATE-----
MIIDVjCCAj6gAwIBAgIRANuly4LN1VF4+ANY/iumeH4wDQYJKoZIhvcNAQELBQAw
FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwHhcNMjEwODI4MTUwOTUwWhcNMzEwODI2
MTUwOTUwWjASMRAwDgYDVQQDDAdjbGllbnQxMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAqeorlWr/iEGdjlLh3zILVU2Qnf3+KA7flksT0EETbRu44y6I
N4O+vTl9pGWc64HaMbDxm91Lc8zr2bzoO2R22IiHI7S4HF8LaRtZHv9UE8PMX/A4
+0vHdbt6zyC+p/MjcytlvO/6/7szaFrYXi9ef2xA108hOe6AQhhdTFzzADsCuTDc
ZC26Sk1+ZtQYepDNJaGppKjYwe61I/i8imUxAJ6IMalEHYBUrAFKdKq4wc581Xd4
DtUyiTSemokbPGnOqqWfZcHDoSvTubxKH5r3eVoJevvdBmQ409rMRPX9w3pgToqT
4VHr4I+DebCNDVorOJXIhk+w/SKAERf8tBvJRwIDAQABo4GiMIGfMAkGA1UdEwQC
MAAwHQYDVR0OBBYEFJYoLxYCr0tcZFwMEQO7D3s/aUgaMFEGA1UdIwRKMEiAFPL0
iYSC8cl+AioS6qqPkVFDx8inoRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQYIU
K7318oWq0KTBEF6kugN4CXWwohIwEwYDVR0lBAwwCgYIKwYBBQUHAwIwCwYDVR0P
BAQDAgeAMA0GCSqGSIb3DQEBCwUAA4IBAQARJ67ScC+wLrt2u9K0viKsISWLSka5
u4beLClYQ8R6iWfV2Yf5o1/IWD4sFXBzH26tMXCmcc5pmaA+y9g3eltg6R4awSCJ
9m426lW6Rom96q0heaQt9HHNWmkYPqAJm/KiZaUn6LVAAkU9ia+shL29F8myYMBw
H1jRA76y5FKHP59v759/y3s2jxCikcqjROuchNdsXYzt7JA9+9jovaoWmI6wwZde
//2u1zGOTNIp3hBEdqp6EkucIuIoXMC7Lu08GFSKgqY2ERkQN7NiI4y1J55YKUTx
i3p2+LJjcOCBe4Ai1FXSs1Iof4i2Fgpt+S6Gjv4xl+gwFJnwmh1EHNPo
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCp6iuVav+IQZ2O
UuHfMgtVTZCd/f4oDt+WSxPQQRNtG7jjLog3g769OX2kZZzrgdoxsPGb3UtzzOvZ
vOg7ZHbYiIcjtLgcXwtpG1ke/1QTw8xf8Dj7S8d1u3rPIL6n8yNzK2W87/r/uzNo
WtheL15/bEDXTyE57oBCGF1MXPMAOwK5MNxkLbpKTX5m1Bh6kM0loamkqNjB7rUj
+LyKZTEAnogxqUQdgFSsAUp0qrjBznzVd3gO1TKJNJ6aiRs8ac6qpZ9lwcOhK9O5
vEofmvd5Wgl6+90GZDjT2sxE9f3DemBOipPhUevgj4N5sI0NWis4lciGT7D9IoAR
F/y0G8lHAgMBAAECggEAG3QfmKPSJ9TaPS29Gw/97sl6jVyFnTlR/PmieOqa1e09
wU86aSXbQr2wREi6wv6XH6JEV3e5Ajvg+6xfJYGFBlWA6E8B1Guy70eg7bY5gnwH
YJTyz/+debNSE3dp9r79QlWHubBYsMsxcjIDdaxXq2T1URSS/MZBaOyA3p7CEI40
wmiwFcF3GeYWgT9ioGQOSpLuRSmeYx+jY4cH/+4MywwQxBaVkUSkVVLi4ICBB3Os
o5IHkYzz6m82LmaHL/zsalhEH+/eoYPdFEcc0p4T+7ilhWmCQhKoqfIAkr7adLpI
P93cnQ11XFMSIOavhro6R3nNsNQu52q52sxkVa/YSQKBgQDfhSYzNM1m5tvpdSQq
cO2oAhBC8SRdVG79VhYZbx7gvt5vd3girOIC1WPGkPkGHWhS79fxURznPyyuYJJC
zLMQA/gXxMwxqT7++N+OIfWu2DAa5tZbUdwewitMWMVhyp7uqjaHW9zbDp0p7GL2
uAiLnp9+D9A9/dftUiFCw4thRQKBgQDCmuyMvkqq32nus5sX1+o0w/6oC/r0oN9S
YbxajiI/4ycp3Ul79WNdLX+nJyLULOd0cy6MYl7IfMwvPRDYOwHl9G+H9llhGXIA
oSN+wmqwzxVBbbS1kqm8r8fbSjltu8VMmcK9Rjw3xd9WJNGaKtLFinBmZSR7M9vj
h5IN2lFbGwKBgFyqdNXR1D4PA6jb2ayGuOBoSpmWI39V29XHdM4ClYiTWOBZZULq
7aBDG2RdAgCY/IE10g7Hk/YC6OE6RCjReILxQk+IVSdZhTZrszLXvWVJV1gvzzp4
y4ss8IpsWxhZyl4jzwt6+CsQ+fNBfx3N2i0YDANVRv4MWRKYdBWbwBMJAoGAcCRi
yEAoOwt/ugRaDYVo+3suVpyAw1OpHYogxnY9ml9GBEP2wq4H0nwToblVwrsVre9q
FY/iWto/t8ES4egvEdqoIst9egz1uxMgpz1VygmrkAauKiwYEBmjq+S771ZTPe8l
X3kH3oPyTWvuNU8UIq3CU99ZBH4/6oAHVGBInZ0CgYA0OXL8TZF5WD6MVQOUA4VW
Ocxk31bbvnjEf/apAg5NFy4W9KbQT+DdKVbJuU8aZ3akxyGVHzS6IEAQIIUDEvse
m/qosIs4ysVmnEXfZnaxU8INLS+YZP37sxnA4FLUs6Hoeulg1OUlisAhMmpqbamr
QP24QyG11hY72vA7t6zXeg==
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
0d2379eb7d52db97d17c175b9479f0df
b5a9b31aad08cab602c19055b8b983ac
501c215faa6fc15e006b5100cf9eebdd
a2eea593a086d0f28a8bfa389dbed8ae
07fbf7521532f60d84038a705533af74
0701bd3e2ee06ff32938687932a28a5f
863ff5b6b2dccec8d6d6d8aadd8c634d
e12e12ff9e5a9c607fe4b126371b017c
8eda2b5fffbf6ae33b3ebdaa9143649c
a60ba0dcf5e00c76fb84738450fcdd0a
4ac7935599777462bdda0155c5b08c46
c871b8bbd8e76bcbd9dff3622721465b
01fd2a6631218a17b8ef3b69aa6fa11c
b9b86f8046ee531a26d9b7a3d0c59d9b
6b4979fc3fec7df18257c7921c3710a3
cfcc88d7ba8c0bfc15db5bcfb5ef37ff
-----END OpenVPN Static key V1-----
</tls-auth>
and last but not least the server conf:
#################################################
# Sample OpenVPN 2.0 config file for #
# multi-client server. #
# #
# This file is for the server side #
# of a many-clients <-> one-server #
# OpenVPN configuration. #
# #
# OpenVPN also supports #
# single-machine <-> single-machine #
# configurations (See the Examples page #
# on the web site for more info). #
# #
# This config should work on Windows #
# or Linux/BSD systems. Remember on #
# Windows to quote pathnames and use #
# double backslashes, e.g.: #
# "C:\\Program Files\\OpenVPN\\config\\foo.key" #
# #
# Comments are preceded with '#' or ';' #
#################################################
# Which local IP address should OpenVPN
# listen on? (optional)
;local a.b.c.d
# Which TCP/UDP port should OpenVPN listen on?
# If you want to run multiple OpenVPN instances
# on the same machine, use a different port
# number for each one. You will need to
# open up this port on your firewall.
port 1194
# TCP or UDP server?
;proto tcp
proto udp
# "dev tun" will create a routed IP tunnel,
# "dev tap" will create an ethernet tunnel.
# Use "dev tap0" if you are ethernet bridging
# and have precreated a tap0 virtual interface
# and bridged it with your ethernet interface.
# If you want to control access policies
# over the VPN, you must create firewall
# rules for the the TUN/TAP interface.
# On non-Windows systems, you can give
# an explicit unit number, such as tun0.
# On Windows, use "dev-node" for this.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel if you
# have more than one. On XP SP2 or higher,
# you may need to selectively disable the
# Windows firewall for the TAP adapter.
# Non-Windows systems usually don't need this.
;dev-node MyTap
# SSL/TLS root certificate (ca), certificate
# (cert), and private key (key). Each client
# and the server must have their own cert and
# key file. The server and all clients will
# use the same ca file.
#
# See the "easy-rsa" directory for a series
# of scripts for generating RSA certificates
#
# Any X509 key management system can be used.
# OpenVPN can also use a PKCS #12 formatted key file
# (see "pkcs12" directive in man page).
ca /home/flow/etc/openvpn/ca.crt
cert /home/flow/etc/openvpn/server.crt
key /home/flow/etc/openvpn/server.key # This file should be kept secret
# Diffie hellman parameters.
# Generate your own with:
# openssl dhparam -out dh2048.pem 2048
dh /home/flow/etc/openvpn/dh.pem
# Network topology
# Should be subnet (addressing via IP)
# unless Windows clients v2.0.9 and lower have to
# be supported (then net30, i.e. a /30 per client)
# Defaults to net30 (not recommended)
;topology subnet
# Configure server mode and supply a VPN subnet
# for OpenVPN to draw client addresses from.
# The server will take 10.8.0.1 for itself,
# the rest will be made available to clients.
# Each client will be able to reach the server
# on 10.8.0.1. Comment this line out if you are
# ethernet bridging. See the man page for more info.
server 10.8.0.0 255.255.255.0
# Maintain a record of client <-> virtual IP address
# associations in this file. If OpenVPN goes down or
# is restarted, reconnecting clients can be assigned
# the same virtual IP address from the pool that was
# previously assigned.
ifconfig-pool-persist /var/log/openvpn/ipp.txt
# Configure server mode for ethernet bridging.
# You must first use your OS's bridging capability
# to bridge the TAP interface with the ethernet
# NIC interface. Then you must manually set the
# IP/netmask on the bridge interface, here we
# assume 10.8.0.4/255.255.255.0. Finally we
# must set aside an IP range in this subnet
# (start=10.8.0.50 end=10.8.0.100) to allocate
# to connecting clients. Leave this line commented
# out unless you are ethernet bridging.
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
# Configure server mode for ethernet bridging
# using a DHCP-proxy, where clients talk
# to the OpenVPN server-side DHCP server
# to receive their IP address allocation
# and DNS server addresses. You must first use
# your OS's bridging capability to bridge the TAP
# interface with the ethernet NIC interface.
# Note: this mode only works on clients (such as
# Windows), where the client-side TAP adapter is
# bound to a DHCP client.
;server-bridge
# Push routes to the client to allow it
# to reach other private subnets behind
# the server. Remember that these
# private subnets will also need
# to know to route the OpenVPN client
# address pool (10.8.0.0/255.255.255.0)
# back to the OpenVPN server.
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
# To assign specific IP addresses to specific
# clients or if a connecting client has a private
# subnet behind it that should also have VPN access,
# use the subdirectory "ccd" for client-specific
# configuration files (see man page for more info).
# EXAMPLE: Suppose the client
# having the certificate common name "Thelonious"
# also has a small subnet behind his connecting
# machine, such as 192.168.40.128/255.255.255.248.
# First, uncomment out these lines:
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
# Then create a file ccd/Thelonious with this line:
# iroute 192.168.40.128 255.255.255.248
# This will allow Thelonious' private subnet to
# access the VPN. This example will only work
# if you are routing, not bridging, i.e. you are
# using "dev tun" and "server" directives.
# EXAMPLE: Suppose you want to give
# Thelonious a fixed VPN IP address of 10.9.0.1.
# First uncomment out these lines:
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
# Then add this line to ccd/Thelonious:
# ifconfig-push 10.9.0.1 10.9.0.2
# Suppose that you want to enable different
# firewall access policies for different groups
# of clients. There are two methods:
# (1) Run multiple OpenVPN daemons, one for each
# group, and firewall the TUN/TAP interface
# for each group/daemon appropriately.
# (2) (Advanced) Create a script to dynamically
# modify the firewall in response to access
# from different clients. See man
# page for more info on learn-address script.
;learn-address ./script
# If enabled, this directive will configure
# all clients to redirect their default
# network gateway through the VPN, causing
# all IP traffic such as web browsing and
# and DNS lookups to go through the VPN
# (The OpenVPN server machine may need to NAT
# or bridge the TUN/TAP interface to the internet
# in order for this to work properly).
push "redirect-gateway def1 bypass-dhcp"
# Certain Windows-specific network settings
# can be pushed to clients, such as DNS
# or WINS server addresses. CAVEAT:
#
http://openvpn.net/faq.html#dhcpcaveats
# The addresses below refer to the public
# DNS servers provided by opendns.com.
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
# Uncomment this directive to allow different
# clients to be able to "see" each other.
# By default, clients will only see the server.
# To force clients to only see the server, you
# will also need to appropriately firewall the
# server's TUN/TAP interface.
;client-to-client
# Uncomment this directive if multiple clients
# might connect with the same certificate/key
# files or common names. This is recommended
# only for testing purposes. For production use,
# each client should have its own certificate/key
# pair.
#
# IF YOU HAVE NOT GENERATED INDIVIDUAL
# CERTIFICATE/KEY PAIRS FOR EACH CLIENT,
# EACH HAVING ITS OWN UNIQUE "COMMON NAME",
# UNCOMMENT THIS LINE OUT.
;duplicate-cn
# The keepalive directive causes ping-like
# messages to be sent back and forth over
# the link so that each side knows when
# the other side has gone down.
# Ping every 10 seconds, assume that remote
# peer is down if no ping received during
# a 120 second time period.
keepalive 10 120
# For extra security beyond that provided
# by SSL/TLS, create an "HMAC firewall"
# to help block DoS attacks and UDP port flooding.
#
# Generate with:
# openvpn --genkey --secret ta.key
#
# The server and each client must have
# a copy of this key.
# The second parameter should be '0'
# on the server and '1' on the clients.
tls-auth ta.key 0 # This file is secret
# Select a cryptographic cipher.
# This config item must be copied to
# the client config file as well.
# Note that v2.4 client/server will automatically
# negotiate AES-256-GCM in TLS mode.
# See also the ncp-cipher option in the manpage
cipher AES-256-CBC
auth SHA256
# Enable compression on the VPN link and push the
# option to the client (v2.4+ only, for earlier
# versions see below)
;compress lz4-v2
;push "compress lz4-v2"
# For compression compatible with older clients use comp-lzo
# If you enable it here, you must also
# enable it in the client config file.
;comp-lzo
# The maximum number of concurrently connected
# clients we want to allow.
;max-clients 100
# It's a good idea to reduce the OpenVPN
# daemon's privileges after initialization.
#
# You can uncomment this out on
# non-Windows systems.
user nobody
group nogroup
# The persist options will try to avoid
# accessing certain resources on restart
# that may no longer be accessible because
# of the privilege downgrade.
persist-key
persist-tun
# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status /var/log/openvpn/openvpn-status.log
# By default, log messages will go to the syslog (or
# on Windows, if running as a service, they will go to
# the "\Program Files\OpenVPN\log" directory).
# Use log or log-append to override this default.
# "log" will truncate the log file on OpenVPN startup,
# while "log-append" will append to it. Use one
# or the other (but not both).
;log /var/log/openvpn/openvpn.log
;log-append /var/log/openvpn/openvpn.log
# Set the appropriate level of log
# file verbosity.
#
# 0 is silent, except for fatal errors
# 4 is reasonable for general usage
# 5 and 6 can help to debug connection problems
# 9 is extremely verbose
verb 3
# Silence repeating messages. At most 20
# sequential messages of the same message
# category will be output to the log.
;mute 20
# Notify the client that when the server restarts so it
# can automatically reconnect.
explicit-exit-notify 1
wahr I See on
sudo systemctl status openvpn@vpn.service
??? openvpn@vpn.service - OpenVPN connection to vpn
Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2021-08-29 11:52:59 UTC; 862ms ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 298240 ExecStart=/usr/sbin/openvpn --daemon ovpn-vpn --status /run/openvpn/vpn.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/vpn.conf --writepid /run/openvpn/vpn.pid (code=exited, status=1/FAILURE)
Main PID: 298240 (code=exited, status=1/FAILURE)
https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
and
https://community.openvpn.net/openvpn/wiki/HOWTO
didn't helped me.
What I tried is:
disabling UfW - nothing changed
disabling the firewall on my Mac - nothing changed
portforwading on my router (port 1149) - nothing changed
I hope I did't forgot something.
I would love if you could help me since I am despair since two days...
best regards
flow
edit: Why is [olog][/olog] not working?