You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good afternoon, I'm using Raspberry PI and using sslocal and ssserver to create a connection. I also need to create a tun interface, but I have problems with speed:
Regular Internet speed: Download 95-100 Mbps Upload 80-95 Mbps
Speed when creating a tun interface: Download 50-55 Mbps Upload 80-85 Mbps
Speed when creating local socks and connecting to it via 3proxy: Download 75-80 Mbps Upload 80-85 Mbps
I would like to note that I have no problems when my initial connection speed is about 100 Mbps, but when I use another WIFI network or am in another place where the initial speed is 20 Mbps, then visiting sites with such a connection becomes impossible.
I would also like to note that the issue is precisely the interface that is being created, because the speed with a socks connection is normal.
I launch client shadowsocks-rust this way:
sudo sslocal -s *server_ip:server:port* -k *pass* -m chacha20-ietf-poly1305 -U --tun-interface-name tun0 --protocol tun --timeout 50 --tcp-no-delay --tcp-fast-open
sudo ip link set tun0 up
sudo ip addr add 10.1.2.1/32 dev tun0
sudo ethtool -s tun0 autoneg off speed 1000 duplex full
Below I will send some system variables and command outputs. I would like to note that I tried different variations of variables and this way I managed to achieve maximum speed on the client side.
sudo ethtool tun0
Settings for tun0:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
MDI-X: Unknown
Current message level: 0x00000000 (0)
Link detected: yes
ip a
tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq state UNKNOWN group default qlen 500
link/none
inet 10.1.2.1/32 scope global tun0
valid_lft forever preferred_lft forever
Options I tried to fix the speed issue:
Tried changing server.
I tried changing the settings in /etc/sysctl.conf, mtu settings and others.
I tried changing the parameters with which I launch the shadowsocks-rust client (tcp-no-delay, tcp-fast-open, buffer-size and others).
I also tried to create an interface using tun2socks, but the speed only got worse.
I tried to optimize the interface and remove delays.
The text was updated successfully, but these errors were encountered:
The tun interface in this project implementation is still experimental (not optimized yet). But in my network environment, speed test in local network could reach 600Mbps.
I am currently no idea what was happening in your environment. You may try to add some more logs in the program, for example, write a log when received packet from interface, inserted into the state machine, sent to remote server, received from remote server, ... which may help.
Good afternoon, I'm using Raspberry PI and using
sslocal
andssserver
to create a connection. I also need to create a tun interface, but I have problems with speed:Regular Internet speed: Download 95-100 Mbps Upload 80-95 Mbps
Speed when creating a tun interface: Download 50-55 Mbps Upload 80-85 Mbps
Speed when creating local socks and connecting to it via 3proxy: Download 75-80 Mbps Upload 80-85 Mbps
I would like to note that I have no problems when my initial connection speed is about 100 Mbps, but when I use another WIFI network or am in another place where the initial speed is 20 Mbps, then visiting sites with such a connection becomes impossible.
I would also like to note that the issue is precisely the interface that is being created, because the speed with a socks connection is normal.
I launch client shadowsocks-rust this way:
I launch server shadowsocks-rust this way:
sudo ssserver -k *pass* -m chacha20-ietf-poly1305 -U --server-addr 0.0.0.0:*server_port* --timeout 50 --tcp-no-delay --tcp-multipath
Below I will send some system variables and command outputs. I would like to note that I tried different variations of variables and this way I managed to achieve maximum speed on the client side.
/etc/sysctl.conf client
/etc/sysctl.conf server
It is also indicated on both sides
ulimit -n 51200
Output of some client side commands
Options I tried to fix the speed issue:
The text was updated successfully, but these errors were encountered: