All of lore.kernel.org
 help / color / mirror / Atom feed
* stateful UDP with unknown source port on INPUT?
@ 2007-03-21 17:30 noa levy
  2007-03-29 23:06 ` Martijn Lievaart
  0 siblings, 1 reply; 6+ messages in thread
From: noa levy @ 2007-03-21 17:30 UTC (permalink / raw)
  To: netfilter

Hi,
I am working on a machine that needs to send SNMP informs, and receive ACKs 
for these informs. I am using iptables as my firewall, and I need to find a 
way to open a pinhole for the ACK to get back to me. My problem is that SNMP 
informs are sent to a predefined UDP port (162) but the ACKs are returned 
from a random port.
The following rules exist to allow established UDP sessions:
iptables -A INPUT-p udp -m state –state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p udp -m state –state NEW,ESTABLISHED -j ACCEPT

My problem is that, since the source port of the ACK is a random one, the 
ACKs are dropped. Is there a way to allow all incoming UDP packets with an 
unknown source port and an established dest port?

Any help will be greatly appreciated,
Thanks,
Noa

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-02 12:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 17:30 stateful UDP with unknown source port on INPUT? noa levy
2007-03-29 23:06 ` Martijn Lievaart
2007-04-01 12:39   ` noa levy
2007-04-01 13:24     ` Franck Joncourt
2007-04-02  5:28     ` Robert Nichols
2007-04-02 12:35       ` Robert Nichols

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.