Fie mashina 2.4.x cu adresa 10.10.10.254
Se da de asemenea mashina 2.2.x cu adresa 10.10.10.1. Netmaskul retelei
este 255.255.255.0

iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -d 10.10.10.1 --dport 80 -j
SNAT --to 10.10.10.254

iptables -t nat -A PREROUTING -s 10.10.10.0/24 -d ! 10.10.10.0/24 --dport
80 - DNAT --to 10.10.10.1

In plus a se studia FAQ-ul squid-ului pentru a vedea cum se seteaza
squid-ul pentru transparent proxy.

[EMAIL PROTECTED] wrote:

> salut,
> Cum pot sa redirectez tot traficul catre portul 80 (care trece printr-o
> masina cu kernel 2.4.3-iptables) -> catre o alta mashina
> din subretea (kernel 2.2.20-ipchains) pe care am instalat un squid?
> 10x
>
> --
> ---------------------
> Dragos STEFANESCU
>
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui