Hallo!
Seit heute greifen die IPtables rules nicht mehr, hatte eine Festplatten defekt, und habe ein Backup eingespielt.
Darum bitte ich höfflich um Hilfe
Auszüge vom Skript:
Trotzdem kann ich mich von einer beliebigen IP einloggen...
Auszug iptables -L
lsmod:
Hat vielleicht irgendwer eine Idee an was das liegen könnte?
Danke
Edit:
Hm, fail2ban funktioniert auch nicht mehr (google tips halfen auch nichts....):
Für Hinweise wäre ich dankbar...
Seit heute greifen die IPtables rules nicht mehr, hatte eine Festplatten defekt, und habe ein Backup eingespielt.
Darum bitte ich höfflich um Hilfe
Auszüge vom Skript:
Code:
# Tabelle flushen
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -X
iptables -t mangle -X
[---]
iptables -A INPUT -i eth0 -m state --state NEW -s xxx.xxx.xxx.xxx/29 -p tcp --dport 22 -j ACCEPT
# Default-Policies mit REJECT
iptables -A INPUT -j MY_REJECT
iptables -A OUTPUT -j MY_REJECT
Trotzdem kann ich mich von einer beliebigen IP einloggen...
Auszug iptables -L
Code:
Chain INPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
MY_DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE
MY_DROP tcp -- anywhere anywhere tcp flags:FIN,SYN/FIN,SYN
MY_DROP tcp -- anywhere anywhere tcp flags:SYN,RST/SYN,RST
MY_DROP tcp -- anywhere anywhere tcp flags:FIN,RST/FIN,RST
MY_DROP tcp -- anywhere anywhere tcp flags:FIN,ACK/FIN
MY_DROP tcp -- anywhere anywhere tcp flags:PSH,ACK/PSH
MY_DROP tcp -- anywhere anywhere tcp flags:ACK,URG/URG
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 10.8.0.0/24 anywhere state NEW
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:www
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:pop3s
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:domain
ACCEPT udp -- anywhere anywhere state NEW udp dpt:domain
REJECT tcp -- anywhere anywhere tcp dpt:ftp flags:FIN,SYN,RST,ACK/SYN #conn/32 > 3 reject-with icmp-port-unreachable
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp-data
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftps-data
ACCEPT udp -- anywhere anywhere state NEW udp dpt:989
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftps
ACCEPT udp -- anywhere anywhere state NEW udp dpt:990
ACCEPT tcp -- anywhere anywhere state NEW tcp dpts:65333:65535
ACCEPT tcp -- xxx.xxx.xxx.xxx/29 anywhere state NEW tcp dpt:ssh
[....]
lsmod:
Code:
ipt_REJECT 1517 4
iptable_mangle 2325 0
iptable_nat 3551 0
nf_nat 10568 1 iptable_nat
nf_conntrack_ipv4 7597 46 iptable_nat,nf_nat
nf_conntrack 38083 7 xt_connlimit,xt_state,iptable_nat,nf_nat,nf_conntrack_ftp,nf_conntrack_irc,nf_conntrack_ipv4
nf_defrag_ipv4 779 1 nf_conntrack_ipv4
xt_multiport 1775 0
iptable_filter 1790 1
ip_tables 7706 3 iptable_mangle,iptable_nat,iptable_filter
x_tables 8327 7 xt_connlimit,xt_tcpudp,xt_state,ipt_REJECT,iptable_nat,xt_multiport,ip_tables
Hat vielleicht irgendwer eine Idee an was das liegen könnte?
Danke
Edit:
Hm, fail2ban funktioniert auch nicht mehr (google tips halfen auch nichts....):
Code:
2012-01-31 16:51:52,923 fail2ban.actions.action: ERROR iptables -D INPUT -p tcp -m multiport --dports smtp,ssmtp -j fail2ban-postfix
iptables -F fail2ban-postfix
iptables -X fail2ban-postfix returned 100
2012-01-31 16:51:52,924 fail2ban.jail : INFO Jail 'postfix' stopped
2012-01-31 16:51:53,036 fail2ban.actions.action: ERROR iptables -D INPUT -p tcp -m multiport --dports smtp,ssmtp,imap2,imap3,imaps,pop3,pop3s -j fail2ban-courierauth
iptables -F fail2ban-courierauth
iptables -X fail2ban-courierauth returned 100
2012-01-31 16:51:53,037 fail2ban.jail : INFO Jail 'courierauth' stopped
2012-01-31 16:51:53,934 fail2ban.actions.action: ERROR iptables -D INPUT -p tcp -m multiport --dports ssh -j fail2ban-ssh
iptables -F fail2ban-ssh
iptables -X fail2ban-ssh returned 100
2012-01-31 16:51:53,934 fail2ban.jail : INFO Jail 'ssh' stopped
2012-01-31 16:51:53,936 fail2ban.server : INFO Exiting Fail2ban
Für Hinweise wäre ich dankbar...
Last edited by a moderator: