kaihummels
Goto Top

Server nur im Subnetz erreichbar ISPConfig

Hallo,

ich habe einen Server eingerichtet (machen wir gerade in der Ausbildung zu Übungszwecken) und ich frage mich, warum der Server nur im Subnetz erreichbar ist. Der Server wurde nach der Anleitung (http://www.howtoforge.com/perfect-server-debian-squeeze-with-bind-and-c ..) installiert. Da wir zuvor schonmal einen Server ohne ISPConfig und Firewall installiert haben und dieser über das Internet erereichbar waren kann ich daraus nur schließen, dass irgenwas von den installierten Komponenten aus der Anleitung den Verkehr blockiert.

Ich habe auch mal die Ports über das Internet gescannt und die sind alle zu, was natürlich schlecht ist. Im ISPConfig steht unter Firewall -> Open TCP ports 20,21,22,25,53,80,110,143,443,993,995,3306,8080,8081,10000.

Irgendwas muss es jetzt noch geben, was den Verkehr aus dem Internet blockiert. Hat da jemand von euch eine Idee?

Danke.

Content-Key: 178573

Url: https://administrator.de/contentid/178573

Printed on: April 24, 2024 at 22:04 o'clock

Member: brammer
brammer Jan 09, 2012 at 10:38:26 (UTC)
Goto Top
Hallo,

ist der Server jetzt nur im Subnetz erreichbar oder durchs Internet?

Das ist mir bei deiner Frage nicht klar, oder sind es zwei Fragen?

Wenn es zwei Fragen sind...

Wer ist dne das Gatewway bei deinem Server?

brammer
Member: kaihummels
kaihummels Jan 09, 2012 at 12:11:13 (UTC)
Goto Top
Bei einem Port Scan über das Internet kommt heraus, dass alle Ports geschlossen sind. Hier merke ich gerade selber, dass die IP anscheinend doch über das Internet erreichbar ist, dass aber alle Ports geschlossen sind, sonst könnte ich die IP ja nicht über das Internet auf offene Ports testen.

Als Gateway habe ich die IP angegeben, die vorher durch DHCP automatisch eingetragen wurde. Also anscheinend sind alle Porst dicht obwohl ich die wichtigen in ISPConfig geöffnet habe ?
Member: dog
dog Jan 09, 2012 at 17:05:53 (UTC)
Goto Top
dass die IP anscheinend doch über das Internet erreichbar ist, dass aber alle Ports geschlossen sind, sonst könnte ich die IP ja nicht über das Internet auf offene Ports testen.

Natürlich könntest du das.
Und "Ports geschlossen" und "Nicht erreichbar" produziert in den meisten Fällen das selbe Ergebnis.
Member: kaihummels
kaihummels Jan 10, 2012 at 07:03:04 (UTC)
Goto Top
Okay..jetzt muss ich mich irgendwie einer Lösung nähern. Wie könnte ich jetzt herausfinden, was den Zugriff aus dem Internet blockiert?
Member: dog
dog Jan 10, 2012 at 10:48:04 (UTC)
Goto Top
Poste die Ausgabe von iptables -L -v.
Rufe vom Server wieistmeineip.de auf - wird da wirklich die IP vom Server angezeigt?
Member: kaihummels
kaihummels Jan 10, 2012 at 16:53:29 (UTC)
Goto Top
Da bin ich ja mal gespannt:

Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
1546 78848 fail2ban-courierimap tcp -- any any anywhere anywhere multiport dports imap2
1546 78848 fail2ban-sasl tcp -- any any anywhere anywhere multiport dports smtp
1546 78848 fail2ban-courierpop3 tcp -- any any anywhere anywhere multiport dports pop3
0 0 fail2ban-courierimaps tcp -- any any anywhere anywhere multiport dports imaps
0 0 DROP tcp -- !lo any anywhere loopback/8
94579 30M ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
2555 153K ACCEPT all -- lo any anywhere anywhere
0 0 DROP all -- any any base-address.mcast.net/4 anywhere
63387 9195K PUB_IN all -- eth+ any anywhere anywhere
0 0 PUB_IN all -- ppp+ any anywhere anywhere
0 0 PUB_IN all -- slip+ any anywhere anywhere
0 0 PUB_IN all -- venet+ any anywhere anywhere
0 0 DROP all -- any any anywhere anywhere

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 DROP all -- any any anywhere anywhere

Chain OUTPUT (policy ACCEPT 22699 packets, 2012K bytes)
pkts bytes target prot opt in out source destination
60665 4672K PUB_OUT all -- any eth+ anywhere anywhere
0 0 PUB_OUT all -- any ppp+ anywhere anywhere
0 0 PUB_OUT all -- any slip+ anywhere anywhere
0 0 PUB_OUT all -- any venet+ anywhere anywhere

Chain INT_IN (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- any any anywhere anywhere
0 0 DROP all -- any any anywhere anywhere

Chain INT_OUT (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- any any anywhere anywhere
0 0 ACCEPT all -- any any anywhere anywhere

Chain PAROLE (15 references)
pkts bytes target prot opt in out source destination
35 1820 ACCEPT all -- any any anywhere anywhere

Chain PUB_IN (4 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- any any anywhere anywhere icmp destination-unreachable
0 0 ACCEPT icmp -- any any anywhere anywhere icmp echo-reply
0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded
0 0 ACCEPT icmp -- any any anywhere anywhere icmp echo-request
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:ftp-data
3 156 PAROLE tcp -- any any anywhere anywhere tcp dpt:ftp
6 312 PAROLE tcp -- any any anywhere anywhere tcp dpt:ssh
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:smtp
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:domain
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:www
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:pop3
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:imap2
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:https
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:imaps
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:pop3s
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:mysql
26 1352 PAROLE tcp -- any any anywhere anywhere tcp dpt:http-alt
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:tproxy
0 0 PAROLE tcp -- any any anywhere anywhere tcp dpt:webmin
0 0 ACCEPT udp -- any any anywhere anywhere udp dpt:domain
0 0 ACCEPT udp -- any any anywhere anywhere udp dpt:mysql
0 0 DROP icmp -- any any anywhere anywhere
63352 9193K DROP all -- any any anywhere anywhere

Chain PUB_OUT (4 references)
pkts bytes target prot opt in out source destination
60640 4670K ACCEPT all -- any any anywhere anywhere

Chain fail2ban-courierimap (1 references)
pkts bytes target prot opt in out source destination
1546 78848 RETURN all -- any any anywhere anywhere

Chain fail2ban-courierimaps (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- any any anywhere anywhere

Chain fail2ban-courierpop3 (1 references)
pkts bytes target prot opt in out source destination
1546 78848 RETURN all -- any any anywhere anywhere

Chain fail2ban-sasl (1 references)
pkts bytes target prot opt in out source destination
1546 78848 RETURN all -- any any anywhere anywhere

Chain fail2ban-ssh (0 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- any any anywhere anywhere
Member: kaihummels
kaihummels Jan 12, 2012 at 09:07:30 (UTC)
Goto Top
Kann das sein, dass vielleicht noch eine Firewall außerhalb von ISPConfig aktiv ist?