LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-07-2006, 09:22 AM   #1
wrighty
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
IPchains rejecting smtp AND pop3 from different subnet


Hi

I have an email server 192.168.1.254.

We have a new leased line connection between sites.

Remote site gets dhcp from router, - range 192.168.2.0.

The Linux email server is rejecting the 192.168.2 addresses giving an error of

Apr 7 12:41:35 kernel: Packet log: input REJECT eth0 PROTO=6 192.168.2.8
:1031 192.168.1.254:110 L=48 S=0x00 I=1246 F=0x4000 T=126 SYN (#35)

I have added these lines to rc.firewall

/sbin/ipchains -A input -j ACCEPT -p tcp -s 192.168.2.0/255.255.255.0 25 -l
/sbin/ipchains -A input -j ACCEPT -p tcp -s 192.168.2.0/255.255.255.0 110 -l
/sbin/ipchains -A input -j ACCEPT -s 192.168.2.0/255.255.255.0 -l

but still not working.

This is the part of the result of ipchain --list | grep 192

ACCEPT all ------ 192.168.1.0/24 anywhere n/a
REJECT all ----l- 192.168.1.0/24 anywhere n/a
ACCEPT tcp ----l- 192.168.2.0/24 anywhere smtp -> any

ACCEPT tcp ----l- 192.168.2.0/24 anywhere pop3 -> any

ACCEPT all ----l- 192.168.2.0/24 anywhere n/a
 
Old 04-07-2006, 03:19 PM   #2
Krugger
Member
 
Registered: Oct 2004
Posts: 229

Rep: Reputation: 30
What are those -l at the end of the rules you added?

What is the default policy?

Are there no -i eth0 or -p tcp rules above that would match the packet?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
POP3 and SMTP mithras Linux - Newbie 2 01-22-2004 07:46 AM
Pop3\smtp evalduxx Linux - Software 4 12-05-2003 06:33 PM
Pop3/smtp Bensoft Kill MS Linux - Newbie 2 08-24-2003 09:44 PM
postfix, smtp and pop3 artman62 Linux - Software 10 01-28-2003 04:12 AM
POP3 and SMTP PcHammer Linux - Networking 5 02-07-2001 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:05 PM.

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