Etiketler

19 Nisan 2014 Cumartesi

PC'ye Android Nasıl Kurulur ?

Merhaba Arkadaşlar
Bugun sizlere sanal makina üzerine Android kurulumundan bahsetmek istiyorum. Bilindiği üzerine Android akıllı cihazlarda çalışan bir işletim sistemi.. Ve isterseniz bunu bilgisayarınıza da kurabilirsiniz. Dilerseniz direk bilgisayarınızdan bir parça ayırarak kurabilirsiniz, dilerseniz de merak ediyorum denemek istiyorum diyorsanız sanal makinaya (virtual box vb.) kurabilirsiniz.
Bunun için öncelikle Android'in .iso dosyasını indirmeniz gerekiyor.
Iso dosyasını indirmek için tıklayınız.
Bundan sonraki aşamaları;

























Hello Android


Bundan sonraki ayarlar size ait :))


Herkese iyi çalışmalar

18 Nisan 2014 Cuma

Manjaro Ekran Parlaklık Ayarı

Merhabalar

Manjaro kullanırken (FN) tuşlarınızla birlikte çalışan parlaklık ayarınız bazen çalışmayabilir.
Parlaklık ayarının terminal ekranından yapılması mümkün.. Öncelikle /sys dosyasından /class klasörune oradan /backlight klasörüne gelerek brigthness dosyasının içini düzenlememiz gerekiyor.

cd /sys/class/backlight/nv_backlight/




sudo nano brightness



Ctrl+X' basıp daha sonrasında değişiklikleri kaydedip çıkıyoruz.
100 Maximum parlaklık olup parlaklığı tercihlerinize göre 0 ile 100 arasında ayarlayabilirsiniz.

Herkese parlak ekranlar dilerim :))

5 Ocak 2014 Pazar

IPsec


 IPSec is a bundle of protocols and algorithms defining a flexible framework in which it is the user who selects the actual parameters of the algorithms and methods to be used. As a result, one should assume that two IPSec implementation instances are not necessarily identical.
IPsec is defined in RFC 2401 to 2411 and 2451.

 In a communications network, security has a few different aspects, the most important being:
Authentication
Making sure that the data received is indeed coming from the expected partner
(avoiding unauthorized sources to transmit data to a station)
Integrity
Making sure that the data received is indeed what was transmitted by the source
(avoiding modifications to the data by unknown parties, executed while the data traveled from source to destination)
Rejection of replayed data
Making sure that receivers identify and discard packets that have been already received
(avoiding multiple executions of same command, generated by unknown parties)
Confidentiality
Making sure that nobody “listens and understands” the data on its way from source to destination

 IPsec addresses all the above services and defines the necessary tools for their provision.
The basic idea of IPsec is to “mark” packets before being injected into the communications network, and use this “mark” at the receiving side in order to decide whether the packet arrived from the correct source (authentication), whether the packet content is exactly the one generated by the source, without any modifications (integrity) and whether the packet is not a replay of one of the previous packets, already received (rejection of replayed data).
In addition, IPsec also defines a framework for data encryption ensuring that potential “listeners” in the network would not be able to understand the information carried in the packet (confidentiality).
The “marking” process results in new fields being added to the packet to be protected.
The "marking" of the packets before their transmission may be executed by:
- the user computer (client), or by
- the ingress edge router (the first router met by the transmitted packet, the router connecting the user to the communications network)
When the user computer is the one marking the transmitted packets, it is said that IPsec is used in “transport mode”.
When the ingress router is doing the job on behalf of the user (acting as a proxy IPsec entity), it is said that IPsec is used in “tunnel mode”.


Authentication / Integrity Check Principles
Authentication and integrity check processes are based on the addition to the packet to be protected of an Integrity Check Value (ICV) field allowing the receiving party to be sure that:
a.- The packet was indeed sent by the expected partner (authentication)
b.- The packet has not been modified (tampered with) during its trip through the network (integrity check)
Generating and Using the ICV
Observations:
1.- Messages encrypted with a specific key can be correctly decoded ONLY by using the same key.
2.- A decoding process using a specific key, applied to a message encrypted with a different key, results in a message different than the original one.
Generic Authentication Process  Transmission
ICV is the result of two consecutive processes executed to the packet to be protected.
- step 1 - A hash value is calculated for the packet to be protected.
- step 2 - The hash value obtained in step 1 is encrypted using a secret key, generating the ICV value to be added to the packet.



