networking via proxy ???

Kyriakos Oikonomakos kiriakos at obscurenet.com
Fri Feb 25 18:34:05 EET 2005


On Fri, 2005-02-25 at 18:03 +0200, Symeonidis Alexandros wrote:
> Tha ithela na kanw to eksis:
> 
> inet >> box1 >> box2 << inet
> 
> dld na rithmiso to box2, na bori na stili paketa mono mesw tu box1, ke na
> fenete os to box1, ala na borun na to prospelasun ke os box2 apefthias apo
> to inet...
> 
> vevea tha pite pos to na to kalis px sto ip tu box2 ke na su apantai os box1
> de steki, omos den thelw afto...
> 
> thelw na liturgi kanonika san na ine standalone se ola,
> ektos apo otan to idio prokite na xrisimopiisi to net...
> (px for updates, etc...)
> 
> 
Mia lysh (an to link pros to internet einai koino gia to box1 kai box2)
einai h parakatw:

[Internet]----[(eth0) box1 (eth1)]----[(eth0) box2]

kane ena ethernet bridge metaksy eth0:box1 kai eth1:box1.
Etsi olo to traffic gia to box2 tha pernaei transparently apo to box1,
to box2 tha exei thn dikia tou ip klp klp klp kai an thes mporeis na
kaneis kai filtering ton paketwn ...

http://bridge.sourceforge.net/
http://bridge.sourceforge.net/links.html
http://www.tldp.org/HOWTO/Ethernet-Bridge-netfilter-HOWTO-5.html


An apo thn allh exeis diaforetika links pros to internet tote kane 
to ekshs

[Link 1(eth0)]----+              
                  |[box1(eth2)]----[box2]
[Link 2(eth1)]----+              

Kane configure to nat wste by default oti paketa erxontai apo to
box2 tha vgainoun mesw tou box1 sto link1 kai oti paketa erxontai apo to
link2 tha anakateuthinotai sto box2. Otan to connection me to box 2 mesw
tou link2 pragmatopoih8ei tote anagkastika oi apanthseis apo to box2
pros ta eksw gia to connection auto tha pane apo to link2.

http://www.netfilter.org/documentation/HOWTO//NAT-HOWTO.html


PS: Den eimai (poly) kakos anthrwpos. Tha se voithisw an prosekseis ti 
tha rwthseis.

-- 
Kyriakos Oikonomakos <kiriakos at obscurenet.com>




More information about the Linux-greek-users mailing list