V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  gason406  ›  全部回复第 14 页 / 共 14 页
回复总数  264
1 ... 5  6  7  8  9  10  11  12  13  14  
2015 年 3 月 10 日
回复了 gason406 创建的主题 VPS 新手请教 XSVPS 搭梯子的问题
@yywudi 劳烦求教

这是/etc/sysconfig/iptables的内容
# Ferewall cll configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT


输入iptables -L返回
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

然后我谷歌了添加端口是
iptables -A INPUT -p tcp --dport xxxx -j ACCEPT
iptables -A OUTPUT -p tcp --dport XXXX -j ACCEPT
但是添加之后上述端口telnet仍然超时
请问我应该怎么做
2015 年 3 月 9 日
回复了 Yamade 创建的主题 VPS bandwagonhost 电信下载可以到 6M/s 电信小伙伴们,你呢?
峰值300k……
2015 年 2 月 9 日
回复了 crystone 创建的主题 程序员 lizhi fm 里的音频如何下载?
傲游浏览器资源嗅探?其实也就是一个chrome审查元素的GUI而已,原理和2L一样
2015 年 2 月 8 日
回复了 vvard3n 创建的主题 程序员 电信的光猫是不是有什么机关啊?
我觉得48L说得对,直接让光猫PPPoE再接路由比让路由器pppoe快
1 ... 5  6  7  8  9  10  11  12  13  14  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2433 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 12:18 · PVG 20:18 · LAX 04:18 · JFK 07:18
♥ Do have faith in what you're doing.