Transparent Firewall/Filtering Bridge - pfsense 2.0.2. By William Tarrh



Similar documents
PFSENSE Load Balance with Fail Over From Version Beta3

Shield Pro. Quick Start Guide

F-SECURE MESSAGING SECURITY GATEWAY

Best Practices: Pass-Through w/bypass (Bridge Mode)

Setting up Sharp MX-Color Imagers for Inbound Fax Routing to or Network Folder

DSL-G604T Install Guides

STATIC IP SET UP GUIDE

Dramatically simplifying voice and data networking HOW-TO GUIDE. Bundle Quick Start Guide

Configuring NXT Hardware with Mercury Inside into Doors.NET TM Application Note

NF3ADV VoIP Setup Guide (for TPG)

Multi-Homing Security Gateway

SevOne NMS Download Installation and Implementation Guide

Hosting more than one FortiOS instance on. VLANs. 1. Network topology

emerge 50P emerge 5000P

V310 Support Note Version 1.0 November, 2011

F-Secure Messaging Security Gateway. Deployment Guide

Installation of the On Site Server (OSS)

Setting up pfsense as a Stateful Bridging Firewall.

Core Protection Suite

Configuring PA Firewalls for a Layer 3 Deployment

Setting the Management IP Address

Barracuda Link Balancer Administrator s Guide

Setting Up Scan to SMB on TaskALFA series MFP s.

STATIC IP SET UP GUIDE VERIZON 7500 WIRELESS ROUTER/MODEM

How to Configure an Initial Installation of the VMware ESXi Hypervisor

Wireless G Broadband quick install

Setting Up Sharp MX-Color Imagers To Scan To

NF5 VOIP Setup Guide (for Generic)

ISERink Installation Guide

Virtual Appliance Setup Guide

Configuring PPP And SIP

1. Set Daylight Savings Time Create Migrator Account Assign Migrator Account to Administrator group... 4

Virtual Web Appliance Setup Guide

Configuring an IP (SIP) Polycom Soundstation on the Avaya IP Office

Configuring a customer owned router to function as a switch with Ultra TV

SSL-VPN 200 Getting Started Guide

Altor Virtual Network Security Analyzer v1.0 Installation Guide

CYAN SECURE WEB APPLIANCE. User interface manual

HOMEROOM SERVER INSTALLATION & NETWORK CONFIGURATION GUIDE

(1) Network Camera

Multi-Homing Dual WAN Firewall Router

SIP-6002 User Guide SIP User Guide

How To - Configure Virtual Host using FQDN How To Configure Virtual Host using FQDN

Dynamic DNS How-To Guide

Firewall VPN Router. Quick Installation Guide M73-APO09-380

Setup a transparent firewall /filtering bridge with pfsense

Using the NetVanta 7100 Series

Chapter 9 Monitoring System Performance

Sophos UTM Software Appliance

GX-V. Quick Start Guide. Microsoft Hyper-V Hypervisor. Before You Begin SUMMARY OF TASKS. Before You Begin WORKSHEET VIRTUAL GMS SERVER

Quick Installation Guide

UIP1868P User Interface Guide

ADTRAN 3120 / 3130 Internet Configuration Guide

HRG Performance Series DVR DDNS Support Application Note (hrgddns)

NETWORK SETUP INSTRUCTIONS

How to configure your Thomson SpeedTouch 780WL for ADSL2+

Broadband Phone Gateway BPG510 Technical Users Guide

1:1 NAT in ZeroShell. Requirements. Overview. Network Setup

Cyberoam Virtual Security Appliance - Installation Guide for XenServer. Version 10

Penetration Testing LAB Setup Guide

Enabling NAT and Routing in DGW v2.0 June 6, 2012

Installing and Configuring vcloud Connector

Front LEDs... 2 Rear Ports... 3 BASIC INSTALLATION... 4 Connecting Your Router... 5 Network Configuration... 6

NF1Adv VOIP Setup Guide (for Pennytel)

LifeSize UVC Manager TM Deployment Guide

Configuring a BEC 7800TN Wireless ADSL Modem

Virtual Managment Appliance Setup Guide

Customer Tips. Configuration and Use of the MeterAssistant Option. for the user. Purpose. Xerox Device Configuration. Xerox Multifunction Devices

Deployment Guide: Transparent Mode

BaseManager & BACnet Manager VM Server Configuration Guide

