forward for some IPs and SNAT the rest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have a firewall inside my organization, but I want to preserve some source IPs,
and the rest must be SNATed:



host 1 - 192.168.0.1 ------------\
\
\ +--------------+
\| firewall | 193.137.1.1 (ex.) host 2 - 192.168.0.2 ----------------| with |---------------> internet
/| iptables | |
/ +--------------+ |
/ / | internal
host 3 - 192.168.0.3 ------------/ / | routing
/ |
/ v
host 4 - 192.168.0.4 ------------/ license server


the host 1 and host 2 must arrive to the license server with the original IP( 192.168.0.1/2) and the others host must be translated with SNAT into 193.137.1.1.


some help?



P.S: Now every hosts use the SNAT for all, but I want to exclude some of them. --

  :)  cumprimentos
------------------------------------
        Jose Luis Faria
        Universidade do Minho
  /\    Escola de Engenharia
 /\/\   Departamento Informatica
        http://www.di.uminho.pt/~jose

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux