LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-30-2001, 04:01 PM   #1
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
Iptables + PASV


Can anyone possibly explain why the following setup would cause ProftpD to reject all relevant packets(for instance when a user does a LIST command they can't build a data socket). I thought the conntrack and/or state matching took care of this?

FTPD: ProFTPD
Firewall Ruleset:
/sbin/modprobe ip_conntrack_ftp ports=21,2000
/sbin/modprobe ip_nat_ftp ports=21,2000

iptables -P INPUT DENY
iptables -A INPUT -p tcp --dport 2000 -j ACCEPT # Daemon port
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp -j LOG --log-prefix "Netfilter(tcp): "

Here's the errors:
Nov 30 13:55:44 ns kernel: Netfilter(tcp): IN=ppp0 OUT= MAC= SRC=<omitted> DST=<omitted> LEN=1452 TOS=0x00 PREC=0x00 TTL=112 ID=61309 DF PROTO=TCP SPT=22424 DPT=37694 WINDOW=64952 RES=0x00 ACK URGP=0

Nov 30 13:55:44 ns kernel: Netfilter(tcp): IN=ppp0 OUT= MAC= SRC=<omitted> DST=<omitted> LEN=1312 TOS=0x00 PREC=0x00 TTL=112 ID=61310 DF PROTO=TCP SPT=22424 DPT=37694 WINDOW=64952 RES=0x00 ACK PSH URGP=0

Nov 30 13:55:44 ns kernel: Netfilter(tcp): IN=ppp0 OUT= MAC= SRC=<omitted> DST=<omitted> LEN=1452 TOS=0x00 PREC=0x00 TTL=112 ID=61311 DF PROTO=TCP SPT=22424 DPT=37694 WINDOW=64952 RES=0x00 ACK URGP=0
 
  


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
Proftpd+PASV+Port21 Jon Doe Linux - Networking 0 06-01-2005 02:47 PM
PASV problems wu-ftpd twantrd Linux - General 3 08-18-2004 03:15 PM
Pasv FTP Troubles carmstrong Linux - Networking 4 05-15-2004 03:09 PM
proftpd and pasv problem mrsolo Linux - Networking 3 04-16-2004 02:59 PM
pasv mode dica Linux - Networking 3 04-15-2003 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:08 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