Skip to content

Instantly share code, notes, and snippets.

@jaywax
Created December 11, 2018 14:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jaywax/7fbd3d5d4eec100819327b42ee9f8013 to your computer and use it in GitHub Desktop.
The part of pf.conf talking about anchor
anchor "tab_enfants_all_wif" in on $wif_if from <TAB_ENFANTS_WIF> to <INTERNET> tag TO_INTERNET {
anchor tcp proto tcp to port { http, https, $boombeach_jeux_port, $unknown_jeux_ports, $yokai_jeux_ports } {
block log quick
}
anchor udp proto udp to port { $pixel_gun3d_jeux_ports } {
block log quick
}
}
anchor "tel_enfants_all_wif" in on $wif_if from <TEL_ENFANTS_WIF> to <INTERNET> tag TO_INTERNET {
anchor tcp proto tcp to port { http, https } {
block log quick
}
anchor udp proto udp to port { $pixel_gun3d_jeux_ports } {
block log quick
}
}
anchor "pc_jeux_wif" in on $wif_if from { $asus_rose_wif, $obiwan_wif } to <INTERNET> tag TO_INTERNET {
anchor tcp proto tcp to port { $minecraft_jeux_ports, xmpp-client } {
block log quick
}
anchor udp proto udp to port { 3478:3479, 3544, 5060:5062, 6250, 9000:9200, 12000:65000 } {
block log quick
}
}
anchor "obiwan_web_wif" in on $wif_if from $obiwan_wif to <INTERNET> tag TO_INTERNET {
anchor tcp proto tcp to port { http, https} {
block log quick
}
# Just a hack because flux.ksh loads tcp and udp...
anchor udp proto tcp to port { http, https} {
block log quick
}
}
anchor "tab_college_all_wif" in on $wif_if from $tab_college_wif to <INTERNET> tag TO_INTERNET {
anchor tcp proto tcp to port { http, https, 7801 } {
block log quick
}
anchor udp proto udp to port { ntp } {
block log quick
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment