I have a VM running FreeBSD that I have been playing around with packet filter on lately. I am using DHCP to assign my VM its IP address. My VM uses a bridged connection with the host. I move my host around day to day to different networks which of course use different gateways.
I was wondering if there is a easy generic way that I can refer to the DHCP server address in my pf.conf rules, without knowing this address before hand? Without having to use "from any" in my rule.
For example (for port 68 bootpc - I want to allow in the DHCP response message):
Is there a property of "$int_if" that I can use to refer to the interfaces DHCP gateway?
I was wondering if there is a easy generic way that I can refer to the DHCP server address in my pf.conf rules, without knowing this address before hand? Without having to use "from any" in my rule.
For example (for port 68 bootpc - I want to allow in the DHCP response message):
Code:
pass in on $int_if inet proto udp from any to port 68
Is there a property of "$int_if" that I can use to refer to the interfaces DHCP gateway?
Last edited by a moderator: