小编Cub*_*box的帖子

Openvpn,转发数据包很慢

我重新启动了我的服务器,然后出现了一个奇怪的问题。我在 ArchLinux 上运行,客户端是 Ubuntu、Android 和 Mac。

问题是通过客户端访问互联网很慢,大约 2ko/s 并且慢慢停止。

但是直接从服务器下载一些东西到客户端是全速进行的。而且,显然,来自服务器的互联网全速(40 个月/秒)。

我不知道重启后发生了什么,但是这个问题在所有客户端上都存在,并且只与 openvpn 转发到互联网的流量有关。

编辑:用tcp试过,没有解决。编辑:测试了各种片段/mtu 设置,没有变化。

这是我所有的confs:

??<root@Alduin>-</etc/openvpn>-<1:45:07>-?
??? cat Alduin.conf ccd/Thunderaan
local 212.83.129.104
port 1194
proto udp
dev tun
ca keys/ca.crt
cert keys/Alduin.crt
key keys/Alduin.key
dh keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 10.8.0.1"
client-to-client
keepalive 5 60
ping-timer-rem
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
client-config-dir ccd
topology subnet

ccd from here +++++++++++++++


ifconfig-push 10.8.0.2 255.255.255.0
push "redirect-gateway def1"
Run Code Online (Sandbox Code Playgroud)

客户端配置:

client
dev tun
proto udp
remote …
Run Code Online (Sandbox Code Playgroud)

linux routing ip iptables openvpn

10
推荐指数
1
解决办法
5779
查看次数

接口上的多个 ip 地址。我想为输出指定其中之一

我在 curlmyip.com 上运行 curl,我得到了错误的输出 IP 地址。我的 systemd 服务文件是:

[Unit]
Description=Wired Networking
Wants=network.target dibbler-client.service
Before=network.target dibbler-client.service

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network
ExecStart=/sbin/ip link set dev ${interface} up
ExecStart=/sbin/ip addr add ${address}/24 dev ${interface}
ExecStart=/sbin/ip addr add ${failover}/32 dev ${interface}
ExecStart=/sbin/ip route add default via ${gateway} src ${failover}
ExecStart=/sbin/ip -6 addr add ${addressv6}/64 dev ${interface}

ExecStop=/sbin/ip addr flush dev ${interface}
ExecStop=/sbin/ip -6 addr flush dev ${interface}
ExecStop=/sbin/ip link set dev ${interface} down

[Install]
WantedBy=multi-user.target
Run Code Online (Sandbox Code Playgroud)

变量是:

interface=eno1
address=88.190.15.135
address6=2001:bc8:300a:dead::b12d
failover=212.83.129.104
broadcast=88.190.15.255
gateway=88.190.15.1
Run Code Online (Sandbox Code Playgroud)

现在,ip 地址给我: …

networking linux ip route iproute

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

ip ×2

linux ×2

iproute ×1

iptables ×1

networking ×1

openvpn ×1

route ×1

routing ×1