Difference between revisions of "Troubleshoot FTP"

From FOG Project
Jump to: navigation, search
(Created page with " == Troubleshoot FTP == Article currently under construction. When done, it'll look a whole lot like the "Troubleshoot TFTP" article in structure.")
 
(Template for future FTP troubleshooting page. incomplete right now.)
Line 3: Line 3:
  
  
Article currently under construction.
+
Article currently under construction. Last updated 4-28-2015
  
 
When done, it'll look a whole lot like the "Troubleshoot TFTP" article in structure.
 
When done, it'll look a whole lot like the "Troubleshoot TFTP" article in structure.
 +
 +
 +
 +
== Testing FTP ==
 +
 +
'''Try to get a file with Linux:'''
 +
 +
<pre>code here</pre>
 +
 +
'''Try to get a file with Windows:'''
 +
 +
<pre>code here</pre>
 +
 +
 +
 +
== FTP Service ==
 +
 +
'''Fedora 20/21'''
 +
 +
status/enable/restart
 +
 +
<pre>code here</pre>
 +
 +
'''Ubuntu'''
 +
 +
status/enable/restart
 +
 +
<pre>code here</pre>
 +
 +
 +
 +
== FTP Settings File ==
 +
 +
'''Fedora:'''
 +
 +
Location:
 +
 +
<pre>code here</pre>
 +
 +
To display file:
 +
 +
<pre>code here</pre>
 +
 +
It should look a lot like this:
 +
 +
<pre>code here</pre>
 +
 +
To edit:
 +
 +
<pre>code here</pre>
 +
 +
Explanation of settings:
 +
 +
<pre>code here</pre>
 +
 +
 +
 +
'''Ubuntu:'''
 +
 +
Location:
 +
 +
<pre>code here</pre>
 +
 +
To display file:
 +
 +
<pre>code here</pre>
 +
 +
It should look a lot like this:
 +
 +
<pre>code here</pre>
 +
 +
To edit:
 +
 +
<pre>code here</pre>
 +
 +
Explanation of settings:
 +
 +
<pre>code here</pre>
 +
 +
 +
--------------------------------------------------
 +
'''Instructions on using Vi: [[Vi]]'''
 +
--------------------------------------------------
 +
 +
 +
'''Troubleshoot FTP'''
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
=== Disable/verify Firewall ===
 +
 +
 +
 +
'''Disable & Stop Firewall in Fedora 20/21'''
 +
<pre>systemctl disable firewalld.service</pre>
 +
<pre>systemctl stop firewalld.service</pre>
 +
Can be undone with "start" and "enable".
 +
 +
'''Check Firewall in Fedora 20/21'''
 +
<pre>systemctl status firewalld.service</pre>
 +
 +
'''Fedora 16'''
 +
 +
<pre>
 +
Add /bin/bash to /etc/shells as the vsftpd yum install does not do it correctly causing tftp timeout message
 +
</pre>
 +
 +
 +
'''Check Firewall in Debian/Ubuntu'''
 +
<pre>sudo iptables -L</pre>
 +
 +
If disabled, the output should look like this:
 +
 +
<pre>Chain INPUT (policy ACCEPT)
 +
target prot opt source destination
 +
 +
Chain FORWARD (policy ACCEPT)
 +
target prot opt source destination
 +
 +
Chain OUTPUT (policy ACCEPT)
 +
target prot opt source destination</pre>
 +
 +
'''Disable Ubuntu Firewall'''
 +
<pre>
 +
sudo ufw disable
 +
</pre>
 +
 +
'''Disable Debian Firewall'''
 +
<pre>
 +
iptables -F
 +
iptables -X
 +
iptables -t nat -F
 +
iptables -t nat -X
 +
iptables -t mangle -F
 +
iptables -t mangle -X
 +
iptables -P INPUT ACCEPT
 +
iptables -P OUTPUT ACCEPT
 +
iptables -P FORWARD ACCEPT
 +
</pre>
 +
 +
'''Temporarily disable Windows firewall'''
 +
 +
 +
 +
Change this picture to be specific to FTP.
 +
 +
[[File:TFTP Windows Firewall.png]]
 +
 +
 +
 +
 +
 +
== Permissions ==
 +
 +
 +
permissions for the /images directory

Revision as of 13:31, 28 April 2015

Troubleshoot FTP

Article currently under construction. Last updated 4-28-2015

When done, it'll look a whole lot like the "Troubleshoot TFTP" article in structure.


Testing FTP

Try to get a file with Linux:

code here

Try to get a file with Windows:

code here


FTP Service

Fedora 20/21

status/enable/restart

code here

Ubuntu

status/enable/restart

code here


FTP Settings File

Fedora:

Location:

code here

To display file:

code here

It should look a lot like this:

code here

To edit:

code here

Explanation of settings:

code here


Ubuntu:

Location:

code here

To display file:

code here

It should look a lot like this:

code here

To edit:

code here

Explanation of settings:

code here



Instructions on using Vi: Vi



Troubleshoot FTP






Disable/verify Firewall

Disable & Stop Firewall in Fedora 20/21

systemctl disable firewalld.service
systemctl stop firewalld.service

Can be undone with "start" and "enable".

Check Firewall in Fedora 20/21

systemctl status firewalld.service

Fedora 16

Add /bin/bash to /etc/shells as the vsftpd yum install does not do it correctly causing tftp timeout message


Check Firewall in Debian/Ubuntu

sudo iptables -L

If disabled, the output should look like this:

Chain INPUT (policy ACCEPT)
target prot opt source destination 

Chain FORWARD (policy ACCEPT)
target prot opt source destination 

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Disable Ubuntu Firewall

sudo ufw disable

Disable Debian Firewall

iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

Temporarily disable Windows firewall


Change this picture to be specific to FTP.

TFTP Windows Firewall.png



Permissions

permissions for the /images directory