Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-28-2003, 08:50 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2003
Location: South-East England
Distribution: Ubuntu
Posts: 7
Rep:
|
vsftpd - strange remote behaviour
So, I am relatively new to Linux, and I set up an ftp on my friends computer so I could download some of his files, It's Red hat 8 running vsftpd (I hope!)
anyway, When on his machine or logged in remotely via ssh, I can say "Ftp localhost" and it works fine, asks for my username/password and then allows me to view my files.
Now, when I came home and tried to do the same, it said :
Code:
[xgkkp@nick xgkkp]$ ftp 80.X.XXX.X
Connected to 80.X.XXX.X (80.X.X.X).
421 Service not available, remote server has closed connection
ftp>
Does anyone have a clue what is going on? He's directly connected through a cable modem, and I am through a firewall-type-thing.
Thanks a lot,
Nick
Last edited by Xgkkp; 08-29-2003 at 10:05 AM.
|
|
|
|
08-29-2003, 01:40 PM
|
#2
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Welcome to LQ.
Check to see if he has any firewalls running at his end:
iptables -L
|
|
|
|
08-29-2003, 02:11 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2003
Location: South-East England
Distribution: Ubuntu
Posts: 7
Original Poster
Rep:
|
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Lokkit-0-50-INPUT (2 references)
target prot opt source destination
ACCEPT udp -- cache2.ntli.net anywhere udp spt:domain dpts:1025:65535
ACCEPT udp -- cache1.ntli.net anywhere udp spt:domain dpts:1025:65535
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh flags:SYN,RST,ACK/SYN
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
I have no idea how to read this
Last edited by Xgkkp; 08-29-2003 at 02:19 PM.
|
|
|
|
08-29-2003, 02:27 PM
|
#4
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
IT looks like you are blockign port 21 (ftp). Try running "lokkit" and change the firewall settings to allow ftp. Either that or disable the firewall (not recommended but good for testing):
iptables -F
Ideally you should make your own firewall rules instead of using lokkit as it is much more advanced yet easier to understand.
|
|
|
|
08-30-2003, 12:21 PM
|
#5
|
|
LQ Newbie
Registered: Aug 2003
Location: South-East England
Distribution: Ubuntu
Posts: 7
Original Poster
Rep:
|
Ahhh thanks very much, it works perfectly.
Out of curiosity, what would have been the equivalent command to manaully add an iptable rule?
|
|
|
|
08-30-2003, 12:50 PM
|
#6
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Something like:
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
|
|
|
|
| Thread Tools |
Search this 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:08 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|