Страницы

2015-02-28

Мошенники извращаются или "всемподарки ру"

Приходит мне сообщение от одной из списка друзей в ok.ru со ссылкой на youtube
Выглядело это так:
Понятно, что очередной "развод" но думаю дай гляну на каком уровне
Даже GWT был использован как на сайте ok.ru
Но вот зачем то отдельная авторизация и не авторизация через ok.ru а именно ввести логин и пароль

Подводные камни Oracle Solaris 11

Как выяснилось в Oracle Solaris 11 по каким то причинам не работает ping

ping ya.ru 
ya.ru is alive 
Нагуглил вот такое

tty | grep "not a tty" >/dev/null || {MACHINE_THAT_GOES_PING="Yes" ; export MACHINE_THAT_GOES_PING ; } 
Для включения возможности ping надо сделать следуюшее:

MACHINE_THAT_GOES_PING="Yes" 
export MACHINE_THAT_GOES_PING 
Это я добавил в ~/.zshrc т.к. юзаю zsh

Solaris Jumpstart Cheat Sheet

This document is a quick revision sheet, please refer to the sun documation regarding on how to install, configure
and implement Solaris Jumpstart
Create the directory structuremkdir -p /export/jumpstart/Solaris_8
mkdir /export/jumpstart/Solaris_10
mkdir /export/jumpstart/config
mkdir /export/jumpstart/boot
Share out directories# edit the /etc/dfs/dfstab file
share -F nfs -o ro,anon=0 /export/jumpstart/
Create Install server# Obtain the Solaris 8 CD's
setup-install-server /export/jumpstart/Solaris_8

# Obtain the Solaris 10 CD's or DVD
setup-install-server /export/jumpstart/Solaris_10
Add additional software# Solaris normally comes on multiple CD's
add-to-install-server /export/jumpstart/Solaris_8
# Solaris normally comes on multiple CD's
add-to-install-server /export/jumpstart/Solaris_10
Copy the configuration and example scriptsThe samples can be find in and should be copied to /export/jumpstart/config

<your configured path>/Misc/jumpstart_sample
Create boot Servers# If additonal boot servers are required
setup-install-server -b /export/jumpstart/boot
Setup automatic system configcreate the sysidcfg information in the /export/jumpstart/config directory (can use sysidconfig from other servers)
Example sysidcfg file
---------------------------------------------------------------------------------------
timezone=GB
timeserver=localhost
network_interface=primary {netmask=255.255.240.0 protocol_ipv6=no}
terminal=vt100
security_policy=NONE
name_service=NONE
Create profiles# There are various examples on the CD's (directory)
# profile keywords profile values
# ----------------- -----------------
  install_type initial_install
  system_type standalone
  partitioning default
  filesys c0t0d0s0 4000 /
  filesys c0t0d0s1 1000 swap
  filesys c0t0d0s3 1000 /var
  cluster SUNWcuser
  cluster SUNWCacc
  package SUNWman delete
see link for more profile exmaples, you have used the SUNWcall cluster package for everything
Create Begin & Finish scriptsThe scripts can be shell, perl, etc
Create rules fileThe rules are based on keywords with values, begin script, profile, finish script
hostname vclus1   -   cluster_profile  -
Check rules file# Run the check script within the config directory, a file will be created called "rules.ok"
check
Setup clients
# add_install_client is in Solaris_10/Tools directory

./add_install_client
-e 8:0:20:7a:22:7e
-i 192.168.0.1
-t jump1:/export/jumpstart/Solaris_10/Tools/Boot
-p jump1:/export/jumpstart/config
-c jump1:/export/jumpstart/config
-s jump1:/export/jumpstart/Solaris_10
newserver1
sun4u
-e client ethernet address
-i IP address of client
-t install boot image path
-p Profile Server:<path to sysidcfg file >
-c Configuration Server:<custom jumpstart directory >
-s Install Server:<OS Location>
you could have obmitted the -e and -i options if you add them to /etc/ethers and /etc/hosts files
Other useful options
---------------------------------------------------------------------
-d specify as a DHCP client 
check boot server## to make sure that a boot server is on the network, yo can use the command
rpcinfo -b bootparam 1

Команды Cisco в примерах

Конфигурирование Интерфейса
---------------------------
ip address 
Режим: 

Router(config-if)# 

Синтаксис: 

ip address ip-address mask [secondary] 
no ip address 

Описание: 

ip-address mask : ip адрес и маска secondary вотричный адрес (может быть не один) 

Пример: 

Router(config-if)#ip address 192.168.10.1 255.255.255.0 

Online Disk Suite (ODS)

Sun's volume manager has many names
  • Online Disk Suite (ODS) - will be using this name in this document
  • Solstice Disk Suite (SDS)
  • Solaris Logical Volume Manager (Solaris LVM)
ODS is a disk storage management solution, which offers
  • High Availability
  • Improved Performance
  • Simplified disk management
Raid Levels
The disk management software offers the common raid levels
raid 0 (Striping)A number of disks are concatenated together to give the appearance of one very large disk.
Advantages
   Improved performance
   Can Create very large Volumes
Disadvantages
   Not highly available (if one disk fails, the volume fails)
raid 1 (Mirroring)A single disk is mirrored by another disk, if one disk fails the system is unaffected as it can use its mirror.
Advantages
   Improved performance
   Highly Available (if one disk fails the mirror takes over)

Disadvantages
   Expensive (requires double the number of disks)
raid 5Raid stands for Redundant Array of Inexpensive Disks, the disks are striped with parity across 3 or more disks, the parity is used in the event that one of the disks fails, the data on the failed disk is reconstructed by using the parity bit.
Advantages
   Improved performance (read only)
   Not expensive

Disadvantages
   Slow write operations (caused by having to create the parity bit)

Фильтрующий мост между сетевыми интерфейсами

В новых версиях FreeBSD уже многое по дефолту работает и не требует добавления но переношу старую статью как было (может чуток подправил)
Опции ядра

device pf
device pflog
device pfsync
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_PRIQ
options ALTQ_NOPCC

Я подразумеваю что все знают как пере-собрать ядро и т.д.

Создаём мост
ifconfig bridge0 create
ifconfig bridge0 addm rl0 addm xl0
ifconfig bridge0 up

Удалять интерфейсы из моста можно таким образом
ifconfig bridge0 deletem xl0

Вносим изменения в rc.conf
cloned_interfaces="bridge0"
ifconfig_bridge0="addm rl0 addm xl0 up"
ifconfig_rl0="inet 192.168.0.1 netmask 255.255.255.0 up"
ifconfig_xl0="up"

2015-02-27

Polipo - прокси сервер

Настройка простого прокси-сервера

Допустим у вас есть канал интернет, который нужно раздавать на несколько машин (1-2), т.е. нужно поставить прокси.
Выбор прокси-серверов в *nix огромен. Поиск в репозитарии любого дистра выдаст десяток приложений, ориентированных на разные задачи и протоколы. Возможности у них различны: кэширующие, фильтрующие, прозрачные и так далее. Популярный Squid несколько тяжеловат и в настройке довольно сложен. Если нужен только кэширующий прокси, заменить кальмара поможет или Polipo (www.pps.jussieu.fr/~jch/software/polipo) ? легкий проксик, ориентированный на небольшое количество клиентов, или популярный Oops! (www.oops-cache.org).