What is the difference between -dport and -sport in Linux?

Linux

1 answer

Answer

1166330

2026-07-29 14:25

+ Follow

Linux
Linux

In Linux networking, -dport refers to the destination port, which is the port on the receiving side of a connection where data is sent. Conversely, -sport stands for source port, which is the port on the sending side of a connection from which data is transmitted. These options are commonly used in firewall rules, like those in iptables, to specify the ports involved in network traffic filtering and management.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.