V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
auther
V2EX  ›  VPS

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

  •  
  •   auther · Apr 11, 2015 · 1338 views
    This topic created in 4039 days ago, the information mentioned may be changed or developed.

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

    6 replies    2015-04-19 12:54:52 +08:00
    laydown
        1
    laydown  
       Apr 11, 2015
    设置iptables,只留ssh登录和Shadowsocks的端口就好了。
    jianshu
        2
    jianshu  
       Apr 12, 2015
    改SSH端口+密钥登录+禁ROOT+Denyhosts或Fail2ban,再配合楼上的简单iptables规则。
    auther
        3
    auther  
    OP
       Apr 12, 2015
    零基础伤不起,弄了两天好不容易密钥禁root的之类搞好了,但是iptables还是搞不懂,可以帮我一下吗?只用来上SS其他也不会
    auther
        4
    auther  
    OP
       Apr 12, 2015
    为什么重启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  
       Apr 19, 2015
    完全搞不懂怎么设置iptables,教程也没有。。
    wswj
        6
    wswj  
       Apr 19, 2015
    iptables按这儿弄的
    http://www.netingcn.com/tag/centos%E4%B8%8Biptables%E8%AE%BE%E7%BD%AE
    小白连putty都没用过,后悔买vps了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2595 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 03:44 · PVG 11:44 · LAX 20:44 · JFK 23:44
    ♥ Do have faith in what you're doing.