Discussion Locked

VPN device behind Firewall

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Company A has a firewall with NAT at the perimeter, and wishes to add a vpn device into the setup.

Q1) If they want the VPN to behind the firewall, what are the changes that need to be made on the firewall?

Q2) If the vpn is infront of the firewall, is it true that the decrypted packets (after vpn device and before reaching the firewall) can be hacked?

Thank you

4 replies

by mbatty

Q1)If they want the VPN to behind the firewall, what are the changes that need to be made on the firewall?

VPN typically uses port 5000 to establish a connection, so this will be have to be permitted through the Firewall. There is a very useful,free software packet sniffer that runs on any PC called Ethereal at www.ethereal.com that will help you.

Q2) If the vpn is in front of the firewall, is it true that the decrypted packets (after vpn device and before reaching the firewall) can be hacked?

VPN devices usually have two LAN interfaces and are usually placed in a DMZ. One Interface has the encrypted traffic and the other the clean. If you put the VPN device out on the Internet the Clean packets will only be visible on the Ethernet between the VPN server and the Firewall. The only way to see these packets would be to compromise the HUB/SWITCH that this connection is on.

The more important problem is that the Firewall will have to be configured to allow the Clean trafficthrough. This exposes your hosts directly to the Internet. Which is a seriously bad idea.

Put the VPN server behind the Firewall!

by mbatty

Excuse the finger trouble in the answer above. It is indeed port 500 for VPN connections.

I would have concerns about exposing the VPN device directly to the Internet, they are not firewalls. Also, having the Clean side of the VPN device directlyon your Corporate LAN without the protection of a Firewall makes you more vunerable.

The VPN server should be in a DMZ, that is between two firewalls, so you can control what servers and services are available from the Internet.

by mshavrov

What Firewall software/hardware do you have? If it's "official" project, first you should consider establishing VPN using Firewall capabilities. Almost all firewall software allow you to establish VPN sessions, but ins ome cases it may require additional licensing (for example, CheckPoint).

Second point of consideration - what type of VPN do you want to establish (PPTP, IPSec, L2TP, etc.) In which mode will you use (tunnel or transport)? Most of VPN technologies can not live with NAT since IP address is part of encrypted content and if IP address is changed due to NAT, checksum will be different and packet will be dropped.

So, if you put VPN Server behind VPN, you should exclude it from NAT (it's possible with some versions of Firewall). Another thing, you should enable TCP port 500 (not 5000 as in answer #1) and IP protocols 50 and 51 (AH and ESP). But best thing is look your Firewall vendor for their recomendations how to do that.

In case you will connect VPN Server (for example, Cisco VPN Concentrator), recomended connections is: Public interface to Internet (without firewall), and Private interface to Inside LAN (behind firewall). So, in general, it should work "in parallell" with your firewall. And "hacking-proof" should be reached by VPN device itself (like disabling all not required services, uninstalling non-vital software and applying all recommended patches).

Good luck.

by jennchye

If the VPN is behind the firewall with NAT, how can the VPN device be assigned with a public IP assigned?

I was told that there are some VPN that support "one arm configuration". How does these type of setup works?

This discussion is closed to new replies.