masq doar unde exista interfata cu ip real, nu inainte ... nu inteleg de ce trebuie masq de doua ori?!
sapte ----- Original Message ----- From: "Bucur Marian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 11, 2004 1:34 AM Subject: [rlug] Masq.. problems. > Hello folks > So..am o retzea interna care iese printr-un serv ce are 2 interfetze. > interf interna:192.168.2.x interf ext 192.168.98.2. La randul ei interf > ext se leaga prin vdsl la 192.168.98.1.. care e interfatza interna pentru > alt server.. care care adresa de ip ext publica de tipul 213.154.x.x > In primul serv am reust masq adreselor de tip 192.168.2.x. > Problema: pachtele de reteaua 192.168.2.x nu pleaca trec de 213.154.. > etc..Adica ajung pe serv al 2-lea masq dar de acolo mu mai sunt inca o > data masq. > tabela de routare pt serv 2 > 213.154.138.0 www.websat.ro 255.255.255.128 UG 0 0 0 > eth0 > 213.154.138.0 * 255.255.255.128 U 0 0 0 > eth0 > 10.0.1.0 10.0.1.1 255.255.255.0 UG 0 0 0 > eth1 > 10.0.1.0 * 255.255.255.0 U 0 0 0 > eth1 > 192.168.1.0 ns.firma.websat 255.255.255.0 UG 0 0 0 > eth1 > 192.168.1.0 * 255.255.255.0 U 0 0 0 > eth1 > 192.168.98.0 192.168.98.1 255.255.255.0 UG 0 0 0 > eth2 > 192.168.98.0 * 255.255.255.0 U 0 0 0 > eth2 > 192.168.99.0 192.168.99.1 255.255.255.0 UG 0 0 0 > eth1 > 192.168.99.0 * 255.255.255.0 U 0 0 0 > eth1 > 127.0.0.0 * 255.0.0.0 U 0 0 0 lo > default gw.websat.ro 0.0.0.0 UG 0 0 0 > eth0 > Am bagat si regula de ipchains (pe serv2): > ipchains -A forward -s 192.168.98.0/255.255.255.0 -d 0.0.0.0/0.0.0.0 -j > MASQ > Cum arata un traceroute pe serv 1: traceroute www.rol.ro > traceroute to www.rol.ro (82.137.12.50), 30 hops max, 38 byte packets > 1 192.168.98.2 (192.168.98.2) 3000.538 ms !H 3000.253 ms !H 2997.206 > ms !H > Si se opreste > tabela de routare pe serv 1 > Destination Gateway Genmask Flags Metric Ref Use > Iface > 192.168.2.0 * 255.255.255.0 U 0 0 0 > eth0 > 192.168.98.0 * 255.255.255.0 U 0 0 0 > eth1 > 127.0.0.0 * 255.0.0.0 U 0 0 0 lo > default 192.168.98.2 0.0.0.0 UG 0 0 0 > eth1 > > Orice sugestie e binevenita. Thanks > > > > --- > Detalii despre listele noastre de mail: http://www.lug.ro/ > > --- Detalii despre listele noastre de mail: http://www.lug.ro/
