Hi,
I'm setting up a server that will have two NICs and each NIC will exist on completely separate networks. One is on the Internet side, the other is on a private network not on the Internet. I want to create a jail on the Internet side that will basically have no knowledge of the private network's side.
To accomplish this, I've created the jail and added pretty restrictive devfs rules. However, one thing I can't figure out is how to limit the Internet side's knowledge of the other interface.
The jail's interface is em1. Ideally, I'd like it to not be able to see em0, but I can't figure out how to do it with devfs.rules. By allowing /dev/bpf and using tcpdump, I can verify that the jail currently has access to em0.
How do I limit my jail's access to em0? I'd prefer not to have to use pf/firewall rules if I can avoid it. There should be a way to do it with limiting devices.
Any help would be greatly appreciated.
I'm setting up a server that will have two NICs and each NIC will exist on completely separate networks. One is on the Internet side, the other is on a private network not on the Internet. I want to create a jail on the Internet side that will basically have no knowledge of the private network's side.
To accomplish this, I've created the jail and added pretty restrictive devfs rules. However, one thing I can't figure out is how to limit the Internet side's knowledge of the other interface.
Code:
jail# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:0c:29:88:e6:24
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:0c:29:88:e6:2e
inet 192.168.0.10 netmask 0xffffffff broadcast 192.168.0.10
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
The jail's interface is em1. Ideally, I'd like it to not be able to see em0, but I can't figure out how to do it with devfs.rules. By allowing /dev/bpf and using tcpdump, I can verify that the jail currently has access to em0.
How do I limit my jail's access to em0? I'd prefer not to have to use pf/firewall rules if I can avoid it. There should be a way to do it with limiting devices.
Any help would be greatly appreciated.