Hallo, ik heb hier een gateway staan tussen het LAN en het internet. Mandrake 8.2 met squid, iptables, samba, apache met perl & php.
Nu wil ik deze gateway voor het LAN webserver (dus eigenlijk intranet ja) laten draaien. Apache draait al maar als ik hem probeer te bereiken krijg ik de volgende error:
De firewall ziet er zo uit:
wat is het probleem?
Nu wil ik deze gateway voor het LAN webserver (dus eigenlijk intranet ja) laten draaien. Apache draait al maar als ik hem probeer te bereiken krijg ik de volgende error:
code:
1
2
3
4
5
6
7
| Forbidden You don't have permission to access / on this server. -------------------------------------------------------------------------------- Apache-AdvancedExtranetServer/1.3.23 Server at ***.***.***.*** Port 80 |
De firewall ziet er zo uit:
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
| #!/bin/sh # # Initialization script to set up tight rules-based firewalling and # masquerading for private LAN <-> internet gateways # (C) 2001-2002 A.H.C. Aerts # # iptables.sh # # set the following variables to match your network echo -n "Setting up firewalling rules..." LOCALNET=192.168.1.0/24 INTERNAL=eth1 EXTERNAL=eth0 # de module ipchains verwijderen indien nodig modprobe -r ipchains modprobe ip_nat_ftp #modprobe ip_conntrack_ftp #modprobe ip_vs_ftp echo 1 > /proc/sys/net/ipv4/ip_forward iptables --flush iptables --table nat --flush iptables --delete-chain iptables --table nat --delete-chain # Set up IP FORWARDing and Masquerading iptables --table nat --append POSTROUTING --out-interface $EXTERNAL -j MASQUERADE iptables --append FORWARD --in-interface $INTERNAL -j ACCEPT # Allow loopback access. This rule must come before the rules denying port access!! iptables -A INPUT -i lo -p all -j ACCEPT iptables -A OUTPUT -o lo -p all -j ACCEPT iptables -A INPUT -p all -s $LOCALNET -d $LOCALNET -j ACCEPT iptables -A INPUT -i $EXTERNAL -p tcp -s 0/0 -d 0/0 --dport 8080 -j DROP iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 2049 -j DROP iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 6000:6009 -j DROP iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 7100 -j DROP iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 515 -j DROP iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 515 -j DROP iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 111 -j DROP iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 111 -j DROP iptables -A INPUT -p all -s localhost -i $INTERNAL -j DROP echo "Done." |
wat is het probleem?