По умолчанию Proftpd слушает порт 21 на всех интерфейсах, если же нужно указать ему отвечать строго на определенном интерфейсе используйте конфигурацию:
SocketBindTight on
Port 21
DefaultAddress 192.168.3.1
Возникла типичная для многих ситуация, на одном из серверов в одном из ДЦ оказалось что входящего трафа больше чем исходящего. причем нехватает пару терабайт исходящего.
ничего страшного /dev/urandom безлимитный, осталось только выбрать ДЦ и сервер на который можно его перегнать. А перегонять будем так:
cat /dev/urandom | ssh server 'cat > /traff'
время от времени (по крону например) на принимающем сервере будем обнулять файлик traff
> /traff
пока писал, пришла в голову мысль, что можно передавать сразу в /dev/null
Disclaimer:This post is not really related to OpenVZ, but who cares? I don't... So from now on I will be writing more here, on just about everything.
In UNIX systems, system time is accounted as a number of seconds since so-called «» — 1 January 1970 00:00:00 UTC. This number of seconds is returned by system call time (), plus there are library routines to convert it to more human-appealing formats.
You can guess the number is pretty big nowdays, incrementing every second. In fact, it's already over a million seconds, and in about 1 hour it will be equal to 1234567890. For some people this is a good enough reason to have a beer or two in a good company. Check for 1234567890 parties around the globe. As for myself, I will just watch the number growing. Some kind of a meditation, similar to staring at an open fire, or flowing water, or people at work... I can do that for hours! Just kidding...
On Linux, you can see the current time () using date +%s command. Enjoy.