LinuxQuestions.org
Review your favorite Linux distribution.
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


Reply
  Search this Thread
Old 12-18-2003, 06:39 AM   #1
sergio3986
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 (24.157.3.200)
INternal IP of FW: 192.168.10.2
IP of FTP server: 192.168.10.15
 
Old 12-18-2003, 12:19 PM   #2
sergio3986
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, 12:22 PM   #3
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
try...

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

might work..
 
  


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

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

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