ipsets for both source and target in one iptables-rule?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'd like to use two ipsets in a single iptables rule similar to

iptables -A FORWARD -p tcp -m tcp --dport ssh -m set --set clients src -m 
set --set servers dst  -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A FORWARD -p tcp -m tcp --sport ssh -m set --set servers src -m 
set --set clients dst -m state --state ESTABLISHED -j ACCEPT

Can anyone tell me if that's just a syntax error or if this is entirely 
impossible?
(Kernel 2.4.32, iptables 1.3.4, ipset 2.2.7)

Thanks in Advance,
Frank Mayer
UNIX Systemadministration
----------------------------------------------------
KNAPP Systemintegration GmbH
Waltenbachstrasse 9
8700 Leoben, Austria
----------------------------------------------------
Phone: +43 3842 805-921
Fax: +43 3842 82930-921
frank.mayer@xxxxxxxxxxxxxxxxx
www.knapp.com


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux