View Single Post
  #1   (View Single Post)  
Old 20th August 2012
VoX VoX is offline
New User
 
Join Date: Aug 2012
Posts: 1
Default OpenBSD & IP Forwarding & IP Failover

Hello,

It's nice to find a forum about BSD, I hope I will find a solution to my problem...
First, sorry for my english.

I have a dedicated server with ESX 5 running.
1 Public IP, for the ESX.

I have install, for testing, two virtual OpenBSD
The first one, with 2 networks interfaces.
The second with only one network interface

The goal is to run the first BSD as a FW with IP Forwarding.
It as 2 networks interfaces,
em0 ---> IP Failover with virtual Mac address relied to internet
em1 ---> Local network 192.168.1.1

The second BSD
em0 ---> 192.168.1.2

As you can imagine, i want to add several server connected to a local network with a internet connection through the FW OpenBSD with the 2 networks interface..

I already did that, but with real physical server, and it was working well.

Now, with virtual server it do not work

My first problem was to configure on the FW a gateway that is different from the IP Failover subnet.
But i finally did it like that :
route add -host <<IP_gateway>> -link em0 -iface
route add default -ifa <<Failover_IP>> <<IP_gateway>>

And it work, I can ping any internet IP from the FW
I configure the em1 with 192.168.1.1
I activate ipv4 forwarding in sysctl.conf
I had translation rules into pf.conf and pass all simple rules.

From the second BSD server, which has only one interface 192.168.1.2, I can ping the em1 interface from the FW (192.168.1.1)
But I can't access to internet

It seems the IP Forwarding doesn't work.
Is it because on the FW the default gateway is not in the same subnet than the em0 IP address ?

If someone had any idea about what is happening here ?
Sorry if i'm not clear, I you need more information, just ask !

Thanks !
Reply With Quote