Ik ben bezig met het opzetten van een FTP server op mijn Debian Testing desktop. Ik heb een iptable gemaakt. Ik heb rekening gehouden met de instellingen van proftpd.conf zoals Masquerading Address, Passive Ports en de gewoonlijke poort 21. In mijn iptables heb ik deze poorten samen met poort 20 geopend. In de firewall van mijn router staan dezelfde poorten open. Voordat ik met iptables begon werkte alles prima met TLS en zonder.
Toch gaat het met het connecten fout hierna:
Dit is mijn iptables configuratie, tips voor FTP zijn van harte welkom maar ook andere tips voor mijn iptables want volgens mij is hij nogal basic.
Toch gaat het met het connecten fout hierna:
code:
1
2
3
4
| Response: 234 AUTH TLS successful Status: Initializing TLS... Error: Connection timed out Error: Could not connect to server |
Dit is mijn iptables configuratie, tips voor FTP zijn van harte welkom maar ook andere tips voor mijn iptables want volgens mij is hij nogal basic.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| *filter # Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0 -A INPUT -i lo -j ACCEPT -A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT # Accepts all established inbound connections -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT # Allows all outbound traffic -A OUTPUT -j ACCEPT # Allows HTTP and HTTPS connections from anywhere -A INPUT -p tcp --dport 80 -j ACCEPT -A INPUT -p tcp --dport 443 -j ACCEPT # Allows FTP connections from anywhere # The passive ports are also set up -A INPUT -p tcp -m tcp --dport 20:21 -j ACCEPT -A INPUT -p tcp -m tcp --dport 60000:65534 -j ACCEPT # Allows SSH connections from anywhere -A INPUT -p tcp -m state --state NEW --dport 22 -j ACCEPT # Allow ping -A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT # log iptables denied calls (access via 'dmesg' command) -A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7 # Reject all other inbound - default deny unless explicitly allowed policy -A INPUT -j REJECT -A FORWARD -j REJECT COMMIT |