LinuxQuestions.org
Help answer threads with 0 replies.
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 07-26-2010, 07:52 AM   #1
pswen
LQ Newbie
 
Registered: Dec 2008
Posts: 27

Rep: Reputation: 0
iptables for ftp tratf


hello,
Click image for larger version

Name:	1.jpg
Views:	24
Size:	47.6 KB
ID:	4191

pc need download file from internet ftp server, but can't now,
how set iptables ?

iptables mod
[root@ad ~]# lsmod |grep ip
ip_nat_ftp 7361 0
ip_conntrack_ftp 11569 1 ip_nat_ftp
iptable_mangle 6849 0
iptable_nat 11077 1
ip_nat 21101 2 ip_nat_ftp,iptable_nat
ipt_REJECT 9665 1
ip_conntrack 53281 5 ip_nat_ftp,ip_conntrack_ftp,iptable_nat,ip_nat,xt_state
nfnetlink 10713 2 ip_nat,ip_conntrack
xt_multiport 7233 6
iptable_filter 7105 1
ip_tables 17029 3 iptable_mangle,iptable_nat,iptable_filter
x_tables 17349 6 iptable_nat,ipt_REJECT,xt_state,xt_tcpudp,xt_multiport,ip_tables
ipv6 270305 31 cnic
xfrm_nalgo 13381 1 ipv6
dm_multipath 25421 0
scsi_dh 12097 1 dm_multipath
dm_mod 63225 11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log


thanks!
 
Old 07-26-2010, 06:43 PM   #2
pswen
LQ Newbie
 
Registered: Dec 2008
Posts: 27

Original Poster
Rep: Reputation: 0
any idea ?
 
Old 07-26-2010, 08:08 PM   #3
m_pahlevanzadeh
Member
 
Registered: Sep 2002
Location: Iran/Tehran
Distribution: Debian
Posts: 94

Rep: Reputation: 28
You will need a rule in FORWARD to allow the connection through the firewall after the connection, ESTABLISHED,RELATED will handle the ftp connections.
 
Old 07-26-2010, 08:48 PM   #4
pswen
LQ Newbie
 
Registered: Dec 2008
Posts: 27

Original Poster
Rep: Reputation: 0
m_pahlevanzadeh

thanks!

-A FORWARD -s 172.16.0.0/255.255.255.0 -m state --state RELATED,ESTABLISHED -j ACCEPT

OK.
 
Old 07-26-2010, 08:55 PM   #5
m_pahlevanzadeh
Member
 
Registered: Sep 2002
Location: Iran/Tehran
Distribution: Debian
Posts: 94

Rep: Reputation: 28
[solved]

This thread is
[SOLVED]
 
  


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
iptables and ftp DBabo Linux - Server 6 08-11-2010 08:16 PM
FTP and Iptables Ammad Linux - Networking 9 09-02-2009 10:35 AM
ftp and iptables eantoranz Linux - Networking 1 07-04-2005 11:24 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

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

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