2012-12-06 - [GRASE-Hotspot] (no subject)

Header Data

From: Zubair Riaz Ahmad <sa***r@gmail.com>
Message Hash: 5f39bc979f2b2d5c5349b9275740f1d9d5337f7de39c4eecf58babf9a6a868b3
Message ID: <50C0F85A.6030900@gmail.com>
Reply To: N/A
UTC Datetime: 2012-12-06 12:56:10 UTC
Raw Date: Thu, 06 Dec 2012 22:56:10 +0300

Raw message

I did a fresh install on ubuntu 12.04
there is browsing on the clients PCs but I can not see any event in tail 
-f /var/log/squid3/access.log  "ps aux |grep squid3" says squid is 
running there.
in squid.conf i changed http_port 3128 to http_port 3128 transparent
and in /etc/chilli/ the file ipup.sh says



/ # Redirect to Squid proxy (drop direct attempts to proxy)
     ipt -I PREROUTING -t mangle -p tcp -s $NET/$MASK -d $ADDR --dport 
3128 -j DROP
     ipt -I PREROUTING -t nat -i $TUNTAP -p tcp -s $NET/$MASK -d ! $ADDR 
--dport 80 -j REDIRECT --to 3128
# MASQUERADE
     ipt -I POSTROUTING -t nat -o $HS_WANIF -j MASQUERADE/

hotspot machine is defualt mode in all IP settings.

/etc/network/interface
/

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp/

ifconfig says this

/root@ubuntuthamad:~# ifconfig
eth0      Link encap:Ethernet  HWaddr d8:5d:4c:81:5a:bf
           inet addr:192.168.0.137  Bcast:192.168.0.255 Mask:255.255.255.0
           inet6 addr: fe80::da5d:4cff:fe81:5abf/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:2468725 errors:0 dropped:0 overruns:0 frame:0
           TX packets:1446667 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:3158425162 (3.1 GB)  TX bytes:143147889 (143.1 MB)
           Interrupt:18 Base address:0xc00

eth1      Link encap:Ethernet  HWaddr 1c:7e:e5:1c:91:ab
           inet6 addr: fe80::1e7e:e5ff:fe1c:91ab/64 Scope:Link
           UP BROADCAST RUNNING  MTU:1500  Metric:1
           RX packets:1648681 errors:0 dropped:0 overruns:0 frame:0
           TX packets:2359987 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:176387092 (176.3 MB)  TX bytes:2872497945 (2.8 GB)
           Interrupt:19 Base address:0x2800

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:32513 errors:0 dropped:0 overruns:0 frame:0
           TX packets:32513 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:5705283 (5.7 MB)  TX bytes:5705283 (5.7 MB)

tun0      Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
           inet addr:10.1.0.1  P-t-P:10.1.0.1 Mask:255.255.255.0
           UP POINTOPOINT RUNNING  MTU:1500  Metric:1
           RX packets:1443121 errors:0 dropped:0 overruns:0 frame:0
           TX packets:2428712 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:127504250 (127.5 MB)  TX bytes:3076205328 (3.0 GB)

tun1      Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
           inet addr:10.64.63.225  P-t-P:10.64.63.1 Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500 Metric:1
           RX packets:1932 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:677894 (677.8 KB)  TX bytes:0 (0.0 B)

root@ubuntuthamad:~# /

Resolv.conf
/
root@ubuntuthamad:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by 
resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.1/

iptables -t nat -L

/root@ubuntuthamad:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere /

Is squid running..
/
  ps aux |grep squid
proxy      981  0.0  0.8  38300 12888 ?        Ss   Nov29 0:12 
/usr/sbin/squid3 -N -YC -f /etc/squid3/squid.conf.grase -f 
/etc/squid3/squid.conf.grase
root      5602  0.0  0.0   4388   808 pts/0    S+   00:59 0:00 grep 
--color=auto squid/


thanks.

Thread