LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-02-2006, 11:12 PM   #1
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Rep: Reputation: 15
Firewalling Problem


Hi everybody!

I'm having problems opening port 21 (ftp) for incoming connections outside my LAN...

I'm using this rule to allow connections whenever I want to...

Code:
iptables -A INPUT -i $wanic -p tcp --dport 21 -j ACCEPT
This will allow tcp incoming connections that enter my wan nic destined to port 21.

Anyway, I can't connect outside the LAN. Inside my LAN i can connect nicely. But when I make probe testing to see if the port is open it shows stealth...

Even if I turn off all security (flushing all tables and policies), this port (plus port 80 and some others) still show as Stealth. I'm using vsftpd by the way...

iptables -L |grep ftp shows:
Code:
ACCEPT  tcp  --  anywhere   anywhere   tcp   dpt:ftp
Thanks in advance.
 
Old 05-03-2006, 03:54 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
What is $wanic defined as in your script?
Mine would be more like this
IPTABLES -A ALLOW_PORTS -m state --state NEW -p tcp -i eth0 --dport 21 -j ACCEPT

Only other thing I can think of is something in /etc/vsftpd/vsftpd.conf

Brian1
 
Old 05-03-2006, 10:36 PM   #3
Palula
Member
 
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138

Original Poster
Rep: Reputation: 15
I'm not having problems anymore...
The problem is with my ISP. It is blocking connections towards port 21.
I just had to change the port.
Thanks anyway!
 
  


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
urgent!!need help!firewalling using iptables...... Fatz Programming 2 09-16-2004 12:41 PM
IPtables v1.2.6a firewalling problem mmx87 Linux - Security 2 06-16-2004 10:12 PM
firewalling questions Ninja_212 Slackware 4 11-10-2003 03:26 PM
Slackware firewalling jamaso Linux - Security 1 02-08-2002 10:33 AM
Kernel 2.4.* and firewalling projfw Linux - Newbie 3 08-01-2001 07:52 PM

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

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