This article describes the issue of wrong configuration of the firewall filter leading to an unstable OSPF network. Even if firewall filter allows the passing of OSPF traffic, drop action may drop the OSPF traffic because of the wrong configuration. If the filter has been set on an OSPF interface or RE, then the LSA does not reach to kernel and the OSPF network will be unstable.
The destination-port statement of the firewall filter simply checks the 2nd two byte just after the IP header; it does not check the protocol field in the IP header. So if you need to filter HTTP, the configuration should specified as a protocol:
firewall { filter drop_HTTP { term 1 { from { protocol [ tcp udp ]; destination-port http; } then { discard; } } term 2 { then accept; } } }
firewall { filter drop_HTTP { term 1 { from { destination-port http; } then { discard; } } term 2 { then accept; } } }
firewall {
filter drop_HTTP { term 1 { from { destination-port http; } then { discard; } } term 2 { then accept; } } }
Note : This behavior affects not only OSPF, but also all other IP protocols.
this is a simple configuration issue and caused by lack of protocol type.
Specify the following protocol type with the destination-port:
2025-06-26: Minor, non-technical update
2011-12-17: Article created