LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-03-2006, 04:21 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
ipf doesn't let ftp through


Hi!
When my ipf.conf is empty, ftp comes through with no problem.
But when ipf is configured then I get from the browser the message
Quote:
425 can't open data connection
. Then I only get to see the link
Quote:
Up to higher level directory
but not the subdirectorie.
When I use ftp from the command line I get
Quote:
227 Entering Passive Mode
and then ftp doesn't react.

with ipmon -a, I get:
Quote:
03/03/2006 11:13:39.310968 bge0 @0:11 b 111.111.11.11,45853 -> 111.111.11.22,57708 PR tcp len 20 60 -S IN
03/03/2006 11:13:39.315945 bge0 @0:11 b 111.111.11.11,46725 -> 111.111.11.22,58435 PR tcp len 20 60 -S IN
03/03/2006 11:13:39.272958 STATE:NEW 111.111.11.11,48946 -> 111.111.11.22,21 PR tcp
03/03/2006 11:13:42.315071 bge0 @0:11 b 111.111.11.11,46725 -> 111.111.11.22,58435 PR tcp len 20 60 -S IN
03/03/2006 11:13:48.314127 bge0 @0:11 b 111.111.11.11,46725 -> 111.111.11.22,58435 PR tcp len 20 60 -S IN
03/03/2006 11:13:52.354538 bge0 @0:11 b 111.111.11.33 -> 224.0.0.1 PR igmp len 20 (28) IN
my ipf.conf looks like this:
Quote:
# Allow loopback traffic

pass in quick on lo0 all
pass out quick on lo0 all

# Allow any outbound traffic from this computer (and the response)

pass out quick all keep state

# block from non-routable addresses, required for a server

block in quick from 10.0.0.0/8
block in quick from 172.16.0.0/12
block in quick from 192.168.0.0/16

# Allow http and https inbound

pass in quick proto tcp from any to any port = 80 keep state
pass in quick proto tcp from any to any port = 443 keep state

# Allow ssh inbound
pass in quick proto tcp from any to any port = 22 keep state

# Allow ft inbound
pass in quick proto tcp from any to any port = 20 keep state
pass in quick proto tcp from any to any port = 21 keep state

# Block ident with a TCP RST

block return-rst in quick proto tcp to port = 113

# Block and log anything inbound that I did not originate

block in log all
Thanks for any help.
 
Old 03-03-2006, 09:20 AM   #2
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
I found the solution.
in ipf.conf, I added:
Quote:
pass in quick proto tcp from any to any port 29000 >< 29500 flags S keep state
and in ftpaccess:
Quote:
passive ports 0.0.0.0/0 29000 29500
for the explanations:
http://www.nwo.net/ipf/ipf-howto.html#TOC_43
jlliagre told me about this website in a previou post. Well, thanks!
 
  


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
ipf for a webserver xpucto Solaris / OpenSolaris 5 02-22-2006 06:49 AM
ipf: difference between any and all xpucto Solaris / OpenSolaris 10 02-17-2006 06:38 AM
ipf and bind9 Fredstar *BSD 0 09-04-2005 09:52 PM
snort with ipf and guardian SiLiCoN *BSD 0 05-11-2005 06:43 AM
solaris 9 with CDE and IPF aetengoku Solaris / OpenSolaris 4 01-15-2004 10:07 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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