V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
auther
V2EX  ›  VPS

小白求问用搬瓦工的自带一键搭建用上了 SS,之后还需要做点什么吗?

  •  
  •   auther · 2015-04-11 23:15:55 +08:00 · 550 次点击
    这是一个创建于 3309 天前的主题,其中的信息可能已经有所发展或是发生改变。

    看到有人的搬瓦工VPS被用来发垃圾邮件结果被封了,于是想看看安全方面的设置,结果头都大了,想问问有没有简单点有效点的防护手段

    6 条回复    2015-04-19 12:54:52 +08:00
    laydown
        1
    laydown  
       2015-04-11 23:42:28 +08:00
    设置iptables,只留ssh登录和Shadowsocks的端口就好了。
    jianshu
        2
    jianshu  
       2015-04-12 13:26:42 +08:00
    改SSH端口+密钥登录+禁ROOT+Denyhosts或Fail2ban,再配合楼上的简单iptables规则。
    auther
        3
    auther  
    OP
       2015-04-12 16:26:11 +08:00
    零基础伤不起,弄了两天好不容易密钥禁root的之类搞好了,但是iptables还是搞不懂,可以帮我一下吗?只用来上SS其他也不会
    auther
        4
    auther  
    OP
       2015-04-12 18:21:33 +08:00
    为什么重启iptables后会出现:
    iptables: Applying firewall rules: FATAL: Module ip_tables not found.
    iptables-restore v1.4.7: iptables-restore: unable to initialize table 'filter
    '
    wswj
        5
    wswj  
       2015-04-19 10:57:33 +08:00
    完全搞不懂怎么设置iptables,教程也没有。。
    wswj
        6
    wswj  
       2015-04-19 12:54:52 +08:00
    iptables按这儿弄的
    http://www.netingcn.com/tag/centos%E4%B8%8Biptables%E8%AE%BE%E7%BD%AE
    小白连putty都没用过,后悔买vps了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2042 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 02:01 · PVG 10:01 · LAX 19:01 · JFK 22:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.