Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
zmiana karty sieciowej = wolny upload przez ftp
#1
0
Proszę o pomoc

Objawy: podłączyłem dysk z Mint una do innego komputera i niby wszystko działa ale mam problem z bardzo wolnym (<100kB/s) transferem po połączeniu się z zewnątrz z serwerem ftp na linuxie i ściąganiu czegokolwiek.

Wskazówka:
Już kiedyś miałem ten problem i wtedy to gdzieś na jakimś forum znalazłem => chodziło wtedy o błędne przypisania symbolu karty sieciowej (enp4s0) w jakimś pliku konfiguracyjnym ale gdzie co i jak to niestety nie pamiętam...

Dziwne jest to że prędkości pokazywane na speedtest.pl są 980Mbit/s down, 88Mbit/s upload, a tylko transfer z serwera i ładowanie obrazków z serwera www działa bardzo wolno.

Kod:
polcraft@SERVER:~$ inxi -Fxz
System:
  Kernel: 5.4.0-139-generic x86_64 bits: 64 compiler: gcc v: 9.4.0
  Console: tty 0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal
Machine:
  Type: Desktop Mobo: ASRock model: Z97 Killer serial: <filter>
  UEFI [Legacy]: American Megatrends v: P2.60 date: 03/06/2018
CPU:
  Topology: Quad Core model: Intel Core i5-4590 bits: 64 type: MCP
  arch: Haswell rev: 3 L2 cache: 6144 KiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  bogomips: 26390
  Speed: 900 MHz min/max: 800/3700 MHz Core speeds (MHz): 1: 900 2: 900
  3: 900 4: 900
Graphics:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
  vendor: ASRock driver: i915 v: kernel bus ID: 00:02.0
  Display: server: X.org 1.20.13 driver: modesetting unloaded: fbdev,vesa
  tty: 80x24
  Message: Advanced graphics data unavailable in console. Try -G --display
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
  vendor: ASRock driver: snd_hda_intel v: kernel bus ID: 00:03.0
  Device-2: Intel 9 Series Family HD Audio vendor: ASRock
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0
  Sound Server: ALSA v: k5.4.0-139-generic
Network:
  Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet vendor: ASRock
  driver: alx v: kernel port: e000 bus ID: 04:00.0
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 238.47 GiB used: 172.36 GiB (72.3%)
  ID-1: /dev/sda model: SSDPR-CX400-256-G2 size: 238.47 GiB temp: 33 C
Partition:
  ID-1: / size: 63.62 GiB used: 56.44 GiB (88.7%) fs: ext4 dev: /dev/sda1
  ID-2: /var size: 169.50 GiB used: 115.92 GiB (68.4%) fs: ext4
  dev: /dev/sda5
Sensors:
  System Temperatures: cpu: 27.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 241 Uptime: 2m Memory: 7.47 GiB used: 1.21 GiB (16.1%)
  Init: systemd runlevel: 5 Compilers: gcc: 9.4.0 Shell: bash v: 5.0.17
  inxi: 3.0.38
Odpowiedz
#2
0
Jaki to serwer ftp?
Odpowiedz
#3
0
(01-03-2023, 14:36)dedito napisał(a): Jaki to serwer ftp?
vsftpd ale niestety zauważyłem że nie dotyczy to tylko ftp a ogólnie transfer od serwera jest wolny np. przy łączeniu się przez vnc


Kod:
listen=YES
listen_ipv6=NO
listen_port=21
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
#connect_from_port_20=YES
chroot_local_user=NO
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
pasv_enable=No
pasv_min_port=30000
pasv_max_port=31000
user_sub_token=$USER
local_root=/var/www
userlist_enable=YES
userlist_file=/etc/vsftpd.userlist
userlist_deny=NO
rsa_cert_file=/etc/cert/vsftpd.pem
rsa_private_key_file=/etc/cert/vsftpd.pem
ssl_enable=NO
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=NO
ssl_ciphers=HIGH
user_sub_token=$USER
local_root=/var/www
tcp_wrappers=YES
Odpowiedz
#4
0
Ok, czyli to nie ma związku z serwerem ftp.
Wklej wynik
Kod:
sudo ethtool enp4s0
i
Kod:
sudo iptables -nvL | more
Odpowiedz
#5
0
(02-03-2023, 11:11)dedito napisał(a): Ok, czyli to nie ma związku z serwerem ftp.
Wklej wynik
Kod:
sudo ethtool enp4s0
i
Kod:
sudo iptables -nvL | more

