Ubuntu 在路由器阻止 VPN 时运行

Ubuntu 在路由器阻止 VPN 时运行

我有一个 Ubuntu 服务器 16.01 作为我的路由器运行,我遵循本教程:https://www.youtube.com/watch?v=KXX5gCi0uTo

一切正常,每台机器都有一个 IP,我有互联网连接,甚至在线玩游戏也没有任何延迟,

但是现在我想连接到我工作所在的 VPN,但出现了此错误:

无法建立与远程计算机的连接,因此用于此连接的端口已关闭。

我应该如何打开 VPN 端口?:(

我的 iptables 中缺少什么规则?

~$ sudo iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
Logging    all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain Logging (1 references)
target     prot opt source               destination
LOG        all  --  anywhere             anywhere             limit: avg 5/sec burst 10 LOG level warning
DROP       all  --  anywhere             anywhere

编辑1: 我删除了日志链但它仍然不起作用。

编辑2:

~$ sudo iptables -nvL
Chain INPUT (policy DROP 44132 packets, 12M bytes)
 pkts bytes target  prot opt in     out     source      destination
51909   12M ACCEPT  all  --  lo     *       0.0.0.0/0   0.0.0.0/0
7840K   11G ACCEPT  all  --  eth1   *       0.0.0.0/0   0.0.0.0/0
12130 4281K ACCEPT  all  --  eth0   *       0.0.0.0/0   0.0.0.0/0    state RELATED,ESTABLISHED

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target  prot opt in     out     source      destination
 921K   93M ACCEPT  all  --  eth1   eth0    0.0.0.0/0   0.0.0.0/0
1282K 1176M ACCEPT  all  --  eth0   eth1    0.0.0.0/0   0.0.0.0/0    state RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT 203K packets, 44M bytes)
 pkts bytes target  prot opt in     out     source      destination

~$ sudo iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 57056 packets, 14M bytes)
 pkts bytes target     prot opt in     out     source    destination

Chain INPUT (policy ACCEPT 11567 packets, 2020K bytes)
 pkts bytes target     prot opt in     out     source    destination

Chain OUTPUT (policy ACCEPT 23793 packets, 2413K bytes)
 pkts bytes target     prot opt in     out     source    destination

Chain POSTROUTING (policy ACCEPT 11983 packets, 1286K bytes)
 pkts bytes target     prot opt in     out     source    destination
22262 2006K MASQUERADE  all  --  *      eth0    0.0.0.0/0 0.0.0.0/0

相关内容