配置 VPN 以允许 MMS

配置 VPN 以允许 MMS

我最近在家里的 RPI 上安装了 Pi-Hole + PiVPN (OpenVPN)。我使用本指南设置它,它工作得很好,来自 VPN 的流量通过 Pi-Hole 路由;但是当我使用 OpenVPN Connect 应用程序通过 Pixel 2 连接到 VPN 时,我无法发送或接收 MMS 消息。我尝试禁用 Pi-Hole 以确定问题出在 VPN 还是 Pi-Hole 上,但问题仍然存在。

我希望有人知道如何调整我的 OpenVPN 配置,以便我在连接到 VPN 时可以发送和接收短信。我的 OpenVPN server.config 如下:

dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server_2wA4OjM7gfFQzARq.crt
key /etc/openvpn/easy-rsa/pki/private/server_2wA4OjM7gfFQzARq.key
dh none
topology subnet
server 10.8.0.0 255.255.255.0
# Set your primary domain name server address for clients
#push "dhcp-option DNS 208.67.222.222"
#push "dhcp-option DNS 208.67.220.220"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
keepalive 1800 3600
remote-cert-tls client
tls-version-min 1.2
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
#DuplicateCNs allow access control on a less-granular, per user basis.
#Remove # if you will manage access by user instead of device.
#duplicate-cn
# Generated for use by PiVPN.io
# User changes below
# Set localhost for DNS so it gets routed thru pi-hole
push "dhcp-option DNS 10.8.0.1"

相关内容