Go Premium for a chance to win a PS4. Enter to Win


Windows Firewall not protecting IP Routing?

Posted on 2009-05-06
Medium Priority
Last Modified: 2012-05-06
I was setting up OpenVPN so that I can access my work LAN from the outside (Currently using MS VPN).  In order to access the LAN via OpenVPN, they say you have to enable IP routing on the openVPN server (which is XP Pro SP2), see http://openvpn.net/index.php/documentation/howto.html#scope
This worked fine, however once I enabled IP routing not only the VPN clients can route to my LAN, but every machine in my DMZ can now route to the LAN.  I have the XP Firewall set to only allow access to the openVPN port 1194 and only from my PIX 501 (which NATs in a public IP).  A machine in my DMZ can route to my internal LAN just by adding a route through the openVPN server.  They can't ping the openVPN server, they can't access any files or services on the openVPN server, but they can still route through it.  They can ping through it, they can do remote desktop through it.  Thus if any of my DMZ machines were compromised, they would have clear access to my LAN, which kind of defeats the point of a DMZ.  Is this a bug?  Did I do something wrong?  See attached picture for config.
Question by:JohnBPrice
  • 3
  • 2
  • 2
LVL 19

Accepted Solution

BLipman earned 1000 total points
ID: 24321460
Would it be safer to take VPN users into a separate VLAN and route that traffic into your LAN?  I think you might have better control over routing by having that extra layer between the protected side and your incoming VPN users.  
Our company is getting rid of all IPSec VPN usage as we can.  We are changing over to a Juniper SSL VPN; you can do much more to control exposure to your network this way.  

As for the routing, are you running dynmic routing protocols?  Perhaps OpenVPN is participating in RIP for example?  You may need to configure a passive interface if such an idea exists for the OpenVPN device.  
LVL 71

Expert Comment

ID: 24323173
How is it possible that a machine on DMZ has access to the OpenVPN server?
LVL 19

Expert Comment

ID: 24326889
I think your VPN server is routing traffic once you enabled it, I may be wrong though: "however once I enabled IP routing "
WatchGuard Case Study: Museum of Flight

“With limited money and limited staffing, we didn’t have a lot of choices in terms of what we could do to bring efficiency. WatchGuard played a central part in changing that.” To provide strong, secure Wi-Fi access within the museum, Hunter chose to deploy WatchGuard’s AP120 APs.

LVL 16

Author Comment

ID: 24335545
BLipman: A VLAN is an interesting idea, I don't think the PIX 501 does VLAN's, but my internal LAN switch does, maybe there is something I can work out with that idea.

RE: Dynamic routing protocols and RIP, the problem is not that the routing occurs, but that the Windows Firewall doesn't control it.

BTW, OpenVPN is not IPSEC, it is SSL. (and it's free, which is currently a constraint of mine)

Olemo, my Pix 501 does not have separate inside and DMZ zones, I'm faking a DMZ with a second (elCheapo home use) firewall between the PIX and the LAN.  This ElCheapo firewall doesn't do more than one NAT.  Thus in order to VPN in, I have to pass the PIX, and then either pass the ElCheapo, or bypass the ElCheapo, which is what I was trying to achieve with OpenVPN.  I can put the OpenVPN server is inside and port forward to that, thus eliminating the need for routing, but I would have to have an inbound public IP routed to the ElCheapo and I am not really comfortable with that.  I can't switch the ElCheapo with the PIX 501, because as I said, the ElCheapo doesn't do more than one NAT so I couldn't have multiple servers inside my DMZ.  Any suggestions would be welcome.

BLiman, I'm quite sure it is not the OpenVPN VPN software.  It is quite clearly when I enable routing on the box, the Windows (POS) firewall doesn't control the routing.
LVL 71

Assisted Solution

Qlemo earned 1000 total points
ID: 24335644
Yes, that's true for sure. The XP firewall has no info about routing, it is applied to a single interface, and can act on incoming IP addresses or ports only. No use here. You could try to use more sophisticated software firewalls like Comodo, but I think you are going the wrong way. The problem with fake-DMZ is that you do not have real protection, as you see.

LVL 16

Author Comment

ID: 24335897
"The problem with fake-DMZ is that you do not have real protection, as you see."

Better options?

Right now, I do have VPN access which I believe is pretty safe, but has issues.  What I do now is use Cisco VPN to get through the PIX, and then port forward MS VPN packets to an inside Windows Server, which then you then get through using MS VPN.  The PIX doesn't allow MS VPN packets in unless they come through the Cisco VPN, and the only way into the LAN is MS VPN packets which go directly to the MS Server.  If a DMZ machine got compromised, the MS VPN will still protect the LAN.  I think it is pretty safe, but it is slow as a dog being double VPN, plus I want to get rid of the MS VPN.

What I would like to achieve is:
- A single VPN to get to the LAN
- The LAN is still protected even if one of my DMZ machines get compromised.
- Use either Cisco VPN or OpenVPN clients (I am trying to be able to administer my machines with my Nokia N810 which has only Cisco and OpenVPN clients)
- Must be free (or nearly so).  I already have the Cisco VPN licenses, so that is fair game.  This is strictly for fun and my convenience, so I can't really justify spending much.

What would think if I put the OpenVPN inside the LAN (one NIC), have the PIX forward only port 1194 from a dedicated IP address to the ElCheapo but not require the Cisco VPN, and have the ElCheapo port forward the 1194 packets to the open VPN?  If a DMZ machine got compromised, they would still have to break either the ElCheapo or the OpenVPN, since only 1194 packets would get through?  Anyone could send 1194 packets into my LAN, exposing the OpenVPN to DoS attacks, but I might be able to set the PIX to detect and stop them.

I would prefer to use just the Cisco VPN client, since OpenVPN is apain and I already understand the Cisco VPN, but I can't figure out asafe way to do it.

LVL 16

Author Closing Comment

ID: 31578716
Looks my question is now dead to the world, so points for helping.

Featured Post

Lessons on Wi-Fi & Recommendations on KRACK

Simplicity and security can be a difficult  balance for any business to tackle. Join us on December 6th for a look at your company's biggest security gap. We will also address the most recent attack, "KRACK" and provide recommendations on how to secure your Wi-Fi network today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

At the beginning of the year, the IT world was taken hostage by the shareholders of LogMeIn. Their free product, which had been free for ten years, all of the sudden became a "pay" product. Now, I am the first person who will say that software maker…
How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question