Next Previous Contents

5. Problhmata

Yparxoyn ena swro pragmata poy mporei na mhn pane kala me thn efarmogh twn odhgiwn enos aplou keimenoy san ayto edw, epeidh yparxoyn polles eidikes periptwseis. H pleiochfia twn pi8anwn problhmatwn estiazetai sth ru8mish toy eswterikou kai toy ejwterikou diktuoy. 8a prospa8hsw n' apantw se anagnwstes me problhmata, na katanow to ti den phge kala, kai na pros8etw links edw sto telos, wste osoi exoyne eidikhs morfhs problhmata, na mporoun na broyn boh8eia. Epikoinwnhste eleu8era mazi moy sto pramsey@refractions.net.

5.1 To ICQ den doyleuei

Merika kommatia toy ICQ doyleuoyn mia xara me to maskarisma. Kapoia alla den doyleuoyn ka8oloy kala. Wstoso, yparxei ena beta quality ICQ module ypo anaptyjh, poy asxoleitai me merikes (alla oxi oles) apo tis elleiceis ths leitoyrgias toy ICQ mazi me maskarisma. To arxeio README mesa ston kwdika source, perigrafei pws na kanete compile to module. Afou to kanete compile kai to egkatasthsete, kaleste to : /sbin/modprobe ip_masq_icq.

5.2 Exw Caldera 2.x, oxi RedHat 6.x

Loipon, prwta ta sygxarhthria moy poy th spate sth moda! Deuteron, o Nelson Gibbs (ngibbs@pacbell.net) stelnei kala nea, epeidh oi perissoteres apo tis odhgies efarmozontai kai sto diko sas Linux. Wstoso, yparxoyn merikes shmantikes allages poy prepei na kanete :

  1. Mia dhlwsh GATEWAY=xxx.xxx.xxx.xxx sto arxeio /etc/sysconfig/network-scripts/ifcfg-eth0 & eth1 gia th sundesh (h topikh sundesh xrhsimopoiei th dieu8ynsh IP ths makrinhs sundeshs, kai h makrinh sundesh xrhsimopoiei to IP ths gateway toy ISP).
  2. Bebaiw8eite oti to /etc/sysconfig/daemons/dhcpd script deixnei to ROUTE_DEVICE ws eth1, oxi eth0.
  3. To /etc/dhcpd.conf apaitei mia dhlwsh ypodiktuoy (subnet) kai gia tis duo kartes. Den jerw akribws to giati, ka8ws ekana th deuterh dhlwsh : subnet 216.102.154.201 netmask 255.255.255.255 { } xwris alles parametroys, kai o DHCP server akouei kai stelnei stis eth0 kai eth1, ka8ws kai sthn epistrofh (fallback). O DHCP server bgazei mhnyma sfalmatos, ean orisoyme mono to ena ypodiktyo.
  4. Mhn pros8esete host route 255.255.255.255, to /etc/rc.d/init.d/dhcpd script poy xrhsimopoiei h Caldera dior8wnei to problhma apo mono toy. Bebaiw8eite pws allajate oles tis anafores sto eth0 toy script se eth1.

5.3 8elw enas apo toys eswterikous H/Y moy na ginei o Web server moy

Paneukolo! Wstoso, prepei na exete statikh dieu8ynsh IP, gia na exoyn apotelesma aytes oi aples odhgies. Ean exete dynamikh dieu8ynsh IP, 8a xreiasteite akomh kamposh doyleia sta scripts, gia na sigoyrecete to oti h IP dieu8ynsh sas ananewnetai me tis entoles prow8hshs paketwn, otan h dieu8ynsh allazei.

Na 8ymaste oti h prow8hsh mias ejwterikhs 8uras pros enan eswteriko H/Y metatrepei ton "eswteriko" H/Y se ligotero "eswteriko" ap' o,ti prin, alla mporei na ginei diafanws kai me elaxisth ptwsh ths apodoshs. Ena apo ta pleonekthmata toy kwdika maskarismatos mesa ston pyrhna toy Linux, einai h ikanothta na kanoyme merika entypwsiaka pragmata me ta paketa poy ftanoyne sto epipedo toy diktuoy, kai h utility ipmasqadm grafthke gia na ekmetalleytei akribws ayta.

Gia kapoio logo, h ipmasqadm den symperilambanetai se oles tis parallages toy RedHat kai toy Mandrake, ara mallon prepei na thn paroyme apo to web site toy programmatisth ths - yparxei ena paketo RPM dia8esimo ekei, ka8ws kai o source kwdikas.

Afou parete to RPM, egkatasthste to, kai meta pros8este tis ejhs grammes sto /etc/rc.d/rc.local arxeio sas :

 /usr/sbin/ipmasqadm portfw -f 
 /usr/sbin/ipmasqadm portfw -a -P tcp -L x.x.x.x 80 -R 192.168.1.x 80 
 

H prwth entolh adeiazei toys kanones prow8hshs 8uras (port forwarding rules), kai h deuterh pros8etei mia prow8hsh apo th 8ura 80 ths ejwterikhs sundeshs pros th 8ura 80 toy eswterikou H/Y. Shmeiwste oti h ejwterikh statikh dieu8ynsh IP paei sth 8esh toy x.x.x.x , kai h dieu8ynsh IP toy eswterikou H/Y paei sth 8esh toy 192.168.1.x .

Twra, oi ejwterikes aithseis gia th 8ura 80 8a staloun diafanws sth 8ura 80 toy eswterikou mhxanhmatos. Shmeiwste oti den mporeite na to testarete ayto me telnet, h me sundesh sth 8ura 80 ths gateway sas apo enan apo toys eswterikous H/Y sas : O prow8hths 8uras apokrinetai mono se eiserxomenes aithseis pros thn ejwterikh sundesh.


Next Previous Contents