I've set up a small server that runs FreeBSD and it has dual NICs and it's acting as my router and firewall, using ISC dhcpd and BSD pf.
I have a VoIP adapter (turns VoIP into analog PSTN standard) and a IPTV decoder which are both connected to my LAN. They quest for IP and they accept the offers they get. The problem is that they ask for more information that I can't give them right off the bat. The information that they need are obtained from VLAN 845 for IPTV and VLAN 855 for VoIP.
I've set up virtual interfaces with my WAN interface as the parent interface and dhclient can obtain the extra info required. I want to relay the extra DHCP options from the dhclient's VLAN lease information. I've looked into /sbin/dhclient-script and enter-hooks but that doesn't make me any wiser. I used tcpdump to see what it is that the two devices request over DHCP. I looked up dhcrelay but it doesn't seem to help me as I want to keep the two devices in my LAN and only relay certain fields. The information requested is successfully obtained by dhclient.
Is this even remotely possibly in BSD?
Thanks in advance,