Results 1 to 5 of 5

Thread: Automatically capture VPN on Root.

  1. #1
    Corporal STAUFFi's Avatar
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    269
    Thanks
    106
    Thanked 128 Times in 83 Posts

    Automatically capture VPN on Root.

    2-5 People dos my server all times and other want hack my system (
    Jan 15 04:29:21 root sshd[------]: Failed password for root from 88.150.230.42 port 36453 ssh2
    Jan 15 04:29:21 root sshd[------]: Connection closed by 88.150.230.42 [preauth])

    How can i ban
    Automatic VPNs?
    i dont want write all times iptables iptables -A INPUT -s 88.150.230.42 -j DROP.
    Greets stauffi

  2. #2
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    You can not detect who's behind a VPN so you can not automatically ban an VPN.

    As for the above problem, advise: do some research on google, look up more info on fail2ban, it's quite good.

    Just for the impatient:
    PHP Code:
    sudo apt-get install fail2ban 
    // Edit

    As well you can use ssh authentication which is waaay much more secure then a normal login/password method of connecting to your server as a root.
    Last edited by YuriJurek; 15th January 2014 at 22:31.

  3. The Following 2 Users Say Thank You to YuriJurek For This Useful Post:

    kung foo man (16th January 2014),STAUFFi (23rd January 2014)

  4. #3
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Does your ssh still run on the default port? (22) (if yes, try changing it in the config)

  5. The Following User Says Thank You to Mitch For This Useful Post:

    STAUFFi (23rd January 2014)

  6. #4
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    For that make a firewall:

    PHP Code:
    vi /etc/init.d/firewall 
    PHP Code:
    iptables -I INPUT -s 88.150.230.42 -j DROP 
    PHP Code:
    chmod +/etc/init.d/firewall 
    PHP Code:
    /etc/init.d/firewall 

  7. The Following User Says Thank You to thOuMta For This Useful Post:

    STAUFFi (23rd January 2014)

  8. #5
    Corporal STAUFFi's Avatar
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    269
    Thanks
    106
    Thanked 128 Times in 83 Posts
    i changed the SSH Port
    I hope its help.
    thx Yuri,Mitch & thoumta
    Greets

  9. The Following User Says Thank You to STAUFFi For This Useful Post:

    thOuMta (23rd January 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •