Category Archives: DigitalOcean

digitalocean – 404 Not Found [IP: 103.253.144.50 80]

 

Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libc-bin amd64 2.19-0ubuntu6.9
 404 Not Found [IP: 103.253.144.50 80]
Get:1 http://security.ubuntu.com/ubuntu/ trusty-security/main libc-bin amd64 2.19-0ubuntu6.9 [1,165 kB]
Get:2 http://security.ubuntu.com/ubuntu/ trusty-security/main libc6-dev amd64 2.19-0ubuntu6.9 [1,910 kB]
Get:3 http://security.ubuntu.com/ubuntu/ trusty-security/main libc-dev-bin amd64 2.19-0ubuntu6.9 [69.0 kB]
Get:4 http://security.ubuntu.com/ubuntu/ trusty-security/main libc6 amd64 2.19-0ubuntu6.9 [4,717 kB]
Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libapt-pkg4.12 amd64 1.0.1ubuntu2.14
 404 Not Found [IP: 103.253.144.50 80]
Get:5 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main apt amd64 1.0.1ubuntu2.14 [955 kB]
Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libapt-inst1.5 amd64 1.0.1ubuntu2.14
 404 Not Found [IP: 103.253.144.50 80]
Err http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main libexpat1-dev amd64 2.1.0-4ubuntu1.2
 404 Not Found [IP: 103.253.144.50 80]
Get:6 http://security.ubuntu.com/ubuntu/ trusty-security/main libexpat1-dev amd64 2.1.0-4ubuntu1.2 [115 kB]

 

Hello,

Thanks for writing in!

We’ve updated the mirrors, and it will take some time complete. But should be wrapping up very shortly.

Cheers,

/\/\o || DigitalOcean Platform Support Specialist

Packages 404 Not Found [IP: 192.241.164.26 80]

Whatz uppppp digitalocean?

Err http://mirrors.digitalocean.com trusty-updates/main amd64 Packages
 404 Not Found [IP: 192.241.164.26 80]
Ign http://mirrors.digitalocean.com trusty/universe Translation-en_US
Fetched 2,451 kB in 2min 15s (18.1 kB/s)
W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages 404 Not Found [IP: 192.241.164.26 80]

W: Failed to fetch http://mirrors.digitalocean.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

 

DigitalOcean droplets used to ssh force entry

Today I was watching my fail2ban logs, on one of my servers and found a DigitalOcean ip trying to brute force via SSH.

2015-10-18 18:08:07,471 fail2ban.actions: WARNING [ssh] Ban 46.101.227.169

IP WHOIS

inetnum: 46.101.128.0 - 46.101.255.255
netname: EU-DIGITALOCEAN-DE1
descr: Digital Ocean, Inc.
country: DE
org: ORG-DOI2-RIPE
admin-c: BU332-RIPE
tech-c: BU332-RIPE
status: ASSIGNED PA
mnt-by: digitalocean
mnt-lower: digitalocean
mnt-routes: digitalocean
mnt-domains: digitalocean
created: 2015-06-03T01:15:35Z
last-modified: 2015-06-03T01:15:35Z
source: RIPE # Filtered

Since, I have 3 droplets @ digitalocean, decided to use their support to see what will they do about it…

Captura de ecrã 2015-10-18, às 17.51.04

Linux add user and change its home dir

I usually need to create Linux users for FTP access…
FTP is unsecure, we should use sftp bla bla blaa…

Add user
useradd username
Set/change password
passwd username
Set user’s home dir
usermod -m -d /new/path/ username

This way we will set the new path (/new/path/) to the user named username.

-m defines that content from the old home directory will be mobed to the new one.
-d the new home dir’s path

 See user’s information
finger username

 

 

500 OOPS: priv_sock_get_cmd or 500 OOPS: vsftpd: refusing to run with writable root inside chroot()

500 OOPS: priv_sock_get_cmd

macbook:~ PJunior$ ftp [email protected]
Connected to example.com.
500 OOPS: priv_sock_get_cmd
ftp: Can't connect or login to host `example.com'

Open /etc/vsftpd.conf and at the end  add

seccomp_sandbox=NO

and restart the Server:

sudo service vsftpd restart

ssd-virtual-servers-banner-2-728x90

500 OOPS: vsftpd: refusing to run with writable root inside chroot()

macbook:~ PJunior$ ftp [email protected]
Connected to example.com.
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
ftp: Can't connect or login to host `example.com'

Open /etc/vsftpd.conf and at the end  add

 allow_writeable_chroot=YES

and restart the Server:

sudo service vsftpd restart