$ipt -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT $ipt -A INPUT -p tcp -s YOUR-IP -m state --state NEW -m tcp --dport 110 -j ACCEPT But you will need to execute this as root any time your ip change LALO On Wed, 2005-06-01 at 12:09 +0530, Vinod H wrote: > Hi, > > I am not so good in netfilter/iptables > > I have Sendmail configured on my server and I am able to send and > receive mails in the intranet. Now I want to be able to access the > mails from outside world also but i dont want to open the port for > every one. I want to open the pop3 port for the perticular IP (it may > be static or dynamic IP) in the IPTABLES and close the port when not > needed to access from outside. > > Please some one tell me how to do this and can I have some script > which will open the port when i need and close when not needed so that > I don't have to enter into the iptables every time. > > How to open the pop3 port for a perticular external ipaddress > > Please some one help me on this > > Thanks and Regards > > Vinod > Este e-mail y cualquier posible archivo adjunto está dirigido únicamente al destinatario del mensaje y contiene información que puede ser confidencial. Si Ud. no es el destinatario correcto por favor notifique al remitente respondiendo este mensaje y elimine inmediatamente el e-mail y los posibles archivos adjuntos al mismo de su sistema. Está prohibida cualquier utilización, difusión o copia de este e-mail por cualquier persona o entidad que no sean las específicas destinatarias del mensaje. ANTEL no acepta ninguna responsabilidad con respecto a cualquier comunicación que haya sido emitida incumpliendo nuestra Política de Seguridad de la Información. . . . . . . . . . This e-mail and any attachment is confidential and is intended solely for the addressee(s). If you are not intended recipient please inform the sender inmediately, answering this e-mail and delete it as well as the attached files. Any use, circulation or copy of this e-mail by any person or entity that not is the specific addressee(s) is prohibited. ANTEL is not responsible for any communication emitted without respecting our Information Security Policy.