Navigation
Table of Contents
Guide That Contains This Content
[+] Expand All
[-] Collapse All
Example: Walled Garden as a Service Filter
Service filters are configured under the firewall and are not specific to captive portal content delivery. The following example shows a walled garden with one server, which is the captive portal:
[edit firewall family inet]root@host# show
service-filter walled {term 1 {from {destination-address {100.20.2.3/32; ## this is the address of captive portal}destination-port 80;}then skip; ## skip service DPC for http traffic## destined to captive portal}}
The following example shows a walled garden within a subnet:
service-filter walled-net {term 2 {from {destination-prefix-list {100.20.2.0/24; ## '100.20.2.0/24' is not defined}}then skip;}}
The following example shows the configuration of an IPv6 walled garden:
[edit services captive-portal-content-delivery]rule walled-garden {match-direction input-outputterm 1 {from {destination-address 2001:2002:0:1::/64; ## captival portal
resides heredestination-port 80;}then {accept;}}}

