Next Previous Contents

1. Setup

  1. Breite to ``Bridge Config'':
    ftp://shadow.cabi.net/pub/Linux/BRCFG.tgz
  2. Energopoihste pollaples ethernet syskeyes bazontas to parakatw sto /etc/lilo.conf, kai jana-trexontas to lilo:
    append = "ether=0,0,eth1"
            
    
    An exete treis syskeyes sth gefyra balte to parakatw anti twn anw:
    append = "ether=0,0,eth1 ether=0,0,eth2"
            
    
    Perissoteres syskeyes mporoun na proste8oun me perissoteres dhlwseis ether. Enas etoimos pyrhnas caxnei gia mia karta kai molis th brei stamata to cajimo. Me thn parapanw entolh synexizei na caxnei kai meta thn prwth karta. Anti twn anw, mporeite na xrhsimopoihsete thn parakatw parametro ekkinhshs:
    linux ether=0,0,eth1
            
    
    H me 3 syskeyes:
    linux ether=0,0,eth1 ether=0,0,eth2
            
    
  3. Anametalwttiste ton pyrhna me to BRIDGING energopoihmeno.
  4. H gefyra de 8a prepei na exei IP dieu8ynsh. MPOREI na exei alla mia aplh gefyra den thn xreiazetai. Gia na afairesete thn IP dieu8ynsh apo th gefyra sas, phgainete sto /etc/sysconfig/network-scripts/ (gia RedHat susthma) kai antigracte to ifcfg-lo0 se ifcfg-eth0 & ifcfg-eth1. Sta duo ayta arxeia allajte th grammh poy periexei to ``DEVICE=lo'' se ``DEVICE=eth0'' kai ``DEVICE=eth1''. Alles dianomes mporei na diaferoyn, kante o,ti xreiazetai! An exete panw apo duo syskeyes sth gefyra sigoyreyteite na dior8wsete oles tis ry8miseis.
  5. Epanekkinhsh, wste na exete ton neo pyrhna kai janasigoyreyteite oti h gefyra den exei IP diey8unseis.
  6. Molis to susthma jekinhsei, balte tis ethernet kartes se promiscuous mode, wste na elegxoyn otidhpote pernaei apo aytes:
    ifconfig eth0 promisc ; ifconfig eth1 promisc
            
    
    Oles oi kartes poy einai na synde8oun se gefyra prepei na mpoyn se promiscuous mode.
  7. Energopoihste to bridging xrhsimopoiwntas to programma brcfg:
    brcfg -ena
            
    
  8. Bebaiw8eite oti yparxei diaforetikh kinhsh se ka8e tmhma:
    tcpdump -i eth0      (in one window)
    tcpdump -i eth1      (in another window)
            
    
  9. Trejte ena sniffer h to tcpdump se allo mhxanhma gia na deite oti h gefyra apokoptei ta tmhmata kanonika.

Next Previous Contents