Skip to content

Instantly share code, notes, and snippets.

@barn
Created November 5, 2014 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barn/b68a3aff7cc025750f4c to your computer and use it in GitHub Desktop.
Save barn/b68a3aff7cc025750f4c to your computer and use it in GitHub Desktop.
if_em0="vlan100"
if_em1="vlan101"
if_maje="vlan20"
if_admin="vlan140"
if_be="vlan150"
if_be_dmz="vlan160"
if_be_wlan="vlan180"
# Interfaces externes
external_ifs="{" $if_em0 $if_em1 "}"
# Toutes les interfaces
all_ifs="{" $if_em0 $if_em1 $if_maje $if_admin $if_be $if_be_dmz $if_be_wlan "}"
pass out quick on $all_ifs proto tcp from any to 192.168.1.100 port 10000 flags S/SA keep state
pass out quick on $all_ifs proto udp from any to 192.168.1.100 port 10000
pass in quick on $all_ifs proto udp from any to 192.168.1.100 port 10000
pass in quick on $all_ifs proto tcp from any to 192.168.1.100 port 10000 flags S/SA keep state
pass out quick on $all_ifs proto tcp from 192.168.1.100 port 10000 to any flags S/SA keep state
pass out quick on $all_ifs proto udp from 192.168.1.100 port 10000 to any
pass in quick on $all_ifs proto udp from 192.168.1.100 port 10000 to any
pass in quick on $all_ifs proto tcp from 192.168.1.100 port 10000 to any flags S/SA keep state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment