I've got a couple of weeks before I'm at the other site again so I'll try it back to back. Can I used my old DG384GT as the switch?
Sorry... too busy arguing to see the question, I now have a beer and a few hours to kill before bedtime
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
.
Yes. You will need to do the following:
- Install dd-wrt onto your two routers
- Choose 3 subnets, call them A, B and C, A will be the home subnet, B the remote subnet and C represents the internet. They must all be distinct and non-overlapping.
- Router 1 will deal with subnet A, router 2 will deal with subnet B, your DG384GT will deal with subnet C. Note to get VPN working, the two networks at either end of the tunnel must have different subnets. If your home network is 192.168.1.x and the remote network is the same, ONE WILL HAVE TO CHANGE. As an example, how about A=192.168.1.x, B=192.168.2.x and C=192.168.10.x (all with subnet mask 255.255.255.0)
- Setup the 3 routers to have their IP within the appropriate range (if they are all .1, they will probably be easier to remember). E.g. DG384GT=192.168.10.1, router 1=192.168.1.1, router 2=192.168.2.1
- Connect the two router WAN ports to the LAN ports of the DG384GT
- Set the WAN settings on each of router 1 and 2 to be static IPs in the subnet of C (e.g. 192.168.10.10 and 192.168.10.20)
- Somewhere in the diagnostics of dd-wrt there will be a ping page which allows you to ping over the wan. Try pinging the other router. If this does not work, you need to check that dd-wrt has got ICMP echo set to on (it may be labelled ping/ICMP/something else).
If you have this working, you are half way there. The next thing to do is configure the VPN tunnel. To do this, you will need to setup the two routers (one as the VPN server, the other as a slave). There will be lots of tutorials out there to do this. You will probably need to choose a tunnel IP range. I tend to use ones in the 10.0.x.y range, purely for convention.
Once you have successfully built the tunnel (which will include telling each end that you need to route requests for the other ends IP addresses over the tunnel - this may be in the config pages) you should be able to ping across the networks. That is, a machine on network A should be able to ping a machine on network B (try pinging the router IP across the bridge first - e.g. on a computer on network A, ping 192.168.2.1. Once this works, you have a tunnel up and running. You need to be careful to only route the traffic to the other network down the tunnel. Even though the tunnel shares the same physical connection as your internet connection, it is sent to a different machine for further processing. If you do route all traffic down the VPN tunnel, that means you will end up rputing all traffic through the other site, so web requests from the salve site will go to the server site, then be fulfilled and then sent back - you will introduce a significant delay AND start eating any data limits you have!
Now to name resolution. If you want to be able to address a machuine by name rather than IP address, you will need to make sure you have local DNS services running on the two machines. dd-wrt has a DNS service which also allows DHCP machines to update the address table. Think of two domain names (I use .home and .shop). If you setup the DNS servics properly, any machine on the home network should then be addressable from network A by its name followed by .home. E.g. if you have a machine called server, it would be pingable by the name server.home from any other machine on the same network (network A).
Unfortunately, machines on network B will only be able to ping the servers IP address since the DNS server on router B doesn't know how to resolve the names of type xxxx.home. The way you do this is to tell the DNS server to query the DNS server at the other end of the tunnel if it sees a xxxx.home request. I'm not sure how you do this in dd-wrt, but it will be possible.
Yes, I know this sounds daunting, but one step at a time and it will come together. Whichever method you use to create a tunnel, you would still need to go about creating most of the above. It is also likely to take many hours of reading and understanding - you will make mistakes and you will end up bashing your head against a wall several times.
BTW: anyone who says it isn't that complex either hasn't set up a fully working VPN tunnel OR has setup most of the infrastructure (like getting stuff working/having working DNS servers) before attempting to configure the VPN network.
If you have any questions, ask away - I don't know the dd-wrt interface well, so may only be able to give pointers, but once you have it working, I'm sure you will have learned a lot and feel a great sense of achievement
Or put a hammer through both routers and decided that rotating disks really is the best way to proceed
![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)