小编Fr0*_*ght的帖子

OpenVPN 客户端已连接但无法访问互联网

我在 centos 机器上设置了 Openvpn 服务器,我可以让客户端连接(osx),但无法访问互联网,甚至无法访问本地网络。我以为可能是 DNS,但无法通过 IP 访问任何网站。任何帮助,将不胜感激。我将在下面列出我的配置文件。

server.conf:::

port 1194 #- port
proto udp #- protocol
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
reneg-sec 0
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh2048.pem
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so /etc/pam.d/login #- Comment this line if you are using FreeRADIUS
#plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf #- Uncomment this line if you are using FreeRADIUS
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
persist-key …
Run Code Online (Sandbox Code Playgroud)

iptables openvpn centos

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

标签 统计

centos ×1

iptables ×1

openvpn ×1