Slow connection through OpenVPN 2.4 + Firebird 2.5

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
lucascatani
OpenVpn Newbie
Posts: 5
Joined: Tue Apr 06, 2021 8:18 pm

Slow connection through OpenVPN 2.4 + Firebird 2.5

Post by lucascatani » Tue Apr 06, 2021 8:35 pm

Hello.
I have a connection speed problem in FIREBIRD 2.5 through OPEN VPN 2.4.

The system behaves extremely slowly in SQL queries. My configuration looks like this:

OPENVPN SERVER (Ubuntu 18.04.5 LTS - OpenVPN 2.4.4 x86_64-pc-linux-gnu)
SERVER

port 1195
dev tap
proto udp4
mode server
max-clients 30
tls-server
tls-auth tls.key 0
ca keys/ca.crt
cert keys/servidor.crt
key keys/servidor.key
dh keys/dh2048.pem
cipher AES-256-CBC
compress lz4
remote-cert-tls server
ifconfig 10.0.1.1 255.255.255.0
ifconfig-pool 10.0.1.10 10.0.1.190 255.255.255.0
push "route 10.1.1.0 255.255.255.0 10.0.1.1"
persist-tun
persist-key
keepalive 60 120
user nobody
group nogroup
verb 4
#log /var/log/openvpn.log
status /etc/openvpn/openvpn-status.log
explicit-exit-notify 1
remote-cert-eku "TLS Web Client Authentication"


CLIENT (WINDOWS 10 PRO)
CLIENT

float
client
port 1195
dev tap
verb 4
remote 111.1.11.1
cipher AES-256-CBC
compress lz4
keepalive 60 120
persist-tun
persist-key
tls-client
remote-cert-tls client
<ca>
-----REMOVED FOR SECURITY REASONS----
</ca>
<cert>
-----REMOVED FOR SECURITY REASONS----
</cert>
<key>
-----REMOVED FOR SECURITY REASONS----
</key>
<tls-auth>
-----REMOVED FOR SECURITY REASONS----
</tls-auth>
key-direction 1
remote-cert-eku "TLS Web Server Authentication"


FIREBIRD.CONF

Code: Select all

WireCrypt = Disabled
AuthServer = Legacy_Auth, Srp, Win_Sspi
AuthClient = Legacy_Auth, Srp, Win_Sspi
SERVER UPLOAD CONNECTION: 100Mb/s
SERVER DOWNLOAD CONNECTION: 200Mb/s

CLIENT UPLOAD CONNECTION: 100Mb/s
CLIENT DOWNLOAD CONNECTION: 200Mb/s

The question is how do I increase performance?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8888
Joined: Fri Jun 03, 2016 1:17 pm

Re: Slow connection through OpenVPN 2.4 + Firebird 2.5

Post by TinCanTech » Tue Apr 06, 2021 8:49 pm

You are using --dev tap, completely incorrectly.

lucascatani
OpenVpn Newbie
Posts: 5
Joined: Tue Apr 06, 2021 8:18 pm

Re: Slow connection through OpenVPN 2.4 + Firebird 2.5

Post by lucascatani » Tue Apr 06, 2021 9:01 pm

TinCanTech wrote:
Tue Apr 06, 2021 8:49 pm
You are using --dev tap, completely incorrectly.

it doesn't tell me anything. If you can talk about your answer it will help me, if not, it looks more like a guessing game than a collaborative answer.

300000
OpenVPN Super User
Posts: 497
Joined: Tue May 01, 2012 9:30 pm

Re: Slow connection through OpenVPN 2.4 + Firebird 2.5

Post by 300000 » Tue Apr 06, 2021 10:58 pm

When openvpn running over TAP it will slow down as much as many pc connect to it openvpn server. that is because all computer broadcast all its existence on that subnet and the more pc on the slow it get. you need to change to tun so it run on routing it faster and you can expansion it more simple.

up load speed 100 mb shoud get you 60 mb upload easy so should be very fast not slow at all .

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8888
Joined: Fri Jun 03, 2016 1:17 pm

Re: Slow connection through OpenVPN 2.4 + Firebird 2.5

Post by TinCanTech » Tue Apr 06, 2021 11:03 pm

300000 wrote:
Tue Apr 06, 2021 10:58 pm
up load speed 100 mb shoud get you 60 mb upload easy
:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:

lucascatani
OpenVpn Newbie
Posts: 5
Joined: Tue Apr 06, 2021 8:18 pm

Re: Slow connection through OpenVPN 2.4 + Firebird 2.5

Post by lucascatani » Tue Apr 06, 2021 11:10 pm

300000 wrote:
Tue Apr 06, 2021 10:58 pm
When openvpn running over TAP it will slow down as much as many pc connect to it openvpn server. that is because all computer broadcast all its existence on that subnet and the more pc on the slow it get. you need to change to tun so it run on routing it faster and you can expansion it more simple.

up load speed 100 mb shoud get you 60 mb upload easy so should be very fast not slow at all .
Thanks man, i will try your suggestion.

lucascatani
OpenVpn Newbie
Posts: 5
Joined: Tue Apr 06, 2021 8:18 pm

Re: Slow connection through OpenVPN 2.4 + Firebird 2.5

Post by lucascatani » Wed Apr 07, 2021 12:22 pm

TinCanTech wrote:
Tue Apr 06, 2021 11:03 pm
300000 wrote:
Tue Apr 06, 2021 10:58 pm
up load speed 100 mb shoud get you 60 mb upload easy
:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
It looks like we have a comedian here. Why man? Why?

lucascatani
OpenVpn Newbie
Posts: 5
Joined: Tue Apr 06, 2021 8:18 pm

Re: Slow connection through OpenVPN 2.4 + Firebird 2.5

Post by lucascatani » Sat Apr 10, 2021 4:02 pm

300000 wrote:
Tue Apr 06, 2021 10:58 pm
When openvpn running over TAP it will slow down as much as many pc connect to it openvpn server. that is because all computer broadcast all its existence on that subnet and the more pc on the slow it get. you need to change to tun so it run on routing it faster and you can expansion it more simple.

up load speed 100 mb shoud get you 60 mb upload easy so should be very fast not slow at all .
Hi, the result is the same: SLOW on FIREBIRD.

Post Reply