View Single Post
Old 28th July 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

hostname.if is a many-splendid thing - part II


Code:
# pg /etc/hostname.tun0
inet 169.254.235.1 255.255.255.252 169.254.235.2 group jabberwalkie
!/sbin/route add 169.254.235.0/24 169.254.235.1
#
Code:
/etc/pf.conf

#
pass in log quick on jabberwalkie inet \
 from <wherever> to (jabberwalkie:network) \
 flags S/FSRA keep state ...
#
pf will -- now -- parse correctly whether tun0 is up or down. The () change state will be detected appropriately.
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote