[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: TOR traffic measurement with iptables



On Thu, March 23, 2006 14:46, M wrote:
>> # Input: 4321 = Tor, 4322 = Directory
>> iptables -A INPUT -i eth0 -p tcp --dport 4321 -j ACCEPT iptables -A INPUT
>> -i eth0 -p tcp --dport 4322 -j ACCEPT
>>
>
> Are there any rules before those INPUT -lines? Perhaps one of them
> matches packets before these lines?
>
> Try this:
> iptables -I INPUT -i eth0 -p tcp --dport 4321 -j ACCEPT iptables -I INPUT
> -i eth0 -p tcp --dport 4322 -j ACCEPT
>
>
>
> M
>
>
Try this

iptables -I INPUT -i eth0 -p tcp --dport 4321:4322 -j ACCEPT