Skip to contentSkip to conversation

multiport extension --ports parameter problem

DISCUSSION Steve D 1 participant 1 message Aug 14, 2003 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20030813234901.19712.96716.Mailman@kashyyyk

Steve D

author
#1 lore raw

Hi:

I'm doing a test on the multiport extension of iptables and it seemed the --ports parameter did not funtion the same as described in the man page.My test procedure is as follows:

1. set iptables rules:
iptables -F
iptables --policy FORWARD DROP
iptables -A FORWARD -p udp --ports 5 -j ACCEPT

2. send a udp packet with source port=5, destination port=5, and the packet was accepted. (This test case functioned the same as in the man page.)

3. send a udp packet with source port=5, destination port=10, and the packet was accepted. (This test case did not function the same as in the man page.)

4. send a udp packet with source port=10, destination port=5, and the packet was accepted. (This test case did not function the same as in the man page.)

5. send a udp packet with source port=10, destination port=10, and the packet was dropped. (This test case functioned the same as in the man page.)

As a conclusion, a packet is accepted if either the source port or the destination port is one of the given ports. In the man page, it says a packet is accepted if the source port and the destination port are the same and equal to one of the given ports.

Could anybody tell me if this is a reported bug, or there is something wrong with my test plan? Thanks!

Steve

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com