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 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 loopbackThe 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.xxxResolv.conf
nameserver 62.210.xxx.xxx
nameserver 62.210.xxx.xxxHow 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 commandsroute 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 :)
-
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