PFsense on ESXI with Failover Ip

  • Hello,

    First my english is not so good sry  :-[

    I want a VM on my ESXI server with PFsense ( Router )

    but the PFsense Router have no access to the internet.

    I have a Failover IP from ( my server provider ).

    I know, how I have to "fix" it in debian and Windows

    here a my settings from debian.

    This file describes the network interfaces available on your system

    and how to activate them. For more information, see interfaces(5).

    source /etc/network/interfaces.d/*

    The loopback network interface

    auto lo
    iface lo inet loopback

    The primary network interface

    auto eth0
    iface eth0 inet static
      address ( the failover ip )
      broadcast ( the failover ip)
      post-up route add dev eth0 ( default Gateway )
      post-up route add default gw
      post-down route del dev eth0
      post-down route del default



    How do I implement it in pfsense so the pfsense router has a internet connecten ?

    regards  LordExtreme

  • more or less the same way.
    the first time you have to login via ssh and use the same commands

    route add -net -iface XYZ
    route add default

    after you have done this, your VM should be able to reach the internet.
    now go to the packet-manager, search for "shellcmd" and install it.

    After the installation go to Services -> shellcmd
    add 2 new entries:

    1. entry:

    command: route add -net -iface XYZ
    Shellcmd-Type: shellcmd
    Description: Route for gateway

    2. entry:

    command: route add default
    Shellcmd-Type: shellcmd
    Description: add default-gw 

    if you now restart your pfsense-vm, shellcmd will execute this 2 commands and your firewall will be able to connect to the system.

    I haven't setup any shellcmd for shutdown. That's not really nice, but doesn't really matter in most cases :)

    I hope this helps :)

  • Its work fine

    PFsense can access the internet , but loses the connection after 10-20 sec and its not coming back :-(

    And i can´t ping my server from my home pc