Hello,
i am setting up a bsd router with ipfilter.
My external network is on em0 with pppoe and an dynamic ip address via pppoe/dhcp.
I already checked the manual but i could not find an predefined variable to get the interface IP in a ipf rule set.
With a static wan IP i would create a rule like this
But as this is a normal DSL Connection my wan address keeps changing. So i need a way to automatic update the interface IP in the rule set.
Is there a way to achieve this ?
Best regards
i am setting up a bsd router with ipfilter.
My external network is on em0 with pppoe and an dynamic ip address via pppoe/dhcp.
I already checked the manual but i could not find an predefined variable to get the interface IP in a ipf rule set.
With a static wan IP i would create a rule like this
pass in log quick on em0 proto tcp from 1.2.3.4 to 77.18.22.78 port = 22 flags S keep state
But as this is a normal DSL Connection my wan address keeps changing. So i need a way to automatic update the interface IP in the rule set.
pass in log quick on em0 proto tcp from 1.2.3.4 to em0.ip port = 22 flags S keep state
Is there a way to achieve this ?
Best regards