* confusion with dport and sport @ 2009-09-03 6:23 J. Bakshi 2009-09-03 7:07 ` Abhishek Singh 0 siblings, 1 reply; 2+ messages in thread From: J. Bakshi @ 2009-09-03 6:23 UTC (permalink / raw) To: netfilter Hello, I have found that TOS is helpful for traffic shaping. But some guide use --sport where other use --dport the handle the same thing hence I am very confusd !! To get a good response from the ssh running on a remote server the rule can be placed in the remote server can be `````````````````` iptables -t mangle -A PREROUTING -p tcp --dport $SSH_PORT -j TOS --set-tos Minimize-Delay ````````````````````` BUT some site do the same by replacing --dport to --sport Which one should be the right value ? Please enlighten me. Thanks ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: confusion with dport and sport 2009-09-03 6:23 confusion with dport and sport J. Bakshi @ 2009-09-03 7:07 ` Abhishek Singh 0 siblings, 0 replies; 2+ messages in thread From: Abhishek Singh @ 2009-09-03 7:07 UTC (permalink / raw) Cc: netfilter [-- Attachment #1: Type: text/plain, Size: 1165 bytes --] On 09/03/2009 12:08 PM, J. Bakshi wrote: > Hello, > > I have found that TOS is helpful for traffic shaping. But some guide use > --sport where other use --dport the handle the same thing hence I am > very confusd !! > To get a good response from the ssh running on a remote server the rule > can be placed in the remote server can be > > `````````````````` > iptables -t mangle -A PREROUTING -p tcp --dport $SSH_PORT -j TOS > --set-tos Minimize-Delay > ````````````````````` > > BUT some site do the same by replacing --dport to --sport > > Which one should be the right value ? Please enlighten me. > Thanks > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > --dport is used for destination port for which it refers to packets coming up to your gateway/pc destined for a specific port, and --sport is used for source port for which it refers to packets going out from your pc destined for that port. -- Abhishek Singh FOSS Nepal Community http://wiki.fossnepal.org [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 260 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-03 7:07 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-09-03 6:23 confusion with dport and sport J. Bakshi 2009-09-03 7:07 ` Abhishek Singh
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox