我使用
Windows 7连接到运行CentOS 6.4的VPS服务器
我用openvpn配置了我的VPN服务器,最后在试用了4个月后开始工作……
所以我必须连接到我的服务器这是一个突破HOWEVER,我没有互联网访问:(
我不确定你们需要看到什么才能提供帮助,但我会发布我知道可能相关的内容
据我所知,我已正确配置openvpn,因为我可以成功连接到服务器
我不知道我使用的是什么防火墙,我猜它叫做iptables
iptables # Generated by iptables-save v1.4.7 on Thu Feb 13 17:10:07 2014 *nat :PREROUTING ACCEPT [721:50130] :POSTROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE COMMIT # Completed on Thu Feb 13 17:10:07 2014 # Generated by iptables-save v1.4.7 on Thu Feb 13 17:10:07 2014 *filter :INPUT DROP [886:120871] :FORWARD DROP [0:0] :OUTPUT ACCEPT [1209:156538] -A INPUT -p udp --dport 1194 -j ACCEPT -A INPUT -i tun+ -j ACCEPT -A FORWARD -i tun+ -j ACCEPT -A OUTPUT -m state --state NEW -o eth0 -j ACCEPT -A FORWARD -m state --state NEW -o eth0 -j ACCEPT -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p tcp -m tcp --dport 22 -m comment --comment "SSH" -j ACCEPT -A INPUT -p tcp -m tcp --dport 5252 -m comment --comment "SecureSSH" -j ACCEPT -A INPUT -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLISHED$ -A INPUT -i lo -j ACCEPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A OUTPUT -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHED -j$ COMMIT # Completed on Thu Feb 13 17:10:07 2014
和
ifconfig eth0 Link encap:Ethernet HWaddr 00:1D:D8:B7:22:17 inet addr:41.185.26.95 Bcast:41.185.26.255 Mask:255.255.255.0 inet6 addr: fe80::21d:d8ff:feb7:2217/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6598 errors:0 dropped:0 overruns:0 frame:0 TX packets:464 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:545682 (532.8 KiB) TX bytes:51265 (50.0 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:141 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:7352 (7.1 KiB) TX bytes:0 (0.0 b)
如果有人需要其他任何东西,请问,我真的在这里挣扎,我不知道还能做什么……
如果有人有建议,我仍然是一个linux新手,所以请解释我需要做什么,并在需要时给出代码,我真的很感激它
提前致谢
我编辑了我的iptables 原文链接:https://www.f2er.com/linux/398107.html