IP Sec Marking Location and Protection Areas

Depending on the specific IP Sec protocol used, and the selected mode (transport or tunnel), IP Sec marking appears in different locations in the protected packet.
When authentication is used, the marking protects the whole packet.
When confidentiality marking is used, the transport and tunnel mode provide different types of services.
In transport mode the encryption process is executed by the end station, and routers in the network are expected to route the encrypted packet toward its destination.
As a result, the encrypting station cannot encrypt the IP header, as it includes the vital information needed by routers for correct operation. The only part that can be protected in this case is the payload itself (the upper layers).
In tunnel mode the encryption process is executed by the ingress router, and the resulting packet is sent via the network to another router (the other end of the tunnel) as indicated in a NEW IP header, added by the ingress router.

As a result, the ingress router can encrypt the whole original packet (payload and original IP addresses). Both authentication and confidentiality services are based on packet marking executed at transmission site, followed by decoding executed at the receiving site.

Security Associations (SA)

Obviously, the receiving party should be aware of the marking executed by the transmitting party. The two parties, have to enter into a logical relationship, known as a “Security Association (SA)”, where the actual parameters regarding the algorithms and keys to be used are agreed.
Security Associations are unidirectional.
In a bi-directional link in which both directions have to be protected by IPsec, there will be two Security Associations: A-to-B and B-to-A.
Security Associations are uniquely identified by fields present in the protected packet, allowing the receiving party to associate a received packet to a specific Security Association and (as a result) to activate the correct algorithms for its processing.


IPSec consists of 3 major parts:

1.- AH - Authentication Header protocol (RFC 2402): Provides marking for authentication, integrity and replay protection

2.- ESP - Encapsulating Security Payload (RFC 2406): Provides marking for authentication, integrity and replay protection as well as for confidentiality. As both authentication and encryption algorithms imply the use of encryption keys, one more element is needed; a protocol to handle the encryption key selection and other administrative issues related to the creation and maintenance of a Security Association between nodes.
3.- IKE - Internet Key Exchange (RFC 2409) : Establishes and maintains Security Associations.
AH - Authentication Header protocol (RFC 2402)


