Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    PfSense as VirtualBox guest… Host networking issues

    Virtualization
    1
    1
    1542
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      talz13 last edited by

      So this is what I'm trying to do:

      1. Set up pfSense as a VirtualBox VM running on my Ubuntu server as the FW/Router.
      2. Have the pfSense VM be the DHCP server for my home LAN.

      Unfortunately, this doesn't seem possible without setting up a static IP / routing on my Ubuntu host.  If I have eth0 (the LAN card) set for DHCP, the boot process will hang waiting for network config since the pfSense VM is not up yet.  Eventually it moves on, but eth0 is not configured.

      I tried setting up eth0 to be a static IP, etc., and that fixed most of the issue.  This is how I configured eth0:

      # The primary network interface
      auto eth0
      iface eth0 inet static
              address 192.168.1.2
              netmask 255.255.255.0
              gateway 192.168.1.1
              dns-nameservers 192.168.1.1
      
      

      Where 192.168.1.1 is the LAN address of the pfSense VM.

      But when I try to ping from the Ubuntu host to a website, I get:

      jeff@server:~$ ping google.com
      PING google.com (74.125.228.101) 56(84) bytes of data.
      From server.home (192.168.1.2) icmp_seq=1 Destination Port Unreachable
      From server.home (192.168.1.2) icmp_seq=2 Destination Port Unreachable
      From server.home (192.168.1.2) icmp_seq=3 Destination Port Unreachable
      ^C
      --- google.com ping statistics ---
      3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
      
      

      Here's the output of the route command on the Ubuntu host:

      jeff@server:~$ route
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
      default         pfSense.home    0.0.0.0         UG    100    0        0 eth0
      192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
      jeff@server:~$
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Products

      • Platform Overview
      • TNSR
      • pfSense
      • Appliances

      Services

      • Training
      • Professional Services

      Support

      • Subscription Plans
      • Contact Support
      • Product Lifecycle
      • Documentation

      News

      • Media Coverage
      • Press
      • Events

      Resources

      • Blog
      • FAQ
      • Find a Partner
      • Resource Library
      • Security Information

      Company

      • About Us
      • Careers
      • Partners
      • Contact Us
      • Legal
      Our Mission

      We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

      Subscribe to our Newsletter

      Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

      © 2021 Rubicon Communications, LLC | Privacy Policy