搭了一个 ocserv,可以连接,但是无法访问网络

2015-11-09 20:21:27 +08:00
 goodryb

如题,是参考网上的教程,配置了 iptables ,现在防火墙如下,不知道哪里不对

root@localhost:~# iptables -nvL
Chain INPUT (policy ACCEPT 37429 packets, 15M bytes)
pkts bytes target prot opt in out source destination

901 72440 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
124 52112 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:443

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

152 9833 ACCEPT all -- * * 10.10.0.0/24 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 37666 packets, 15M bytes)
pkts bytes target prot opt in out source destination

421 次点击
所在节点    VPS
3 条回复
zen9073
2015-11-09 22:31:47 +08:00
iptables 的 net 表呢
也贴出来啊
srrshweee
2015-11-10 10:38:58 +08:00
转发没有设置对。但是我也不知道是怎么设置的。哈哈
lenovo
2015-11-10 11:42:24 +08:00
https://goo.gl/ArpwGP
iptables 只有 3 行,工作正常
*nat
-A POSTROUTING -j MASQUERADE
COMMIT

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/234878

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX