с прошедшими и наступающими праздниками.
имею vps:
на нем скорость:
1.
Код: Выделить всё
# speedtest-cli
Hosted by Tele2 Netherlands B.V. (Amsterdam) [1.75 km]: 11.672 ms
Testing download speed................................................................................
Download: 198.56 Mbit/s
Testing upload speed................................................................................................
Upload: 427.00 Mbit/s
Код: Выделить всё
speedtest-cli --server 14190
Hosted by DOM.RU (Moscow) [2146.62 km]: 80.248 ms
Testing download speed................................................................................
Download: 147.07 Mbit/s
Testing upload speed................................................................................................
Upload: 223.57 Mbit/s
Код: Выделить всё
speedtest-cli --server 1352
Hosted by Tis-Dialog (Kaliningrad) [1061.43 km]: 87.321 ms
Testing download speed................................................................................
Download: 177.36 Mbit/s
Testing upload speed................................................................................................
Upload: 153.84 Mbit/s
подключаюсь к серверу по pptp(mpd5)
ширина канала результаты iperf(iperf -s -B 192.168.6.1):
Код: Выделить всё
iperf -c 192.168.6.1
------------------------------------------------------------
Client connecting to 192.168.6.1, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.6.150 port 51232 connected with 192.168.6.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.1 sec 30.5 MBytes 25.3 Mbits/sec
теже сервера, только уже от меня:
Код: Выделить всё
user@noteuser:~$ speedtest-cli --server 11365
Hosted by Vancis (Amsterdam) [1.75 km]: 62.131 ms
Testing download speed................................................................................
Download: 0.28 Mbit/s
Testing upload speed......................................................................................................
Upload: 17.69 Mbit/s
user@noteuser:~$ speedtest-cli --server 14190
Hosted by DOM.RU (Moscow) [2146.62 km]: 210.138 ms
Testing download speed................................................................................
Download: 0.52 Mbit/s
Testing upload speed......................................................................................................
Upload: 11.48 Mbit/s
user@noteuser:~$ speedtest-cli --server 1352
Hosted by Tis-Dialog (Kaliningrad) [1061.43 km]: 70.215 ms
Testing download speed................................................................................
Download: 0.39 Mbit/s
Testing upload speed......................................................................................................
Upload: 15.22 Mbit/s
с openvpn ситуация таже, только сам канал чуть меньше стал(из-за шифрования наверное):
ipef:
Код: Выделить всё
user@noteuser:~$ iperf -c 10.8.10.1
------------------------------------------------------------
Client connecting to 10.8.10.1, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[ 3] local 10.8.10.40 port 58408 connected with 10.8.10.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.1 sec 24.0 MBytes 20.0 Mbits/sec
nat организован был средствами pf и ipnat(на текущий момент он стоит)
cat /etc/ipnat.conf
Код: Выделить всё
map vtnet0 10.8.10.0/24 -> 0.0.0.0/32
map vtnet0 192.168.6.0/24 -> 0.0.0.0/32
Код: Выделить всё
ext_if = "vtnet0"
int_if = "tap0"
localnet = "10.8.10.0/24"
pptpdsrv = "192.168.6.0/24"
set skip on lo0
set loginterface $ext_if
set block-policy return
scrub in all
nat on $ext_if from $localnet -> $ext_if
nat on $ext_if from $pptpdsrv -> $ext_if
pass in proto gre from any to any keep state
pass on $int_if all
куда копать чтобы скорость входящего трафика увеличить?