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:
- apply-path protocol bgp group group-name neighbor neighbor;
For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.
For detailed information about configuring TCP connection attempts, see the JUNOS Policy Framework Configuration Guide.