- Next header - type of next payload
- Payload length
- SPI - Arbitrary value that, together with the IP DA of the packet, identifies the actual Security Association (SA) to which the packet belongs.
- Stations identify the SA to be used for the processing of an incoming packet, based on:
- IP DA
- SPI
- security service (as indicated by the "protocol” value in the field preceding the security header – AH or ESP)
- Sequence number - avoids replay of the packet
- Authentication data - includes Integrity Check Value (ICV), used to authenticate the packet
ESP - Encapsulating Security Payload (RFC 2406)


- SPI - Arbitrary value that, together with the IP DA of the packet, identifies the actual Security Association (SA) to which the packet belongs.
- Stations identify the SA to be used for the processing of an incoming packet, based on:
- IP DA
- SPI
- security service (as indicated by the ‘protocol” value in the field preceding the security header - AH or ESP)
- Sequence number - avoids replay of the packet .
- Pad length
- Next header - type of payload in the packet .
- Authentication data - includes Integrity Check Value (ICV), used to authenticate the packet.


IKE - Internet Key Exchange protocol (RFC 2409)
The purpose of the IKE protocol is to negotiate the protection parameters (protocols, keys, keys life time, etc.) to be used by the partners.
IKE is a protocol built as a combination of

- ISAKMP (Internet Security Association and Key Management Protocol) defined by NSA (National Security Agency) for the negotiation of the SA parameters, and
- OAKLEY protocol, based on Diffie-Hellman, for the selection of the encryption keys
For an effective protection of the data, the parameters negotiation should be itself protected.
IKE defines therefore two different phases:
- Phase 1 - Creates a protected environment (an SA) between the partners, to protect the negotiation of the authentication and encryption parameters to be used in the actual data transfer phase.
Phase 1 can be executed either via the Main Mode protocol (MM) or via the Aggressive Mode protocol (AM).
- Phase 2 - Partners negotiate the protection parameters to be used in the data transfer phase. The negotiation is protected by the elements defined in phase 1.
Phase 2 is executed through the protocol known as the Quick Mode.
Phase 1 Main Mode concept:
- Step a - One party sends an offer including all the parameters needed to define a Security Association (SA), EXCEPT the keys.
Receiving party answers with the selected parameters.
- Step b - Parties exchange their public keys and some random sequences (nonce) to be used in step c.
- Step c - Using the keys and nonces exchanged in step b, parties authenticate each other.
At the end of these three steps, the two partners have been authenticated, and keys have been generated for the protection of the messages to be exchanged in Phase 2.
At the end of Phase 2, all the parameters and the keys necessary for operation are defined, and partners can start the actual data transfer phase, generating AH or ESP protected packets.

Source :
www.sorin-schwartz.com   by Sorin M. SCHWARTZ
Paul Asadoorian
Interpeak
http://www.openbsd.org/faq/faq13.html – OpenBSD Doc
http://www.freeswan.org/ – Linux IPsec Support
http://www.ietf.org/html.charters/ipsec-charter.html – All RFC's &
Drafts
http://www.cisco.com/warp/public/105/IPSECpart1.html – Intro from
Cisco
http://www.counterpane.com/ipsec.pdf – An eval of IPsec



20 Eylül 2013 Cuma

TORRENT NEDİR NASIL ÇALIŞIR?


        Torrentin oluşturma amacı büyük boyutlu Linux yazılımlarını paylaşmaktır. Günümüzde büyük boyutlu çeşitli dosya türlerinin paylaşımları için kullanılmaktadır.
        Torrent P2P teknolojisini kullanan dosya paylaşım sistemidir. Diğer P2P paylaşım programlarından farkı; sabit olmayan bağımsız sunucu tanımlama dosyaları sayesinde sabit bir sunucuya ihtiyaç olmaksızın paylaşmaya devam eder.Doğrudan indirmekten farklı olarak, dosyayı indirirken diğer kullanıcılara da sunar.


 Server Tabanlı Paylaşım Sistemi












            

         Torrentin çalışma sistemi , herkesin eşit ağırlık üstlendiği P2P deki en verimli paylaşım sistemi.










        Torrent alıcıların indirdikleri parçaları birbirleri ile paylaşmaları sunucunun ağ yükünü önemli ölçüde hafifletir. Tüm alıcılar tüm parçalara sahip oluncaya kadar aralarındaki paylaşım devam eder.
Torrent sisteminin çalışma prensibi ; ilk olarak belirlenen ana sunucu paylaşılacak dosyayı 32kb dan 4mb kadar olan parçalara ayırır. Daha sonra bu parçalar sunucudan dosyasını çeken bütün kullanıclara dağıtıyor kullanıcılar hep P2P de olduğu gibi parçaları hem kaynak olan makinadan hem de diğer indiren makinalardan alabiliyor. Torrentte dosyayı paylaşan kullancı aradan çekilse bile kullanıcılar eksik kalan dosyaları kendi aralarında paylaşıp indirme işlemlerini bitirerek kendilerini de birer kaynağa dönüştürebilirler.
         Torrent sistemi hatasız indirme yapmasıyla bilinir. Dosyayı indirirken hata denetleyicisi kullanır ve hatalı dosya indiyse hemen başka bir kullanıcıdan yeni parçacık talep eder bunu da kullanıcya bildirmez ve sorunsuz indirme işlemine devam eder.
        Aynı zamanda torrent dosya indirirken hafıza kaplama konusunda akıllıca davranır. Dosya henüz indirlmeden hard diskte sanal olarak yer kaplamaktansa indirildikçe yer kaplamaya başlar. Ancak kullanıcının isteğine göre torrentin çalışmaları ayarlanabilir, sanal alan ayırma modu da aktif hale getirilebilir.

Torrentle İlgili Temel Kavramlar

Seed: Kaynak anlamına gelir. Dosyanın tümüne sahip ve paylaşımda bulunan kişilere seeder denir.
Leech: Dosyayı çekenlere denir. Dosyayı vçeken kişiler aynı zamanda dosyanın paylaşmasına engel olan kişilere leecher denir.
Peer: Seed ve leech eden in toplamına verilen isimdir.
Reseed: Daha önce indirilmiş bir torrent ile çekilen dosyaların bir sürü sonra tekrar seed etme işlemine verilen isimdir.Bu işlemhash kontrolü gerektirir.Torrent ile çekilen dosyaların en ufak bir değişikliğe bile uğramamış olmaları gerekmektedir.
Hash: Torrentin indikten sonra indirilen parçaların doğru olup olmadığını kontrolü için kullanılan bütünlük kontrolüdür. Her torrente , her dosya ve parçada bulunur. Kullanıcı sadece torrentin genel hash bilgisini görebilir. Hash bilgisi her Torrente farklı olduğundan aynı zaman da torrent dosyasını da tanımlar.
Tracker: Torrentin bağlandığı basit bir sunucudur. Torrenti çeken peerler trackere dosya hakkınad bilgi gönderirler, diğer peerler ise trackere bağlanarak kimde hangi dosyanın hangi parçalarının olduğunu öğrenirler. Tracker üzerinden kesinlikle dosya transferi gerçekleşmez sadece kaynak paylaşılır. İstatistik bilgilerini de barındırabilir.
 DHT: Distributed Hash Table peerler arası kaynak paylaşımı denilebilir.Trackerden bağımsız kaynak bulma işini üstlenir.






17 Temmuz 2013 Çarşamba

Ubuntu POSTFIX Kurulumu ve Mail Gönderme

Postfix, Linux ve Unix bilgisayar işletim sistemlerinde bir açık kaynaklı (Mail Transfer Agent) e-posta aktarma ajanıdır.
Ubuntu'da terminal ekranından kurulum yapmak için;

sudo apt-get install postfix
sudo apt-get install mailutils

Yerel başka bir kullanıcı eklemek için;
sudo useradd -m -s /bin/bash yenikullanıcı
sudo passwd yenikullanıcı

Postfix için ayarlar sırasıyla;











Ayarlama işlemlerimizi tamamladık. Eğer tekrar ayarlamak ya da bazı değişikler yapmak istersek;

sudo dpkg-reconfigure postfix


Yerelde  kullanıcı arasında mail göndermek için;
telnet localhost 25



mail from:yasemin@localhost
rcpt to:yenikullanıcı@localhost
data
subject:deneme
deneme
.
quit


Maili diğer kullanıcıya gönderdik. Daha sonra başka bir terminal açarak (ctrl+alt+T), öncelikle diğer kullanıcıya geçiş yapmamız gerekiyor

su - kullanıcıadı



Daha sonra mail yazarak gelen mailleri görüntülüyoruz.
mail


Henüz gönderilmemiş , gönderilmeyi bekleyen mailleri görüntülemek için mail kuğruğuna bakıyoruz.
mailq


Şimdiye kadar aynı bilgisayar içerisinde iki farklı kullanıcı arasında mail gönderdik, buna ek farklı 2 bilgisayar arasında mail göndermekten bahsetmek istiyorum.
İlk başta ben bir IP'ye bağlanmak istediğimde hata alıyordum. Bunu çözmek için "xinetd" yükledim.


sudo apt-get install xinetd
cd /etc/inetd.d/

yukarıdaki komut satırlarını yazdıktan sonra telnet adında bir dosya oluşturuyoruz.
sudo nano telnet

daha sonra dosyanın içine aşağıdaki satırları olduğu gibi kopyalıyoruz ve kaydediyoruz.

service telnet
 { disable     = no
   flag        = REUSE
   socket_type = stream
   wait        = no
   user        = root
  server       = /usr/sbin/in.telnetd
log_on_failure += USERID
}


kaydettikten sonra xinetd'i tekrar yeniden başlatıyoruz.
sudo service xinetd restart

Bağlanacağımız bilgisayarın 25. portunun açık olması gerekiyor. 25.port SMTP yani mail gönderme-alma portudur. 25.portu açmak için

sudo iptables -A INPUT -p tcp --dport 25 -j ACCEPT
açık portları görüntelemek için;
netstat -plnt

daha sonra

telnet ip_no 25

mesaj gönderme kısmında bir değişiklik yok

mail from:yasemin@localhost
rcpt to:diğerbilgisayardakikullanıcı@localhost
data
subject:deneme
deneme
.
quit



İsterseniz mailleriniz için bir mail kutusu oluşturabilirsiniz;

sudo postconf -e "home-mailbox= Maildir/"

Şuana kadar 25. port üzerinde çalıştık , eğer 587.port üzerinde çalışmak isterseniz

/etc/postfix/master.cf dosyasınına
587  inetd  n  -   n  -  -  smtpd
satırını ekleyip sonra postfix'i yeniden başlatmanız gerekiyor.

sudo nano /etc/psotfix/master.cf

satırını ekliyoruz;
587      inet  n       -       n       -       -       smtpd

Yeniden postfix'i başlatmak için;

sudo /etc/init.d/postfix restart



Umarım yararlı bir paylaşım olmuştur.
İlerleyen yazılarımda görüşmek üzere
Herkese iyi çalışmalar