Yep, ik weet, vage titel, maar ik wist even niks beters. Anyway.... Als ik probeer te connecten naar een ftp server:
Ik krijg de melding connected to..... en dan duurt het heel lang voordat ik echt een melding krijg van de ftp server. Deze PC staat achter een routertje met de volgende firewall:
Deze pc draait op slack 8.1 met kernel 2.4.18.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
| bash-2.05a# ftp 80.84.234.6 Connected to 80.84.234.6. 220 ProFTPD 1.2.2rc3 Server (Plushosting B.V.) [ns1.plushosting.nl] Name (80.84.234.6:root): download 331 Password required for download. Password: 230 User download logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 500 Illegal PORT command. ftp: bind: Address already in use ftp> |
Ik krijg de melding connected to..... en dan duurt het heel lang voordat ik echt een melding krijg van de ftp server. Deze PC staat achter een routertje met de volgende firewall:
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
| ~$ cat /etc/rc.d/rc.firewall #!/bin/bash ######################################################################################### # # # Firewall config script # # # ######################################################################################### # Path variabelen declareren PATH_IPT="/usr/sbin/iptables" PATH_MOD="/sbin/modprobe" # Modules laden $PATH_MOD ipt_REJECT $PATH_MOD ipt_REDIRECT $PATH_MOD iptable_mangle $PATH_MOD ipt_state $PATH_MOD iptable_nat $PATH_MOD iptable_filter $PATH_MOD ipt_MASQUERADE # Rules clearen $PATH_IPT -F $PATH_IPT -t nat -F $PATH_IPT -t mangle -F # Masquerading maken $PATH_IPT -t nat -A POSTROUTING -o ppp0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward # Toestaan huidige connecties of related connecties (FTP server die terugconnect) $PATH_IPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT # Alleen nieuwe connecties toestaan vanaf intranet #$PATH_IPT -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT # Dan de rest weigeren $PATH_IPT -P INPUT DROP # Sommige dingen toch wel toestaan $PATH_IPT -A INPUT --protocol tcp --dport 20 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 21 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 22 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 80 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 1963 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 2222 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6660 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6661 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6662 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6663 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6664 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6665 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6666 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6667 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6668 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 6669 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 7000 -j ACCEPT $PATH_IPT -A INPUT --protocol tcp --dport 5193 -j ACCEPT |
Deze pc draait op slack 8.1 met kernel 2.4.18.