LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ip mapping in openvpn network (https://www.linuxquestions.org/questions/linux-networking-3/ip-mapping-in-openvpn-network-695814/)

ohcarol 01-08-2009 04:43 AM

ip mapping in openvpn network
 
Hello all,

I have connected two office through openvpn using openwrt. Is it possible to map Office B LAN ip to Office private A LAN IP? My network scenario is:

Office A
Public IP: 202.XX.XXX.10
Lan IP: 192.168.1.1
MAP IP: 192.168.1.2

Office B
Public IP: 202.XX.XXX.11
LAN IP: 192.168.2.1
Desktop PC: 192.168.2.2

Now I have job to map Office B desktop PC ip 192.168.2.2 to 192.168.1.2. so that when I want to access 192.168.2.2 computer I can telnet 192.168.1.2 ip instead of 192.168.2.2. Is is possible with with iptables rules?


All times are GMT -5. The time now is 08:14 AM.