When it comes to trying to configure something that should be simple like “PORT FORWARDING” in a more complicated corporate firewall, like Dell’s SonicWall, it can sometimes be a bit complicated. There are many guides online that are needlessly complex, and some that are confusing and not helpful at all. I ended up combining a few until I was able to work out a process of my own that seems to work best.
Port forwarding would take traffic coming in to the modem, and FORWARD it along to a specific host (computer) within the network. Remote desktop, for instance, normally listens on port 3389. But, let’s say for example you want to change the port you’re using for Remote Desktop, and say you even have multiple computers you want to configure. Rather than go into the registry of each computer and change the listening port, we can do everything we need to do in the firewall. So not only will we be FORWARDING the traffic, we will be using Network Address Translation (NAT) to change the port before it leaves the firewall.
So for this example, the computers are both listening on the default Remote Desktop Port of 3389, but when I’m traveling, I want to be able to connect to Remote1 by using the port number 66518, and I want to connect to the computer Remote2 by using 66519.
Here’s what to do:
- Log in to your Sonicwall (obviously).
- Click Firewall on the left.
- Click Service Objects on the left.
- SCROLL DOWN so that you do not add a group, and click on the Add button under Services.
- In the Window that comes up, give it a name (Remote1 for example), change the Protocol to TCP(6), and where it says port range, type the single first you want to use as both the beginning and end port number (66518 – 66518). Click add, and repeat these steps for Remote2, 66519-66519.
- Once your Service Objects are added, click the “Wizards” button in the upper right of the page.
- Select Public Server Wizard and click Next.
- Change the server type to Other and select Remote1, then click Next.
- Give it a Server Name (I just used Remote1 again), and enter the internal IP address of the machine you’re passing the services through to (the internal IP, 192.168.x.x). You can skip the comment and click Next.
- This next window should be filled in automatically, if it is, just click Next. If it’s not you can specify your public IP, then click Next.
- Click Apply. Then click Close.
- If necessary, click the add wizard button in the upper right again and repeat for Remote2
And you’re done! Keep in mind that if your Modem is a Modem/Router combo, like something from Verizon, then your “external IP address” in the second to last bullet point under step 6 should be your internal address that was assigned to your SonicWALL from your modem, and then you’ll need to get in to your Verizon modem’s settings and configure the more simplified port forwarding to forward ports to the SonicWALL. You can do these as a group; for example: you could configure port forwarding in the modem to forward the port range 66518-66519 to the SonicWALL’s IP address, and the SonicWALL will treat them as individual services and know which machine (Remote1 or Remote2) to pass the data along to.
Port forwarding is very abstract for many people, and extra complicated through SonicWALL, so I certainly hope I was able to help you out, today!