Alex wrote:
On Wednesday 01 August 2007 17:17, Florin Samareanu wrote:
Poti sa pui strategic niste reguli de accept.

???

De asemenea poti folosi chainuri. man iptables.

am precizat ca paginile de manual nu m-au lamurit ... poti sa-mi dai un exemplu cum ai scrie tu regula asta intr-o singura expresie:

$IPTABLES -A POSTROUTING -t nat -o $EXTDEV -s $INTNET -d nici 10.0.100.0/24 si nici 192.168.13.0/24 -j SNAT --to-source $IP_EXTDEV

iptables -s 10.0.100.0/24 -j ACCEPT
iptables -s 192.168.13.0/24 -j ACCEPT
iptables -j SNAT --to-source  $IP_EXTDEV

--
"A computer will not make a good manager out of a bad manager.
It makes a good manager better faster and a bad manager worse faster."
    Ed Esber, president, Ashton-Tate, 1986


_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui