I am attempting to create a virtual network on VMware using FreeBSD as a router and a firewall. I am relatively new to many of the concepts involved here. I have FreeBSD currently setup as a DHCP server on my vlan(I will eventually switch to static networking), it is issuing addresses on a 10.10.10.0/24 network. It receives its IP from a DHCP server on a 192.162.254.0/24 network(I have no control over this server). I would like to use NAT to allow my FreeBSD virtual machine to bridge these two networks.
My /etc/rc.conf file looks like this:
I would be willing to create a subnet of the 192.168.254.0/24 network, but since it's managed by a DHCP server I don't have access to, I don't know how to setup the addresses.
My /etc/rc.conf file looks like this:
Code:
hostname="virtualrouter"
keymap="us.kbd"
#em0 points to external network
ifconfig_em0="DHCP"
sshd_enable="YES"
dumpdev="AUTO"
zfs_enable = "YES"
#cloned_interfaces="bridge10"
#em1 points to my internal virtual network
ifconfig_em1="inet 10.10.10.0 netmask 255.255.255.0 up"
gateway_enable="YES"
dhcpd_enable="YES"
dhcpd_ifaces="em1"