Page 1 of 1

iptables reglen

Posted: 2004-03-17 18:58
by conym18
hallo,

ist folgendes okey oder ist was falsch oder fehlt da was?

Code: Select all


ssh	INPUT	TCP	0/0	22	0/0	eth0	ACCEPT
www	INPUT	TCP	0/0	80	0/0	eth0	ACCEPT
pop3	INPUT	TCP	0/0	110	0/0	eth0	ACCEPT
pop3	OUTPUT	TCP	0/0	110	0/0	eth0	ACCEPT
smtp	INPUT	TCP	0/0	25	0/0	eth0	ACCEPT
smtp	OUTPUT	TCP	0/0	25	0/0	eth0	ACCEPT
ftp	INPUT	TCP	0/0	21	0/0	eth0	ACCEPT
ftp	OUTPUT	TCP	192.168.2.1	21	192.168.2.2	eth0	ACCEPT
DNS	INPUT	ICMP	0/0		0/0	eth0	ACCEPT
DNS	OUTPUT	ICMP	0/0		0/0	eth0	ACCEPT



Re: iptables reglen

Posted: 2004-03-17 19:22
by dodolin
ist folgendes okey oder ist was falsch oder fehlt da was?
Das kommt auf deine Policy bzw. dein Konzept drauf an. Was sagt dieses denn? Lesetipp: http://www.iks-jena.de/mitarb/lutz/usenet/Firewall.html

Re: iptables reglen

Posted: 2004-03-17 20:02
by robertw
conym18 wrote:

Code: Select all

DNS	INPUT	ICMP	0/0		0/0	eth0	ACCEPT
DNS	OUTPUT	ICMP	0/0		0/0	eth0	ACCEPT
Was soll das sein? DNS mit Hilfe von Ping (ICMP)? Hier müsste UDP 53 und TCP 53 stehen. Ansonsten sind die Portnummern richtig. Mir würde noch SSL (443) fehlen.

Da Du aber Deine Ziele nicht schreibst, bleibt nur raten (siehe Antwort von dodolin).

Robert