LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 04-12-2005, 07:58 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
iptables and ftp


how would I allow ftp and other services through my iptables firewall rules. What is the syntax that I would need to use under IPTABLES?
 
Old 04-12-2005, 08:29 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Are you forwarding the traffic into a LAN or are you running the ftp service locally?
 
Old 04-12-2005, 08:30 PM   #3
chrisfirestar
Member
 
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Rep: Reputation: 30
$IPTABLES -A INPUT -i $OUTSIDE -d 0/0 -p tcp -m tcp --dport 21 -j ACCEPT

where $outside if your external ethernet card and 21 is your destination port. this will allow traffic from outside into your firewall.

Is the FTP server on your firewall machine? or on another PC in your network?
 
Old 04-12-2005, 08:37 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Please do not post the same question more than once. If your thread hasn't received adequate replies, feel free to bump it after 24 hours. However, LQ is an all volunteer site so try to be patient.

http://www.linuxquestions.org/rules.php

Please forward any replies to the original thread:
http://www.linuxquestions.org/questi...hreadid=312448
 
  


Closed Thread



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
iptables and ftp ciberrust Linux - Networking 2 11-19-2004 05:05 PM
ftp behind iptables fw PhatZero Linux - Software 1 02-19-2004 04:27 AM
IPTables and FTP - ftp on LAN adamgedde Linux - Newbie 6 10-16-2003 08:11 PM
ftp and ftp port forwarding with IPtables?? FunkFlex Linux - Security 3 04-24-2002 03:03 AM
FTP Through IPTables JHuizingh Linux - Networking 5 03-08-2002 11:37 PM

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

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