Thema: Iptables
Einzelnen Beitrag anzeigen
Ungelesen 15.05.11, 20:06   #2
spartan-b292
Echter Freak
 
Benutzerbild von spartan-b292
 
Registriert seit: Mar 2010
Ort: /home/spartan-b292
Beiträge: 2.856
Bedankt: 1.701
spartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punktespartan-b292 leckt gerne myGully Deckel in der Kanalisation! | 230828 Respekt Punkte
Standard

Das müsste ca so aussehen:
Code:
iptables -A INPUT -i eth0 -p tcp --dport 12345 -j ACCEPT
iptables -A OUTPUT -i eth0 -p tcp --sport 12345 -j ACCEPT
Für externen Traffic über eth0.

Um intern alles offen zu lassen müsste das ca so aussehen:

Code:
iptables -A INPUT -i lo -s 0/0 -d 0/0 -j ACCEPT
Danach die Regeln noch anwenden mit
Code:
/sbin/iptables -F INPUT
/sbin/iptables -F OUTPUT
__________________
"They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety"
spartan-b292 ist offline   Mit Zitat antworten