Plesk 11 Manual. Fasthosts Customer Support

Knowledgebase Solution

Port Forwarding your Router for Use with a Network DVR

This article describes a detailed configuration example that demonstrates how to configure Cyberoam to provide the access of internal resources.

Fonality. Optimum Business Trunking and the Fonality Trixbox Pro IP PBX Standard Edition V p13 Configuration Guide

How to deploy console cable to connect WIAS-3200N and PC, to reset setting or check status via console

VoIPon Tel: +44 (0) Fax: +44 (0)

D-LINK DPH-140S SIP PHONE INSTALLATION GUIDE

First Installation Guide

Positron G-320 Business Phone System Setup Guide

Full Install Setup Guide Actiontec F2250 Gateway

User Manual. Page 2 of 38

CPEi 800/825 Series. User Manual. * Please see the Introduction Section

NF1Adv VOIP Setup Guide (for Generic VoIP Setup)

System Area Manager. Remote Management

Connecting EWS using DDNS

Broadband ADSL2+ Modem DM111PSPv2

F-Secure Internet Gatekeeper Virtual Appliance

iboss Enterprise Deployment Guide iboss Web Filters

Chapter 3 Security and Firewall Protection

Acellus Lab Cart. User s Manual. Version 4B. Acellus Corporation Copyright 2010 Acellus Corporation. All Rights Reserved.

Actiontec GT784WN Router

Chapter 4 Customizing Your Network Settings

V Series Rapid Deployment Version 7.5

How to connect your new virtual machine to the Internet

Opera 240 System DECT Integration. with Gigaset N720 IP PRO Base Station. and Gigaset N720 DM PRO Manager. Installation and User Guide

Savvius Insight Initial Configuration

Version 0.1 June Xerox WorkCentre 7120 Fax over Internet Protocol (FoIP)

If you re not using Citrix XenCenter 6.0, your screens may vary. Required Virtual Interface Maps to... mgmt0. virtual network = mgmt0 wan0

AP6511 First Time Configuration Procedure

Transcription:

Transparent Firewall/Filtering Bridge - pfsense 2.0.2 By William Tarrh Version 2 February 6, 2013 1

Transparent Firewall/Filtering Bridge - pfsense 2.0.2 This how to is an updated version of Trendchiller s 2007 How to Setup a transparent firewall /filtering bridge with pfsense based on pfsense 1.0-PREBETA2-BUG-VALIDATION-EDITION. My contribution to this project is documenting what has been noted by others on the pfsense forum, walking in Trendchiller s footsteps and the submission of the document itself. Special thanks to Chris Buechler, Scott Ullrich and all of those who contribute to the pfsense Forum. I would also like to thank Dr. Jeff Rattray who helped me work through some of the kinks in this project. 2

Contents Hardware Requirements and Setup Page 4 Initial Setup Page 4 pfsense GUI Login Page 4 Firewall WAN - Anti-Lockout Rule Page 4 Configure WAN Interface Page 5 Enable and Configure LAN Interface Page 5 Enable and Configure the Bridge Page 6 Enable the Filtering Bridge Page 7 Enable Manual outbound NAT rule generation (AON Advanced Outbound NAT) Page 8 Configure Hostname, Domain, DNS servers, Time zone, and NTP time server Page 8 Reboot pfsense Firewall Page 8 Restrict Access to the Management Interface Page 9 Overview and Understanding of the Transparent Bridge Page 11 3

1. Hardware Requirements and Setup a. Two compatible NIC s for the LAN and WAN interfaces. pfsense Hardware Compatibility 2. Initial Setup a. Upon completing a fresh installation of pfsense a restart will be required. After the first reboot you will be greeted with Do you want to set up VLANs now [y n]? Select No. b. Next you will be requested to select your WAN interface or select a for auto detection. Select your desired WAN interface card from the list. Next you will be asked to select your LAN interface card. Press Enter, we will configure this interface later. c. At the welcome screen only setup the WAN interface. Assign this adapter a static address or use the assigned DHCP address; we will use this address to configure the firewall from this point on. 3. pfsense GUI Login a. Open a browser window and enter the IP address assigned to the pfsense WAN interface. The default username and password are admin and pfsense. 4. Firewall WAN - Anti-Lockout Rule a. First, let s be sure not to get locked out of the WAN interface by setting up our own temporary anti-lockout rule. Navigate to Firewall -> Rules. By default the Anti- Lockout rule is applied to the WAN interface as seen below. As soon as the LAN interface is enabled this Anti-Lockout rule will be migrated automatically to the LAN interface. 4

