F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Attack Protection Configuration Guide-6PW100
117
[Firewall-interzone-Trust-Untrust-rule-0] source-ip private
[Firewall-interzone-Trust-Untrust-rule-0] destination-ip webserver
[Firewall-interzone-Trust-Untrust-rule-0] service any_service
[Firewall-interzone-Trust-Untrust-rule-0] rule enable
[Firewall-interzone-Trust-Untrust-rule-0] quit
# Configure another interzone policy rule that uses the content filtering policy template 2 with java
Applet blocking enabled to filter HTTP packets from subnet 192.168.1.0/24 to external networks.
[Firewall-interzone-Trust-Untrust] rule permit content-filter template2
[Firewall-interzone-Trust-Untrust-rule-1] source-ip private
[Firewall-interzone-Trust-Untrust-rule-1] destination-ip any_address
[Firewall-interzone-Trust-Untrust-rule-1] service any_service
[Firewall-interzone-Trust-Untrust-rule-1] rule enable
[Firewall-interzone-Trust-Untrust-rule-1] quit
[Firewall-interzone-Trust-Untrust] quit
219BVerifying the configuration
After the proceeding configurations, LAN users cannot receive HTTP responses that carry keyword abc,
send java applet requests to web servers except to server 5.5.5.5, send emails with .exe attachments,
upload files named abc through FTP, or execute Telnet command reboot.
Use the following command to display statistics:
<Firewall> display content-filtering statistics
Content-filtering statistics:
Item Dropped packets
HTTP URL hostname filtering 0
HTTP URL IP blocking 0
HTTP URL parameter blocking 0
HTTP header filtering 0
HTTP body filtering 3
HTTP ActiveX control blocking 0
HTTP Java blocking 2
SMTP sender filtering 0
SMTP receiver filtering 0
SMTP subject filtering 0
SMTP body filtering 0
SMTP illegal command blocking 0
SMTP oversize email blocking 0
SMTP attachment name filtering 8
SMTP attachment body filtering 0
POP3 sender filtering 0
POP3 receiver filtering 0
POP3 subject filtering 0
POP3 body filtering 0
POP3 attachment name filtering 0
POP3 attachment body filtering 0
FTP command filtering 0
FTP upload filename filtering 3
FTP download filename filtering 0
Telnet command filtering 5