Re: Connecting an host with a subnet to a LAN with different subnet

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

 



On 08/27/08 13:27, DI BACCO ANTONIO - technolabs wrote:
I have a LAN with a given subnet, let us say: 192.168.0.0/24 with a lot of hosts. Now I want to connect another host (PLUTO) with an interface that has address 10.10.10.1 and netmask 255.255.255.0. I can't change this ip address but I want to insert some iptables rules on PLUTO to translate both source and dest ip address of the packets it receives to subnet 10.10.10.0/24 and viceversa. I think that target NETMAP can help me, but I'm getting confused.

Silly question, why not add the 192.168.0.0/24 network to PLUTO? I.e. make PLUTO be multihomed in both the 10.10.10.1 network and the 192.168.0.0/24 network?

Also, unless you need to map multiple IPs across from one network to the other I think I'd recommend that you only NAT the one IP that PLUTO is using to avoid potential conflicts.

Even with NETMAP and / or NATing I think you are going to have PLUTO (or what ever system does the NETMAP / NATing) have an interface in both networks.



Grant. . . .
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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