iptables telnet

Rund um die Sicherheit des Systems und die Applikationen
Post Reply
michseel
Posts: 96
Joined: 2004-08-17 15:40
 

iptables telnet

Post by michseel »

Hallo,

ich möchte per iptables auf meinem Linux-Server telnet verbindungen verbieten. Mit welcher Regel ist das möglich? Habe im I-Net noch nichts gefunden..

Gruß
michseel
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: iptables telnet

Post by Roger Wilco »

Sperre Port 23 oder starte erst gar keinen Telnet-Server.
michseel
Posts: 96
Joined: 2004-08-17 15:40
 

Re: iptables telnet

Post by michseel »

Danke. Noch eine weitere Frage. Ich habe mehrere IP-Adressen (IPs verfälscht):

eth0 => 192.168.0.1
eth0:1 => 192.168.0.2
eth0:2 => 192.168.0.3

Greift der iptables Befehl

Code: Select all

iptables -A INPUT -i eth0 -p TCP --dport 23 -j DROP
für alle IPs oder muss ich machen:

Code: Select all

iptables -A INPUT -i eth0 -p TCP --dport 23 -j DROP
iptables -A INPUT -i eth0:1 -p TCP --dport 23 -j DROP
iptables -A INPUT -i eth0:2 -p TCP --dport 23 -j DROP
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: iptables telnet

Post by Roger Wilco »

Ich würde es anders machen. Port 23 auf allen Interfaces außer lo sperren. Wie die Bedeutung von -i invertiert wird, steht in der Manpage zu iptables.

Aber einfach keinen telnetd laufen zu lassen wäre einfacher. :roll:
elch_mg
Posts: 302
Joined: 2006-01-23 19:14
Location: 41063
Contact:
 

Re: iptables telnet

Post by elch_mg »

Läuft überhaupt ein telnetd? :roll:
Post Reply