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

    PFsense on ESXI with Failover Ip

    Scheduled Pinned Locked Moved Virtualization
    3 Posts 2 Posters 2.3k 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.
    • L
      LordExtreme
      last edited by

      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 online.net ( 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 212.xx.xxx.xx ( the failover ip )
        netmask 255.255.255.0
        broadcast 212.xx.xxx.xx ( the failover ip)
        post-up route add 62.210.xxx.xxx dev eth0 ( default Gateway )
        post-up route add default gw 62.210.xxx.xxx
        post-down route del 62.210.xxx.xxx dev eth0
        post-down route del default 62.210.xxx.xxx

      Resolv.conf

      nameserver 62.210.xxx.xxx
      nameserver 62.210.xxx.xxx

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

      regards  LordExtreme

      1 Reply Last reply Reply Quote 0
      • W
        wedge1001
        last edited by

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

        
        route add -net 62.210.xxx.xxx -iface XYZ
        route add default 62.210.xxx.xxx
        
        

        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 62.210.xxx.xxx -iface XYZ
        Shellcmd-Type: shellcmd
        Description: Route for gateway
        
        

        2. entry:

        
        command: route add default 62.210.xxx.xxx
        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 :)

        1 Reply Last reply Reply Quote 0
        • L
          LordExtreme
          last edited by

          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

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