Hi,
I'm currently in the process of setting up the network connections of some VMs running FreeBSD 9.1. They have an ethernet interface with a static IP (e.g 192.168.1.1) and default gateway (e.g. 192.168.1.254) set. I have also created a loopback adapter with a static IP (e.g. 1.2.3.4) and 255.255.255.255 subnet mask.
Inbound connections for the 1.2.3.4 address work fine but outbound connections are always sourced from the 192.168.*.* IP and therefore fail. Is there any way of forcing outbound connections to use 1.2.3.4/loopback as the source address/interface?
I have managed to get it working with some services, BIND for example supports the query-source flag but not all services give me this option so was wondering if there was anything I can set in ifconfig or PF?
Any help would be most appreciated!
I'm currently in the process of setting up the network connections of some VMs running FreeBSD 9.1. They have an ethernet interface with a static IP (e.g 192.168.1.1) and default gateway (e.g. 192.168.1.254) set. I have also created a loopback adapter with a static IP (e.g. 1.2.3.4) and 255.255.255.255 subnet mask.
Inbound connections for the 1.2.3.4 address work fine but outbound connections are always sourced from the 192.168.*.* IP and therefore fail. Is there any way of forcing outbound connections to use 1.2.3.4/loopback as the source address/interface?
I have managed to get it working with some services, BIND for example supports the query-source flag but not all services give me this option so was wondering if there was anything I can set in ifconfig or PF?
Any help would be most appreciated!