b. To create a new rule, select the + on the bottom right-hand corner. This will take you to the Rules: Edit page. In the Rules: Edit create a rule that resembles the screen shot below. The rule below will allow all traffic to access the WAN interface. Keep in mind this is a temporary rule. Select Save and then Apply Changes. 5. Configure WAN Interface a. Navigate to Interfaces -> WAN and scroll down to Static IP configuration. In the Gateway field select add a new one and enter your Gateway. b. Navigate to System -> General Setup ; add your hostname, Domain and DNS Servers. To the right of your DNS servers select your Gateway from the dropdown menus. 6. Enable and Configure LAN Interface a. Navigate to Interfaces -> (assign). Select the + and then select your LAN interface. Now select Save and then Apply Changes. 5

Navigate to Interfaces -> LAN. In General configuration check the Enable Interface box. The screen will auto populate. Be sure that Type is set to None. Save and Apply Changes. 7. Enable and Configure the Bridge a. Now that our LAN and WAN interfaces are enabled and configured we can create the Bridge. Navigate to Interfaces -> (assign) from the menu and then select the Bridges tab to the far right. Select the + to navigate to Bridge:Edit. b. In Bridge: Edit hold the Ctrl key on your keyboard and select the WAN and LAN so they are both highlighted. Assign your Bridge a name in the Description field. Select Save and then Apply Changes. 6

c. Navigate to Interfaces -> OPT1. In General configuration check the Enable Interface box. The screen will auto populate. You can also change the interface description at this point, I have changed mine from OPT1 to Bridge. Be sure that Type is set to None. Save and Apply Changes. 8. Enable the Filtering Bridge a. In the menu navigate to System -> Advanced and select the System Tunables tab. b. Locate the net.link.bridge.pfil_bridge in the Tunable Name column and double-click it. c. In the Value field change this from Default to 1. Select Save and Apply Changes. 7

9. Enable Manual outbound NAT rule generation (AON Advanced Outbound NAT) a. From the menu select Firewall -> NAT and the Outbound tab. b. Click Manual outbound NAT rule generation (AON Advanced Outbound NAT) and select Save. Delete any rules that auto-populate in the mappings area. 10. Configure Hostname, Domain, DNS servers, Time zone, and NTP time server. a. From the menu select System -> General Setup. b. Most fields can be left default but be sure to configure your DNS server and NTP time server. 11. Reboot pfsense Firewall a. In order to fully apply all changes reboot your pfsense firewall by going to Diagnostics -> Reboot. In this menu select Yes. 8

12. Restrict Access to the Management Interface a. This documentation was taken from doc.pfsens.org, I found it to be very helpful. I configured the access restrictions on the LAN and WAN interfaces. http://doc.pfsense.org/index.php/restrict_access_to_management_interface If you use a restrictive ruleset on your LAN, make sure it permits access to the web interface before continuing. Now disable the anti-lockout rule by going to the System -> Advanced page and checking the "Disable webgui anti-lockout rule" box. Click Save and the rule will be removed. 9

Now I suggest adding a network alias for management access, and if you use both web and SSH administration, add an alias for those ports. Now add a firewall rule allowing the sources defined in your management alias to the destination LAN address, with the port used or alias created for those using multiple ports. Make sure this rule comes first in the list. Then add a rule based on that rule (the + next to the rule), changing action to block or reject (I prefer reject on internal networks), source to any, and destination the same. When finished your ruleset should look like the following. Apply your changes and your management interface is now restricted to only the defined hosts. 10

13. Overview and Understanding of the Transparent Bridge I use the WAN as the management interface because I was unable to reach anything external, obtain updates or browse packages when the LAN or Bridge was configured as the management interface. Treat the LAN and WAN interfaces as you would a standard firewall, keep in mind that the default action in the transparent bridge is to block all traffic unless explicitly allowed in the firewall. You will only need to setup rules on the LAN and WAN, I have yet to touch the Bridge. Generally a standard firewall will allow the LAN to ANY by default; allowing anything on the LAN outbound. In this transparent bridge scenario you MUST create a rule to allow your LAN outbound. As stated above the default behavior of the transparent bridge is to block unless explicitly allowed. Cheers! 11