hoi,
ik zie waarschijnlijk iets over het hoofd:
machine draait iptables (nat) en squid als proxy
eth1 is interne nic, eth0 externe
probleem: ik wil op mn clients nix instellen maar wel dat ze door de proxy surfen
dat zou moeten kunnen met de regel die nu uit gecomment is
maar ik krijg dan alleen maar time-outs bij het surfen
wanneer ik de proxy handmatig instel werkt het prima
iemand een idee ?
uiteraard google gebruikt en de surtsj
iptables info :
Squid info
ik zie waarschijnlijk iets over het hoofd:
machine draait iptables (nat) en squid als proxy
eth1 is interne nic, eth0 externe
probleem: ik wil op mn clients nix instellen maar wel dat ze door de proxy surfen
dat zou moeten kunnen met de regel die nu uit gecomment is
maar ik krijg dan alleen maar time-outs bij het surfen
wanneer ik de proxy handmatig instel werkt het prima
iemand een idee ?
uiteraard google gebruikt en de surtsj
iptables info :
code:
1
2
3
4
5
6
7
8
9
10
11
12
| #!/bin/sh /sbin/modprobe ipt_MASQUERADE iptables -F iptables -t nat -F iptables -t mangle -F iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE #iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128 echo 1 > /proc/sys/net/ipv4/ip_forward iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT iptables -P INPUT DROP iptables -A FORWARD -i eth0 -o eth0 -j REJECT |
Squid info
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
| root@guus:~# diff /etc/squid/squid.conf /etc/squid/squid.conf.default 53c53 < http_port 10.0.0.1:3128 --- > # http_port 3128 1721c1721 < http_access allow all --- > # http_access deny all 1743,1744c1743,1744 < acl our_networks src 10.0.0.0/24 < http_access allow our_networks --- > #acl our_networks src 192.168.1.0/24 192.168.2.0/24 > #http_access allow our_networks 2042,2043c2042,2043 < httpd_accel_port 80 < httpd_accel_host virtual --- > # httpd_accel_port 80 > 2071,2072c2071 < httpd_accel_with_proxy on < --- > # httpd_accel_with_proxy off 2092c2091 < httpd_accel_uses_host_header on --- > # httpd_accel_uses_host_header off |
[ Voor 7% gewijzigd door Verwijderd op 06-05-2003 16:09 ]