Kod:
Settings for enp4s0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x000060e4 (24804)
                               link ifup rx_err tx_err hw wol
        Link detected: yes
Kod:
Chain INPUT (policy DROP 72 packets, 11684 bytes)
pkts bytes target     prot opt in     out     source               destination
163K  142M ufw-before-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0
163K  142M ufw-before-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0
   76 11994 ufw-after-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0
   72 11684 ufw-after-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0
   72 11684 ufw-reject-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0
   72 11684 ufw-track-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
    0     0 ufw-before-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ufw-before-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ufw-after-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ufw-after-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ufw-reject-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ufw-track-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain OUTPUT (policy ACCEPT 21 packets, 840 bytes)
pkts bytes target     prot opt in     out     source               destination
141K   68M ufw-before-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0
141K   68M ufw-before-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0
1183 92548 ufw-after-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0
1183 92548 ufw-after-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0
1183 92548 ufw-reject-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0
1183 92548 ufw-track-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-after-forward (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-after-input (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:137
    0     0 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:138
    0     0 ufw-skip-to-policy-input  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:139
    0     0 ufw-skip-to-policy-input  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:445
    0     0 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:67
    0     0 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:68
    4   310 ufw-skip-to-policy-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type BROADCAST

Chain ufw-after-logging-forward (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

Chain ufw-after-logging-input (1 references)
pkts bytes target     prot opt in     out     source               destination
   72 11684 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

Chain ufw-after-logging-output (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-after-output (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-before-forward (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 3
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 11
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 12
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8
    0     0 ufw-user-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-before-input (1 references)
pkts bytes target     prot opt in     out     source               destination
2489  236K ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0
154K  141M ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
   64  2633 ufw-logging-deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID
   64  2633 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 3
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 11
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 12
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp spt:67 dpt:68
6425 1122K ufw-not-local  all  --  *      *       0.0.0.0/0            0.0.0.0/0
   35  4392 ACCEPT     udp  --  *      *       0.0.0.0/0            224.0.0.251          udp dpt:5353
1855  845K ACCEPT     udp  --  *      *       0.0.0.0/0            239.255.255.250      udp dpt:1900
4535  272K ufw-user-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-before-logging-forward (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-before-logging-input (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-before-logging-output (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-before-output (1 references)
pkts bytes target     prot opt in     out     source               destination
2491  236K ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0
137K   68M ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
1183 92548 ufw-user-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-logging-allow (0 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "

Chain ufw-logging-deny (2 references)
pkts bytes target     prot opt in     out     source               destination
   26  1113 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID limit: avg 3/min burst 10
   13   520 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

Chain ufw-not-local (1 references)
pkts bytes target     prot opt in     out     source               destination
4371  249K RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type LOCAL
1942  854K RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type MULTICAST
  112 18415 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type BROADCAST
    0     0 ufw-logging-deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-reject-forward (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-reject-input (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-reject-output (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-skip-to-policy-forward (0 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-skip-to-policy-input (7 references)
pkts bytes target     prot opt in     out     source               destination
    4   310 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-skip-to-policy-output (0 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-track-forward (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-track-input (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-track-output (1 references)
pkts bytes target     prot opt in     out     source               destination
  642 38520 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate NEW
  520 53188 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate NEW

Chain ufw-user-forward (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-user-input (1 references)
pkts bytes target     prot opt in     out     source               destination
  210 26085 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 137,138 /* 'dapp_Samba' */
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 139,445 /* 'dapp_Samba' */
  445 26672 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:3306
    3   172 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:21
   69  3956 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22
  595 33632 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:443
    1  1378 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:443
2897  155K ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:5900
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 20:21
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22 /* 'dapp_OpenSSH' */
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 30000:31000
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 20,21,990
  238 13956 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
    1    57 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:80
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:8080
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:8080
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:21
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:21

Chain ufw-user-limit (0 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
    0     0 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable

Chain ufw-user-limit-accept (0 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0

Chain ufw-user-logging-forward (0 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-user-logging-input (0 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-user-logging-output (0 references)
pkts bytes target     prot opt in     out     source               destination

Chain ufw-user-output (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:25

Dodano po pewnym czasie:
Po dalszych dochodzeniach okazuje się że jednak nie jest to wina linuxa a coś jest nie tak po stronie vectry - dostawcy internetu.
Wykonując test iperf3 z serwera do dwóch moich hostów umieszczonych w innych lokalizacjach wygląda to tak że w obu przypadkach wysyłanie jest na poziomie zaledwie 1-3Mbit/s (podczas gdy łącze serwera pozwala wysyłać z prędkością 90Mbit/s a jeden z hostów może odbierać z prędkością 80Mbit/s a drugi 600Mbit/s) a ściąganie praktycznie z maksymalną prędkością z jaką te zewnętrzne hosty mogą wysyłać. Dla pewności zrobiłem jeszcze test pomiędzy tymi dwoma zewnętrznymi hostami i w obie strony wartości są zgodne maksymalnymi możliwościami wysyłania tych hostów. Więc ewidentnie jest coś nie tak z łączem Vectry.
Odpowiedz
#6
0
(02-03-2023, 12:06)polcraft napisał(a): Dodano po pewnym czasie:
Po dalszych dochodzeniach okazuje się że jednak nie jest to wina linuxa a coś jest nie tak po stronie vectry - dostawcy internetu.
Wykonując test iperf3 z serwera do dwóch moich hostów umieszczonych w innych lokalizacjach wygląda to tak że w obu przypadkach wysyłanie jest na poziomie zaledwie 1-3Mbit/s (podczas gdy łącze serwera pozwala wysyłać z prędkością 90Mbit/s a jeden z hostów może odbierać z prędkością 80Mbit/s a drugi 600Mbit/s) a ściąganie praktycznie z maksymalną prędkością z jaką te zewnętrzne hosty mogą wysyłać. Dla pewności zrobiłem jeszcze test pomiędzy tymi dwoma zewnętrznymi hostami i w obie strony wartości są zgodne maksymalnymi możliwościami wysyłania tych hostów. Więc ewidentnie jest coś nie tak z łączem Vectry.
Zobacz sobie dokładnie jakie masz warunki w umowie i rodzaj łącza (asymetryczne czy symetryczne). Jeżeli jest to pierwsze, to rozbieżność prędkości jest jak najbardziej prawidłowa.
Kernel: 6.2.0-32-generic x86_64 Desktop: Xfce 4.18.1 Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
Odpowiedz
#7
0
łącze jest asymetryczne ale zobacz jak wygląda przeciętny test iperf3 na wysyłanie

Kod:
[  5] local 192.168.0.250 port 56708 connected to xx.xx.109.223 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  2.93 MBytes  24.5 Mbits/sec    2    205 KBytes
[  5]   1.00-2.00   sec  1.62 MBytes  13.6 Mbits/sec    6   96.2 KBytes
[  5]   2.00-3.00   sec   891 KBytes  7.30 Mbits/sec    3   45.2 KBytes
[  5]   3.00-4.00   sec  0.00 Bytes  0.00 bits/sec    0   50.9 KBytes
[  5]   4.00-5.00   sec   827 KBytes  6.78 Mbits/sec    2   31.1 KBytes
[  5]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    0   38.2 KBytes
[  5]   6.00-7.00   sec   827 KBytes  6.78 Mbits/sec    1   36.8 KBytes
[  5]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec    2   21.2 KBytes
[  5]   8.00-9.00   sec   891 KBytes  7.30 Mbits/sec    3   12.7 KBytes
[  5]   9.00-10.00  sec  0.00 Bytes  0.00 bits/sec    0   19.8 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  7.90 MBytes  6.62 Mbits/sec   19             sender
[  5]   0.00-10.00  sec  5.68 MBytes  4.77 Mbits/sec                  receiver

19 powtórzeń a niektóre po zero... ale okazało się że mają jakiś problem na łączu z orange i to dotyczy właśnie tylko orange, testy do innych operatorów są na full i bez żadnych powtórzeń
Odpowiedz


Skocz do:




Użytkownicy przeglądający ten wątek: 1 gości