Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-18-2003, 07:39 AM   #1
LQ Newbie
Registered: Dec 2003
Posts: 7

Rep: Reputation: 0
Allowing access to FTP server on LAN using IPTABLES - Help please

Hello. I am very new to iptbales. I have setup my FW and it is working fine. I have an FTP server on my LAN. I can see connection attempts from the outside over FTP. I'm sure it has to do something with the FORWARDING or NAT If somebody could pleace help me out. Thanks in advance

External IP of FW: Cable Link (
INternal IP of FW:
IP of FTP server:
Old 12-18-2003, 01:19 PM   #2
LQ Newbie
Registered: Dec 2003
Posts: 7

Original Poster
Rep: Reputation: 0
No worries it's cool. I figured it out.
Old 12-18-2003, 01:22 PM   #3
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18

iptables -t nat -A PREROUTING -p tcp --dport 20 -i eth0 -j DNAT --to
iptables -t nat -A PREROUTING -p tcp --dport 21 -i eth0 -j DNAT --to

might work..


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
IPTABLES How to access to web server on gateway from LAN? kozaki Linux - Networking 4 08-26-2005 12:27 PM
Allowing DHCP server access only to certain hostnames TVH Linux - Networking 3 11-23-2004 01:50 AM
iptables allowing all LAN traffic tebucky Linux - Security 1 11-04-2004 12:27 PM
GFTP allowing Root access to an FTP user scottpioso Red Hat 2 01-07-2004 07:20 PM
Havin trouble allowing FTP users to access files and directories bripage Linux - Networking 9 04-15-2002 04:54 PM

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration