Q: Restricting traffic to particular ports doesn't allow the PA to do its application signature thing (does it). A: Incorrect. The application signature works at all time, however what you define in the service column will of course be the first tests to the traffic (if srczone/srcip/dstzone/dstip/service doesnt match the traffic wont be checked for appid). I would strongly recommend you to NEVER set service=any but rather service=application-default or, if possible, set it to the ports you really need. For example TCP22 for appid=ssh (if you run your ssh-server at TCP22 that is). Q: On the other hand an "any application, on any port" policy seems to be a bit too permissive. A: Yes and you need to keep that in mind. Depending on protocol it can take two or more packets in each direction before the appid is successfully identified (this is why I strongly recommend anyone to NOT use service=any). One way to limit the effects is if you (as one of the first rules) setup an action=deny for traffic identified as appid=unknown, unknown-tcp, unknown-udp, unknown-p2p. Q: Are there supersets of applications? A: Not that im aware of out of the blue (uhh scratch that, you can use application filtering to use supersets of applications since applications are classified into categories, subcategories and risks). When it comes to appid thats one of the tricky things to learn when it comes to a NGFW. In PA case a flow/session can only be identified as one appid at a time (but it can switch appid during its lifetime). This gives that if you allow only web-browsing (and nothing else) and visit youtube (which has its own appid) - when the appid switches from web-browsing into youtube the traffic will be blocked (unless you allow youtube or an application filter where youtube is included in). Q: Do web-browsing and ssl include say google and gmail? If not what do they allow exactly? A: Se above. The will identify web-browsing which isnt already identified as some other app. Same with ssl. If the traffic is gmail the identified appid will be gmail. But if the traffic is a new ssl based communication which PA currently doesnt have an appid for the result will be that the flow/session is identified as ssl. Workarounds: 1) Do what Sandeep described. Setup an application filter where webbased applications are included along with appid=web-browsing. If you combine this with an action=deny for unknown traffic then only webbased traffic which the PA can identify will be able to pass through. 2) Another method (if you still want to allow unknown for some reason) is to create an IPS signature that will block traffic if the request doesnt contain http-method=GET||HEAD||POST (or whatever http methods you wish to allow).
... View more