LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-10-2003, 10:08 AM   #1
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
Proftp iptables


I'm having some issues with proftp and iptables. These rules are the only thing I could connect to the ftp server with. I am just wondering if this is good way to do it or if there is a lot more efficient way.

$IPTABLES -A INPUT -i $EXT -p tcp \
-s 10.0.0.0/8 --dport 21 -j ACCEPT

$IPTABLES -A OUTPUT -o $EXT -p tcp ! --syn \
-d 10.0.0.0/8 --sport 21 -j ACCEPT

$IPTABLES -A OUTPUT -o $EXT -p tcp \
--source-port 20 -d 10.0.0.0/8 -j ACCEPT

$IPTABLES -A INPUT -i $EXT -p tcp ! --syn \
-s 10.0.0.0/8 --dport 20 -j ACCEPT

# PASSIVE MODE data channel responses
$IPTABLES -A INPUT -i $EXT -p tcp \
-s 10.0.0.0/8 --sport $UNPRIVPORTS --dport $UNPRIVPORTS -j ACCEPT

$IPTABLES -A OUTPUT -o $EXT -p tcp ! --syn \
--sport $UNPRIVPORTS -d 10.0.0.0/8 --dport $UNPRIVPORTS -j ACCEPT


The other problem is that when there is no firewall the initial connection is very quick but with this turned on it seems to take about 8-12 seconds to initiate. After the initial connection it's fast though. Hope that makes sense.

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
proftp onelung02 Slackware 5 05-15-2005 05:42 PM
scripting - proftp log & iptables epoo Programming 1 04-28-2005 04:59 PM
proftp ScottCamp Linux - Newbie 3 11-02-2004 07:58 AM
ProFtp bnumark Linux - Software 5 06-28-2003 03:36 PM
proftp spate Linux - Software 2 01-09-2003 03:17 PM

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

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