Skip to contentSkip to conversation

sendmail : dport 25 , sport 25 or both?

DISCUSSION Rakotomandimby Mihamina 2 participants 3 messages Jan 22, 2004

lore
Share & tools
lore
#0 lore raw

HEllo ,
I'm running sendamil on my box .
I'm dropping all outgoing packets ( policy ) .
I want the sendmail packets not to be dropped , have i got to allow outgoing "--sport 25" packets , "--dport 25" or just "--ports 25"

thanks in advance for your help .

Signature · 3 lines
Rakotomandimby Mihamina Andrianifaharana
Tel : +33 2 38 76 43 65
http://stko.dyndns.info/site_principal/Members/mihamina
#1 lore raw

If the daemon listens on port 25, then the connection will be destined to it on port 25.

So
Input chain allows destination port 25
Output chain allows source port 25

Do you have a specific need for blocking all output packets?

Ted

Quoted 7 lines · Rakotomandimby Mihamina

HEllo ,
I'm running sendamil on my box .
I'm dropping all outgoing packets ( policy ) .
I want the sendmail packets not to be dropped , have i got to allow outgoing "--sport 25" packets , "--dport 25" or just "--ports 25"

thanks in advance for your help .

#2 lore raw
Quoted 2 lines · Ted Kaczmarek

If the daemon listens on port 25, then the connection will be destined to it on port 25.

yes .

Quoted 3 lines

So
Input chain allows destination port 25
Output chain allows source port 25

OK.

Quoted 1 line

Do you have a specific need for blocking all output packets?

yes . security reason . i think if someone has succeded intrusion , i could block outgoing traffic , so that it would not be easy for him to manage it ... is it crazzy ? :-)

Signature · 3 lines
Rakotomandimby Mihamina Andrianifaharana
Tel : +33 2 38 76 43 65
http://stko.dyndns.info/site_principal/Members/mihamina