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

    Pfsense virtualbox linux

    Scheduled Pinned Locked Moved Russian
    2 Posts 2 Posters 1.1k Views
    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.
    • E
      eip
      last edited by

      Здравствуйте!
      Нужна помощь в решении такого вопроса.
      на debiane установлен virtualbox а в него инсталлирован pfsense.
      так вот в сети нашел большое количество описания настройки сетевых адаптеров, но все они в основном если virtualbox  установлен на винду
      вот

      http://www.seczone.ru/index.php/stati/12-virtualization/31-pfsense

      в частности один из примеров.
      но как настроить сетевые карточки под debian, особенно интересует та на которой поднят интерфейс WAN, который смотрит в интернет.
      не очень бы хотелось открывать доступ к тем ресурсам которые крутятся на компе. что нужно прописать для этого интерфейса в настройках?
      фактически требуется что бы из сетевой карты трафик шел сразу в интерфейс pfsense.

      1 Reply Last reply Reply Quote 0
      • werterW
        werter
        last edited by

        так вот в сети нашел большое количество описания настройки сетевых адаптеров, но все они в основном если virtualbox  установлен на винду
        вот

        Плохо искали - https://www.google.com.ua/search?client=opera&q=debian+virtualbox+pfsense&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest

        P.s. В одной из статей по ссылке выше (https://forums.virtualbox.org/viewtopic.php?f=7&t=49499&sid=742f574e18cf62bbcc4165768fa3bede&start=15) :

        Re: pfSense in VirtualBox on Ubuntu

        by RAND0M1ZER » 18. May 2012, 02:09
        YES! I got it working after almost a week of fiddling!

        Turns out the reason the WAN interface was not getting an IP is because it was not configured in the Ubuntu host. You need to make sure there is an entry in your /etc/network/interfaces file for every network card you intend to use.

        Here is what my file looks like:

        # This file describes the network interfaces available on your system
        # and how to activate them. For more information, see interfaces(5).
        
        # The loopback network interface
        auto lo
        iface lo inet loopback
        
        # The primary network interface
        auto eth0
        iface eth0 inet static
        address 0.0.0.0
        
        auto eth0:1
        iface eth0:1 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        gateway 192.168.0.1
        dns-nameservers 192.168.0.1
        
        # The WAN interface
        auto eth1
        iface eth1 inet static
        address 0.0.0.0
        

        Note: The static ip addresses 0.0.0.0 are so that those interfaces (which are bridged to pfsense) don't try and get an IP.

        Huge thanks to Perryg!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.