Networking Forums

Networking Forums > Computer Networking > Linux Networking > NAT to virtual network on a vpn-gateway

Reply
Thread Tools Display Modes

NAT to virtual network on a vpn-gateway

 
 
lasseboo
Guest
Posts: n/a

 
      06-02-2005, 01:59 PM
hi,

we got a ipsec-box here that´s set up to tunnel to another
vpn-gateway. the users on the LAN behind the other ("remote", "right")
vpn-gateway are using 10.10.x.x addresses and they want us to use
addresses from 10.10.x.x so that they can reach our local machines via
routing decisions on their vpn-gateway (apparently a cisco-box).

the problem is that we are on a 192.168.x.x-network.

I was able to set up the vpn-tunnel so that a client-box from the
remote lan with f.ex. 10.10.1.5 can ping 192.168.0.5 on our lan.
when the packets are passing through my vpn-gateway I have to change
the source-IP because it is not the default gateway of my network.

$iptables -t nat _A POSTROUTING -s 10.10.1.0/24 -j SNAT --to-source
192.168.0.8

that works fine.

but now the other side wishes to connect to f.ex. 10.20.1.5 when they
in fact want to connect to 192.168.0.5 on my lan. how is it possible to
"translate" an ipaddress 10.20.1.5 to 192.168.0.5 on my vpn-gateway?

I tried it with

$iptables -t nat -A PREROUTING -d 10.20.1.5 -j DNAT --to-destination
192.168.0.5

but that does not work. the only thing I can see is on the
WAN-interface of my vpn-gateway that 192.168.0.5 wants to go back via
the internet to the other vpn-gateway and of course that cant work :-(

any suggests?

thanx a lot in advance!


lasseboo

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulated NAT Traversal on Virtual Box | Two Virtual Interface - eth-0/eth1 Sumit Linux Networking 0 06-24-2011 01:09 AM
Network problem on Virtual PC's Gene. Windows Networking 5 11-22-2008 03:20 AM
Virtual/invisible Internet gateway? Roy T Windows Networking 4 01-19-2006 02:12 PM
VNC (Virtual Network Computing) Saruri.SMKN1Brebes@gmail.com Linux Networking 6 07-22-2005 09:48 AM
Virtual network device =?UTF-8?B?RGF2aWQgVmlkYWwgUm9kcsOtZ3Vleg==?= Linux Networking 1 07-15-2003 04:15 PM



1 2 3 4 5 6 7 8 9 10 11