how to grep (or something else) for current random port.
Posted: Fri Nov 21, 2008 6:48 pm
I'm using deluge 1.0.5 and would like to know how (if there is any way) to know which random port numper is deluge using.
I want to do a script/crontab for filtering RST packets that my isp is known to use, to drop it's clients bittorrent connections.
As the port is random, I got stuck on the <iptables..... --dport ?????>.
I've got a _not_very_nice_ solution grepping netstat, but I'm quite sure deluge must write down it's port somewhere, am I right?
Regards
I want to do a script/crontab for filtering RST packets that my isp is known to use, to drop it's clients bittorrent connections.
As the port is random, I got stuck on the <iptables..... --dport ?????>.
I've got a _not_very_nice_ solution grepping netstat, but I'm quite sure deluge must write down it's port somewhere, am I right?
Regards