iptables

Bash, Shell, PHP, Python, Perl, CGI
sebstof
Posts: 16
Joined: 2003-03-25 16:29

iptables

Post by sebstof » 2008-01-11 16:38

Hallo,

mein Webmin meldet mir unter "Firewall":
"Webmin has detected 1 IPtables firewall rules currently in use, which are not recorded in the save file /etc/webmin/firewall/iptables.save. These rules were probably setup from a script, which this module does not know how to read and edit. "

Hier die ausgewiesene table.

Existing firewall configuration
# Generated by iptables-save v1.3.5 on Fri Jan 11 15:48:25 2008
*nat
:PREROUTING ACCEPT [42428374:2272263276]
:POSTROUTING ACCEPT [12434751:765546112]
:OUTPUT ACCEPT [12410989:779902676]
COMMIT
# Completed on Fri Jan 11 15:48:25 2008
# Generated by iptables-save v1.3.5 on Fri Jan 11 15:48:25 2008
*mangle
:PREROUTING ACCEPT [1953836898:226153272967]
:INPUT ACCEPT [1953836329:226153182815]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [2728878593:3256871780959]
:POSTROUTING ACCEPT [2727174109:3256786703999]
COMMIT
# Completed on Fri Jan 11 15:48:25 2008
# Generated by iptables-save v1.3.5 on Fri Jan 11 15:48:25 2008
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j REJECT --reject-with tcp-reset
-A INPUT -m state --state INVALID -j DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8880 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 465 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 995 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 993 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 106 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5432 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9008 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 9080 -j ACCEPT
-A INPUT -p udp -m udp --dport 137 -j ACCEPT
-A INPUT -p udp -m udp --dport 138 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 139 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 445 -j ACCEPT
-A INPUT -p udp -m udp --dport 1194 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8/0 -j ACCEPT
-A INPUT -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j REJECT --reject-with tcp-reset
-A FORWARD -m state --state INVALID -j DROP
-A FORWARD -i lo -o lo -j ACCEPT
-A FORWARD -j DROP
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j REJECT --reject-with tcp-reset
-A OUTPUT -m state --state INVALID -j DROP
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -j ACCEPT
COMMIT
# Completed on Fri Jan 11 15:48:25 2008



Ich habe keine table erstellt.
Wo kann die hergekommen sein?

Kann ich diese einstellungen einfach in iptables mit -F löschen oder sperr ich mich dann evtl. aus oder so ewtas??

Help! Danke!

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: iptables

Post by Joe User » 2008-01-12 20:19

Du kannst die Filter ruhig flushen, bleibt aber noch die Frage nach der Quelle...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

User avatar
daemotron
Administrator
Administrator
Posts: 2635
Joined: 2004-01-21 17:44

Re: iptables

Post by daemotron » 2008-01-12 21:06

Du hast aber nicht zufällig Plesk drauf? Da gibt's AFAIR irgendwo ein "Firewall"-Modul, mit dem ein paar Regeln gesetzt werden...