Hi, On 07 05 19, lotr wrote: > However, i didn't find any configuration sample on pf in the website. > When i check the man page of hoststated, it stated that need to use > rdr-anchor in pf. > I have tried to put in the rdr-anchor in my pf.conf file, however, it > doesn't work. > If it do work, will i expect list of alive host when i use pftcl -t <table> > command ?
hoststated(8) is your friend for pf config (one line ;) for checking how hoststated works, try: pfctl -a "hoststated/*" -sA ^ shows anchors created (for services, described in hoststated.conf) for use in later pfctl queries ;) pfctl -a "hoststated/www" -sn ^ shows redirect rule for www service in hoststated.conf (assuming you have www service ;) pfctl -a "hoststated/www" -t www -Ts ^ shows table named after service in defined anchor. Paulius