Solved Bridging dissimilar networks/NAT configuration

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:
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"
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.
 
I would like to use NAT to allow my FreeBSD virtual machine to bridge these two networks.
You need to read up on your TCP/IP skills. NAT and bridging are two different concepts. NAT works on layer 3 (it changes source or destination IP addresses and/or ports), bridging works on layer 2.
 
ifconfig_em1="inet 10.10.10.0 netmask 255.255.255.0 up"
In Network /24 you can't use ip address 0. The first valid IP address is "1" aka 10.10.10.1

change it to:
ifconfig_em1="inet 10.10.10.1 netmask 255.255.255.0 up"

 
Back
Top