Book Image

OpenVPN 2 Cookbook

Book Image

OpenVPN 2 Cookbook

Overview of this book

Table of Contents (19 chapters)
OpenVPN 2 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Bridging—Windows


This recipe will demonstrate how to set up a bridged OpenVPN server on Windows. Bridging on Windows is slightly different from Linux or UNIX, but the concept is the same.

This recipe is very similar to the previous recipe, apart from the different methods used to set up bridging.

Getting ready

We use the following network layout:

Set up the client and server certificates using the first recipe from Chapter 2, Client-server IP-only networks.

For this recipe, the server computer was running Windows XP and OpenVPN 2.1.1. The client computer was running Fedora 12 Linux and OpenVPN 2.1.1. For the Linux client, keep the client configuration file example3-1-client.conf at hand.

How to do it...

  1. Create the server configuration file:

    proto udp
    port 1194
    dev tap
    dev-node tap-bridge
    
    server-bridge 172.30.0.50 255.255.255.0 172.30.0.80 170.32.0.250
    ca       "c:/program files/openvpn/config/ca.crt"
    cert     "c:/program files/openvpn/config/server.crt"
    key      "c:/program files/openvpn/config...