[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] Masquerading successif sur reseaux prives
Gerd-Christian Michalke wrote:
>
> La situation:
>
> ISP ---- 212.45.98.1| A |192.168.0.1-------192.168.0.100| B|192.168.1.1--- LAN
>
> ISP = ok
> A premier routeur/masquerade IP officielle/192.168.0.0
> B deuxieme masquerade reseau prive/reseau prive 192.168.0.0/192.168.1.0
>
> En clair:
> j'ai un raiseau 192.168.0.0 connecte a internet via du masquerading.
> Est-il possible de faire du masquerading entre le reseau prive 192.168.0.0
> et 192.168.1.0
>
> Le but etant que qqun sur le reseau 192.168.1.0 puisse utiliser internet
et si tu ajoutais un
hostA # ipchains -A forward -s 192.168.1.0/24 -j MASQ
a ton deja existant
hostA # ipchains -A forward -s 192.168.0.0/24 -j MASQ
et que tu definissais une route de ton A vers ton B pour le 192.168.1 ?
hostA# (p)route add -net 192.169.1.0 netmask 255.255.255.0 eth?
et que ton B ait pour Gateway ton A
# // ca tu sait faire n'est ce pas
et que si ca marche je suis fort !
et que ci sa marche pas tu fesais grand usage de tcpdump pour tracer tes
packet !
>
> Pour ceux qui se demandent pourquoi, c'est dans le cadre d'un workshop
> linux qui se tient actuellement a bruxelles, et c'est dans un but
> didactique
>
> Un grand merci a l'avance,
> Bien a vous
> Gerd
>
> ---------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
> Archive of the list: http://tania.be.linux.org/
--
Linux : May the sources be with you !
KeyLinux
Alain Spineux
Linux System Engineer
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/