wollte gerade meinen Server per iptables absichern, musste aber feststellen, das einige Funktionen nicht mehr wie gewohnt arbeiten.
Z.B. bei der angabe des Status:
Code: Alles auswählen
funktioniert
iptables -A INPUT -i eth0 -p TCP --sport 1024:65535 --dport 80 -s 192.168.1.0/24 -d 192.168.1.2/32 -j ACCEPT
funktioniert nicht
iptables -A INPUT -i eth0 -p TCP --sport 1024:65535 --dport 80 -s 192.168.1.0/24 -d 192.168.1.2/32 -m state --state NEW -j ACCEPT
iptables: Invalid argument
Hört sich doch nach dem an was ich suche ...MATCH EXTENSIONS
conntrack
This module, when combined with connection tracking, allows access to the connection tracking state for this packet/connection.
[!] --ctstate statelist
statelist is a comma separated list of the connection states to match. Possible states are listed below.
States for --ctstate:
INVALID
meaning that the packet is associated with no known connection
NEW meaning that the packet has started a new connection, or otherwise associated with a c
Code: Alles auswählen
iptables -A INPUT -i eth0 -p TCP --sport 1024:65535 --dport 80 -s 192.168.1.0/24 -d 192.168.1.2/32 -m conntrack --ctstate NEW -j ACCEPT
iptables: Invalid argument
System:
debian sid
kernel: 2.6.25.8
iptables: iptables v1.4.1.1
cat /proc/modules
Code: Alles auswählen
ipt_ULOG
ipt_TTL
ipt_ttl
ipt_recent
ipt_ECN
ipt_ecn
xt_connlimit
xt_connbytes
xt_CLASSIFY
xt_connmark
xt_comment
xt_CONNMARK
xt_limit
xt_iprange
xt_length
xt_multiport
xt_time
xt_tcpmss
xt_sctp
xt_conntrack