Troubleshoot Site to Site VPN on Sonicwall Routers

By | March 2, 2016

How to Install, Configure and Troubleshoot Site to Site VPN on Sonicwall

Site to Site VPN between 2 Sonicwall routers is fairly easy to configure using the wizards on both routers. There are 100 guides out there how to do this but I found this one from the Dell site the most useful – HERE

BUT if you are inexperienced in configuring them then there is 1 big issue that might leave you tearing your hair out. I will explain below the issues (and SOLUTION) when I configured my Site to Site VPN on 2 Sonicwall routers.

Example Situation (I faced myself)

Site to Site VPN Sonicwall - Install, Configure, Troubleshooting

Site to Site VPN Sonicwall – Install, Configure, Troubleshooting

Situation is you have configured the VPN and you see the GREEN status on both routers.

Everything looks good, you go to the diagnostic menu on Site A router ( and ping the router at Site B ( and it replies it is Alive!

You do the same test on the router at Site B ( and ping the router at Site A ( and it is Alive!

Everything seems as simple as the 100 step by step guides say it should be, until…..

You are on Site A router ( and you try to ping the server on Site B (…. ping fails… what the hell…

Now you think there must be a firewall rule blocking the ping on one of your routers (Site A or Site B). Checking them all it looks fine..

OK so how about a local ping… From Site B router ( you ping the Site B Server ( and it works!

Check out -  How to Install MariaDB on Centos 6

You then ping locally from the Server at Site B ( to the router at Site B ( and it works!

Locally at Site B therefore everything looks fine.

You do the same tests on Site A between Server and router both ways and all works.

So your issue only happens when you pass through the Site to Site VPN tunnel.

Head hurting yet?? Dont worry the solution is simple.

What we didnt say much earlier, was that Site A Server ( has 2 interfaces in it (eth0 local, eth1 public)

When we want to talk through the VPN from Site A to Site B we are trying to speak from network to network.

Site A Server has no idea where network is, it knows about its public external ip from eth1, it also knows about its local network from eth0, so we have to tell it how to get to

To get to Site B we want to tell the server to use our local network ( and push requests to our Site A router (

Create the following file /etc/sysconfig/network-scripts/route-eth0 and put in the following –


That says for all traffic trying to get to then send it to (our local Site A router) then the VPN will work its magic and get to the remote end

After creating the file you need to restart the network –

service network restart

The key to this whole problem and solution was multiple network interfaces. It will not happen on a standard pc with only 1 interface as ALL traffic has no choice but to use the single interface. But on a multi-interface system then you need to tell it how to get there.

Check out -  Bash remove duplicate lines without sorting

We can add 1 other element to the overall situation (should be becoming clearer now anyway), and that is you have multiple Site to Site VPNs.

If you had a Site C with router, server, pc the same just using network, then in /etc/sysconfig/network-scripts/route-eth0 you would simply add another route to the file like this –


And restart your network to pick up the new route –

service network restart

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.