cred:
iptables  -t nat -A POSTROUTING -s 192.168.0.0/24  -j SNAT --to-source
192.168.03.1
eu am altfel:
ip route add 172.16.12.0/24 dev eth1

iptables -t nat -A POSTROUTING -s 172.16.12.0/16 -j MASQUERADE

daca te ajuta la ceva..


----- Original Message ----- 
From: "marianciuc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 20, 2003 1:21 PM
Subject: [rlug] Iptables care se "blocheaza"


> Buna,
>
> Pe un server, iptables-ul are urmatoarea regula pentru translatare, ca
> sa dau
> acces la internet calc-urilor din retea:
> "iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 \
> -j SNAT --to-source 192.168.03.1"
>
> Este OK, merge treba, dar periodic se blocheza translatarea, sau nu stiu
> cum sa-i spun,
> si moare accesul statiilor la internet.
> Cert este ca, cu "service iptables restart" isi revine, totul la normal.
>
> Se poate altfel, sau se poate imbunatati comanda ?
>
> Multumesc
>
>
>
> -------------------------------------------------------
> Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV
AntiVirus.
> Xnet automatically scans all messages for viruses using RAV AntiVirus.
>
> Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate
variantele lor.
> Va rugam sa luati in considerare ca exista un risc de fiecare data cand
deschideti
> fisiere atasate si ca MobiFon nu este responsabila pentru nici un
prejudiciu cauzat
> de virusi.
>
> Disclaimer: RAV AntiVirus may not be able to detect all new viruses and
variants.
> Please be aware that there is a risk involved whenever opening e-mail
attachments
> to your computer and that MobiFon is not responsible for any damages
caused by
> viruses.
>
>
> --- 
> Detalii despre listele noastre de mail: http://www.lug.ro/
>


--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui