12-18-2022 07:27 PM - edited 12-18-2022 07:43 PM
> show pbf rule all
Rule ID Rule State Action Egress IF/VSYS NextHop NextHop Status
========== ===== ========== ======== =============== ======================================= ==============
ISP2_webac 1 Active Forward ethernet1/2 172.16.31.1 UP
> show running pbf-policy
ISP2_webaccess {
id 1;
from trust;
source any;
destination any;
user any;
application/service [ ftp/tcp/any/21 web-browsing/tcp/any/80 ];
action Forward;
symmetric-return no;
forwarding-egress-IF/VSYS ethernet1/2;
next-hop 172.16.31.1;
terminal no;
}
> test pbf-policy-match from trust application web-browsing source 192.168.0.7 destination 93.184.216.34 protocol 6 destination-port 80
ISP2_webaccess {
id 1;
from trust;
source any;
destination any;
user any;
application/service [ ftp/tcp/any/21 web-browsing/tcp/any/80 ];
action Forward;
symmetric-return no;
forwarding-egress-IF/VSYS ethernet1/2;
next-hop 172.16.31.1;
terminal no;
}
> show session all filter pbf-rule ISP2_webaccess
--------------------------------------------------------------------------------
ID Application State Type Flag Src[Sport]/Zone/Proto (translated IP[Port])
Vsys Dst[Dport]/Zone (translated IP[Port])
--------------------------------------------------------------------------------
9873 web-browsing ACTIVE FLOW NS 192.168.0.7[4015]/trust/6 (172.16.31.2[7914])
vsys1 93.184.216.34[80]/ISP2 (93.184.216.34[80])
> show session id 9873
Session 9873
c2s flow:
source: 192.168.0.7 [trust]
dst: 93.184.216.34
proto: 6
sport: 4015 dport: 80
state: INIT type: FLOW
src user: unknown
dst user: unknown
pbf rule: ISP2_webaccess 1
s2c flow:
source: 93.184.216.34 [ISP2]
dst: 172.16.31.2
proto: 6
sport: 80 dport: 7914
state: INIT type: FLOW
src user: unknown
dst user: unknown