You can restrict Transmission Control Protocol (TCP) connection attempts on port 179 to BGP peers only. This blocks all non-BGP connection attempts on port 179.
To restrict TCP connection attempts to BGP peers include the apply-path statement at the [edit policy-options prefix-list list-name] hierarchy level:
- [edit policy-options prefix-list list-name]
- apply-path protocol bgp group group-name neighbor neighbor;
For detailed information about configuring TCP connection attempts, see the JUNOS Policy Framework Configuration Guide.