LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-18-2006, 01:58 AM   #1
visitashu
LQ Newbie
 
Registered: Jan 2006
Location: Bangalore : INDIA
Distribution: Ubuntu, RedHat, Gentoo, Linux Mint, Arch Linux, Fedora
Posts: 26

Rep: Reputation: 0
Angry POP3 usin tcp_wrappers or iptables


hi fans...
i hv one doubt in POP3 access...
scenario: server IP---> 192.168.0.6
client IP------>192.168.0.7

now the ques is Configure POP such dat only USER1 from some doamin say "linux.com [192.168.0.Y]" should recieve the mail through it & block from "hacker.org [192.168.1.X]"


so i can go to this ques in 2ways either by TCP_WRAPPERS or IPTABLES

using iptables i say
#iptables -A INPUT -s 192.168.1.X -d 192.168.0.6 -p tcp --dport 110 -j REJECT
i save the rules...
#service iptables restart
#chkconfig iptables on

well 'll it block "hacker.org"

by tcp_wrappers method i edit d file /etc/hosts.deny
& type

pop3: 192.168.1.0/255.255.255.0

will this work ???
actually tcp_wrappers does not calls "libwrap.so" when v use POP3 protocols i think !!!!
what say...

please help !!
 
Old 04-19-2006, 07:42 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
by tcp_wrappers method i edit d file /etc/hosts.deny & type
pop3: 192.168.1.0/255.255.255.0
will this work ???

As far as I know the first argument is the actual name of the binary (argv[0]) and not the protocol name: if this daemon is run from Xinetd look in /etc/xinetd.d/. The network range argument can be cut down to just the first three octets ending with a dot: "192.168.1.". If you need to add more ranges just comma+space separate them.


actually tcp_wrappers does not calls "libwrap.so" when v use POP3 protocols i think !!!!
what say...

Xinetd does.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP/POP3 problems with squid/iptables dragonleech Linux - Security 8 09-23-2010 04:57 AM
SMTP/POP3 iptables problem dragonleech Linux - Security 4 12-12-2005 11:33 AM
iptables DNAT of pop3 won't work danGynn Linux - Networking 0 02-26-2004 11:49 AM
iptables : pop3 eyt Linux - General 4 10-24-2003 06:53 PM
POP3/SMTP-IPTABLES Problems chris Linux - Networking 1 02-28-2003 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration