[Openswan Users] Connecting two private networks by VPN
Craig Chandler
Craig.Chandler at InterDynamics.com
Wed Feb 9 15:17:46 CET 2005
Hi,
Currently i have two private networks seperated by the internet as below
both gateways use iptables
Network 1-------Gateway1(NAT) ............Gateway2(NAT)----Network 2
192.168.0.0 192.168.0.1 int 192.168.0.1 int 192.168.0.0
I want to connect the two networks with a VPN and i have a number of
questions before i get going
1. Do i need to change the gateway 2 internal IP and the internal
network 2 subnet. (ie to 192.168.1.1 and 192.168.1.0)? If i do change
the ip's will windows networking (simple drive sharing etc) still work
2. what NAT rules need to be added if any to the iptables?
3. is the following setup correct
conn %default
authby=rsasig
# Local security gateway and subnet behind it.
left=external_ip
leftsubnet=192.168.0.0/24
leftsourceip=192.168.0.1
leftrsasigkey=%cert
leftcert=shitkicker-cert.pem
auto=add
conn network2
right=external_ip2
rightsubnet=192.168.0.0/24
rightsourceip=192.168.0.1
rightrsasigkey=%cert
rightcert=client-cert.pem
auto=add
--
Craig Chandler
Application Developer
InterDynamics Pty. Ltd.
Adelaide Office: Brisbane Office:
24th Floor, Santos House Level 3, Christie Centre
91 King William St. 320 Adelaide St.
Adelaide SA 5000 Brisbane Qld 4000
Tel: +61 8 8233 5965 +61 7 3229 8300
Fax: +61 8 8233 5858 +61 7 3010 9001
Craig.Chandler at InterDynamics.com
InterDynamics Web Page : http://www.InterDynamics.com
More information about the Users
mailing list