Supportnet Computer
Planet of Tech

Supportnet / Forum / Linux

Port blocken mit iptables





Frage

hab einen debian router mit 5 compys im netz. mit iptables -A INPUT -p tcp --dport <PORTNUMMER> -j REJECT iptables -A OUTPUT -p tcp --dport <PORTNUMMER> -j REJECT iptables -A INPUT -p udp --dport <PORTNUMMER> -j REJECT iptables -A OUTPUT -p udp --dport <PORTNUMMER> -j REJECT kann ich immer einen port zumachen Kann ich auch alle zumachen (von innen und von außen) ? Will nur die aufmachen die ich brauche.

Antwort 1 von marty

Hi

Wenn du z.b. die Ports 6666 bis 7777 blocken willst , dann so :

Iptables -I INPUT -p tcp --dport 6666:7777 -j DROP


Alles nicht so einfach ...

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: