Onion pi ad blocking AP

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Rovhell
 
Posts: 13
Joined: Thu Apr 25, 2013 1:17 am

Onion pi ad blocking AP

Post by Rovhell »

Hi,
I successfully followed the onion pi and ad blocking AP tutorials. Now i tried to make a tor proxy that blocks ad, and nothing works. Do you have an idea why? And is it possible to make it work ? I'm such a noob so i'm quite lost. And to get it better, english is not my language. :-D

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Onion pi ad blocking AP

Post by adafruit_support_rick »

[moved to General Project Help]

Rovhell
 
Posts: 13
Joined: Thu Apr 25, 2013 1:17 am

Re: Onion pi ad blocking AP

Post by Rovhell »

Any suggestion? Anyone?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Onion pi ad blocking AP

Post by adafruit_support_mike »

There are a lot of moving pieces there, so we'll need more detail than "it doesn't work."

Can you make TOR connections through the WAP for non-ad-serving domains?

Rovhell
 
Posts: 13
Joined: Thu Apr 25, 2013 1:17 am

Re: Onion pi ad blocking AP

Post by Rovhell »

No i can't connect to the AP anymore. I see it in my wifi settings, and when i try to connect, it fails. It was working well with tor without ad blocking, and with ad blocking without tor.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Onion pi ad blocking AP

Post by adafruit_support_mike »

That sounds like a conflict between the TOR proxy and dnsmasq (used for the ad blocker).

What do you have in the file /etc/tor/torrc ?

Rovhell
 
Posts: 13
Joined: Thu Apr 25, 2013 1:17 am

Re: Onion pi ad blocking AP

Post by Rovhell »

Code: Select all

## Configuration file for a typical Tor user
## Last updated 22 April 2012 for Tor 0.2.3.14-alpha.
## (may or may not work for much older or much newer versions of Tor.)
## 
## Lines that begin with "## " try to explain what's going on. Lines
## that begin with just "#" are disabled commands: you can enable them
## by removing the "#" symbol.
##
## See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
## for more options you can use in this file.
## 
## Tor will look for this file in various places based on your platform:
## https://www.torproject.org/docs/faq#torrc

Log notice file /var/log/tor/notices.log
VirtualAddrNetwork 10.192.0.0/10
AutomapHostsSuffixes .onion,.exit
AutomapHostsOnResolve 1
TransPort 9040
TransListenAddress 192.168.42.1
DNSPort 53
DNSListenAddress 192.168.42.1
StrictExitNodes 1
ExitNodes {US},{GB}


## Tor opens a socks proxy on port 9050 by default -- even if you don't
## configure one below. Set "SocksPort 0" if you plan to run Tor only
## as a relay, and not make any local application connections yourself.
#SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
#SocksPort 192.168.0.1:9100 # Bind to this adddress:port too.

## Entry policies to allow/deny SOCKS requests based on IP address.
## First entry that matches wins. If no SocksPolicy is set, we accept
## all (and only) requests that reach a SocksPort. Untrusted users who
## can access your SocksPort may be able to learn about the connections
## you make.
#SocksPolicy accept 192.168.0.0/16
#SocksPolicy reject *

## Logs go to stdout at level "notice" unless redirected by something
## else, like one of the below lines. You can have as many Log lines as
## you want.
##
## We advise using "notice" in most cases, since anything more verbose
## may provide sensitive information to an attacker who obtains the logs.
##
## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
#Log notice file /var/log/tor/notices.log
## Send every possible message to /var/log/tor/debug.log
#Log debug file /var/log/tor/debug.log
## Use the system log instead of Tor's logfiles
#Log notice syslog
## To send all messages to stderr:
#Log debug stderr
## Uncomment this to start the process in the background... or use
## --runasdaemon 1 on the command line. This is ignored on Windows;
## see the FAQ entry if you want Tor to run as an NT service.
#RunAsDaemon 1

## The directory for keeping all the keys/etc. By default, we store
## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
#DataDirectory /var/lib/tor

## The port on which Tor will listen for local connections from Tor
## controller applications, as documented in control-spec.txt.
#ControlPort 9051
## If you enable the controlport, be sure to enable one of these
## authentication methods, to prevent BANNED from accessing it.
#HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C
#CookieAuthentication 1

############### This section is just for location-hidden services ###

## Once you have configured a hidden service, you can look at the
## contents of the file ".../hidden_service/hostname" for the address
## to tell people.
##
## HiddenServicePort x y:z says to redirect requests on port x to the
## address y:z.

#HiddenServiceDir /var/lib/tor/hidden_service/
#HiddenServicePort 80 127.0.0.1:80

#HiddenServiceDir /var/lib/tor/other_hidden_service/
#HiddenServicePort 80 127.0.0.1:80
#HiddenServicePort 22 127.0.0.1:22

################ This section is just for relays #####################
#
## See https://www.torproject.org/docs/tor-doc-relay for details.

## Required: what port to advertise for incoming Tor connections.
#ORPort 9001
## If you want to listen on a port other than the one advertised in
## ORPort (e.g. to advertise 443 but bind to 9090), you can do it as
## follows.  You'll need to do ipchains or other port forwarding
## yourself to make this work.
#ORPort 443 NoListen
#ORPort 127.0.0.1:9090 NoAdvertise

## The IP address or full DNS name for incoming connections to your
## relay. Leave commented out and Tor will guess.
#Address noname.example.com

## If you have multiple network interfaces, you can specify one for
## outgoing traffic to use.

## If you have multiple network interfaces, you can specify one for
## outgoing traffic to use.
# OutboundBindAddress 10.0.0.5

## A handle for your relay, so people don't have to refer to it by key.
#Nickname ididnteditheconfig

## Define these to limit how much relayed traffic you will allow. Your
## own traffic is still unthrottled. Note that RelayBandwidthRate must
## be at least 20 KB.
## Note that units for these config options are bytes per second, not bits
## per second, and that prefixes are binary prefixes, i.e. 2^10, 2^20, etc.
#RelayBandwidthRate 100 KB  # Throttle traffic to 100KB/s (800Kbps)
#RelayBandwidthBurst 200 KB # But allow bursts up to 200KB/s (1600Kbps)

## Use these to restrict the maximum traffic per day, week, or month.
## Note that this threshold applies separately to sent and received bytes,
## not to their sum: setting "4 GB" may allow up to 8 GB total before
## hibernating.
##
## Set a maximum of 4 gigabytes each way per period.
#AccountingMax 4 GB
## Each period starts daily at midnight (AccountingMax is per day)
#AccountingStart day 00:00
## Each period starts on the 3rd of the month at 15:00 (AccountingMax
## is per month)
#AccountingStart month 3 15:00

## Contact info to be published in the directory, so we can contact you
## if your relay is misconfigured or something else goes wrong. Google
## indexes this, so spammers might also collect it.
#ContactInfo Random Person <nobody AT example dot com>
## You might also include your PGP or GPG fingerprint if you have one:
#ContactInfo 0xFFFFFFFF Random Person <nobody AT example dot com>

## Uncomment this to mirror directory information for others. Please do
## if you have enough bandwidth.
#DirPort 9030 # what port to advertise for directory connections
## If you want to listen on a port other than the one advertised in
## DirPort (e.g. to advertise 80 but bind to 9091), you can do it as
## follows.  below too. You'll need to do ipchains or other port
## forwarding yourself to make this work.
#DirPort 80 NoListen
#DirPort 127.0.0.1:9091 NoAdvertise
## Uncomment to return an arbitrary blob of html on your DirPort. Now you
## can explain what Tor is if anybody wonders why your IP address is
## contacting them. See contrib/tor-exit-notice.html in Tor's source
## distribution for a sample.
#DirPortFrontPage /etc/tor/tor-exit-notice.html

## Uncomment this if you run more than one Tor relay, and add the identity
## key fingerprint of each Tor relay you control, even if they're on
## different networks. You declare it here so Tor clients can avoid
## using more than one of your relays in a single circuit. See
## https://www.torproject.org/docs/faq#MultipleRelays
## However, you should never include a bridge's fingerprint here, as it would
## break its concealability and potentionally reveal its IP/TCP address.
#MyFamily $keyid,$keyid,...

## A comma-separated list of exit policies. They're considered first
## to last, and the first match wins. If you want to _replace_
## the default exit policy, end this with either a reject *:* or an
## accept *:*. Otherwise, you're _augmenting_ (prepending to) the
## default exit policy. Leave commented to just use the default, which is
## described in the man page or at
## https://www.torproject.org/documentation.html
##
## Look at https://www.torproject.org/faq-abuse.html#TypicalAbuses
## for issues you might encounter if you use the default exit policy.
## 
## If certain IPs and ports are blocked externally, e.g. by your firewall,
## you should update your exit policy to reflect this -- otherwise Tor
## users will be told that those destinations are down.
## 
## For security, by default Tor rejects connections to private (local)
## networks, including to your public IP address. See the man page entry
## for ExitPolicyRejectPrivate if you want to allow "exit enclaving".
## 
#ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more
#ExitPolicy accept *:119 # accept nntp as well as default exit policy
#ExitPolicy reject *:* # no exits allowed

## Bridge relays (or "bridges") are Tor relays that aren't listed in the
## main directory. Since there is no complete public list of them, even an
## ISP that filters connections to all the known Tor relays probably
## won't be able to block all the bridges. Also, websites won't treat you
## differently because they won't know you're running Tor. If you can
## be a real relay, please do; but if not, be a bridge!
#BridgeRelay 1
## By default, Tor will advertise your bridge to users through various
## mechanisms like https://bridges.torproject.org/. If you want to run
## a private bridge, for example because you'll give out your bridge
## address manually to your friends, uncomment this line:
#PublishServerDescriptor 0


User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Onion pi ad blocking AP

Post by adafruit_support_mike »

Okay, nothing out of the ordinary there.

Do you see any errors in /var/log/messages from either dnsmasq or the TOR proxy?

Rovhell
 
Posts: 13
Joined: Thu Apr 25, 2013 1:17 am

Re: Onion pi ad blocking AP

Post by Rovhell »

Code: Select all


Aug 21 06:25:08 raspberrypi rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="2065" x-info="http://www.rs$
Aug 21 18:25:17 raspberrypi shutdown[2794]: shutting down for system reboot
Aug 21 18:25:37 raspberrypi kernel: imklog 5.8.11, log source = /proc/kmsg started.
Aug 21 18:25:37 raspberrypi rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="2063" x-info="http://www.rs$
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Booting Linux on physical CPU 0x0
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpu
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpuacct
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Linux version 3.12.22+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 $
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00$
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instructio$
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Machine: BCM2708
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] cma: CMA: reserved 8 MiB at 1b800000
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Memory policy: ECC disabled, Data cache writeback
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages:$
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2$
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Memory: 439664K/458752K available (4376K kernel code, 238K rwdata, 1$
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Virtual kernel memory layout:
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]       .text : 0xc0008000 - 0xc059d54c   (5718 kB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]       .init : 0xc059e000 - 0xc05c1ee4   ( 144 kB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]       .data : 0xc05c2000 - 0xc05fd900   ( 239 kB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000]        .bss : 0xc05fd90c - 0xc06ad0f8   ( 702 kB)
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Preemptible hierarchical RCU implementation.
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] NR_IRQS:394
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294$
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Switching to timer-based delay loop
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] Console: colour dummy device 80x30
Aug 21 18:25:37 raspberrypi kernel: [    0.000000] console [tty1] enabled
Aug 21 18:25:37 raspberrypi kernel: [    0.001264] Calibrating delay loop (skipped), value calculated using timer frequ$
Aug 21 18:25:37 raspberrypi kernel: [    0.001325] pid_max: default: 32768 minimum: 301
Aug 21 18:25:37 raspberrypi kernel: [    0.001822] Mount-cache hash table entries: 512
Aug 21 18:25:37 raspberrypi kernel: [    0.002655] Initializing cgroup subsys memory
Aug 21 18:25:37 raspberrypi kernel: [    0.002764] Initializing cgroup subsys devices
Aug 21 18:25:37 raspberrypi kernel: [    0.002803] Initializing cgroup subsys freezer
Aug 21 18:25:37 raspberrypi kernel: [    0.002836] Initializing cgroup subsys blkio
Aug 21 18:25:37 raspberrypi kernel: [    0.002979] CPU: Testing write buffer coherency: ok
Aug 21 18:25:37 raspberrypi kernel: [    0.003440] Setting up static identity map for 0xc0427670 - 0xc04276cc
Aug 21 18:25:37 raspberrypi kernel: [    0.005357] devtmpfs: initialized
Aug 21 18:25:37 raspberrypi kernel: [    0.022083] VFP support v0.3: implementor 41 architecture 1 part 20 variant b re$
Aug 21 18:25:37 raspberrypi kernel: [    0.023674] NET: Registered protocol family 16
Aug 21 18:25:37 raspberrypi kernel: [    0.029070] DMA: preallocated 4096 KiB pool for atomic coherent allocations
Aug 21 18:25:37 raspberrypi kernel: [    0.029762] cpuidle: using governor ladder
Aug 21 18:25:37 raspberrypi kernel: [    0.029809] cpuidle: using governor menu
Aug 21 18:25:37 raspberrypi kernel: [    0.030408] bcm2708.uart_clock = 0
Aug 21 18:25:37 raspberrypi kernel: [    0.032239] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
Aug 21 18:25:37 raspberrypi kernel: [    0.032294] hw-breakpoint: maximum watchpoint size is 4 bytes.
Aug 21 18:25:37 raspberrypi kernel: [    0.032332] mailbox: Broadcom VideoCore Mailbox driver
Aug 21 18:25:37 raspberrypi kernel: [    0.032432] bcm2708_vcio: mailbox at f200b880
Aug 21 18:25:37 raspberrypi kernel: [    0.032539] bcm_power: Broadcom power driver
Aug 21 18:25:37 raspberrypi kernel: [    0.032577] bcm_power_open() -> 0
Aug 21 18:25:37 raspberrypi kernel: [    0.032603] bcm_power_request(0, 8)
Aug 21 18:25:37 raspberrypi kernel: [    0.533325] bcm_mailbox_read -> 00000080, 0
Aug 21 18:25:37 raspberrypi kernel: [    0.533364] bcm_power_request -> 0
Aug 21 18:25:37 raspberrypi kernel: [    0.533595] Serial: AMBA PL011 UART driver
Aug 21 18:25:37 raspberrypi kernel: [    0.533764] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL$
Aug 21 18:25:37 raspberrypi kernel: [    0.891915] console [ttyAMA0] enabled
Aug 21 18:25:37 raspberrypi kernel: [    0.918799] bio: create slab <bio-0> at 0
Aug 21 18:25:37 raspberrypi kernel: [    0.924311] SCSI subsystem initialized
Aug 21 18:25:37 raspberrypi kernel: [    0.928310] usbcore: registered new interface driver usbfs
Aug 21 18:25:37 raspberrypi kernel: [    0.934015] usbcore: registered new interface driver hub
Aug 21 18:25:37 raspberrypi kernel: [    0.939579] usbcore: registered new device driver usb
Aug 21 18:25:37 raspberrypi kernel: [    0.946213] Switched to clocksource stc
Aug 21 18:25:37 raspberrypi kernel: [    0.950477] FS-Cache: Loaded
Aug 21 18:25:37 raspberrypi kernel: [    0.953632] CacheFiles: Loaded
Aug 21 18:25:37 raspberrypi kernel: [    0.969389] NET: Registered protocol family 2
Aug 21 18:25:37 raspberrypi kernel: [    0.974890] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
Aug 21 18:25:37 raspberrypi kernel: [    0.982300] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
Aug 21 18:25:37 raspberrypi kernel: [    0.988870] TCP: Hash tables configured (established 4096 bind 4096)
Aug 21 18:25:37 raspberrypi kernel: [    0.995321] TCP: reno registered
Aug 21 18:25:37 raspberrypi kernel: [    0.998618] UDP hash table entries: 256 (order: 0, 4096 bytes)
Aug 21 18:25:37 raspberrypi kernel: [    1.004490] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Aug 21 18:25:37 raspberrypi kernel: [    1.011248] NET: Registered protocol family 1
Aug 21 18:25:37 raspberrypi kernel: [    1.016179] RPC: Registered named UNIX socket transport module.
Aug 21 18:25:37 raspberrypi kernel: [    1.022236] RPC: Registered udp transport module.
Aug 21 18:25:37 raspberrypi kernel: [    1.026995] RPC: Registered tcp transport module.
Aug 21 18:25:37 raspberrypi kernel: [    1.031714] RPC: Registered tcp NFSv4.1 backchannel transport module.
Aug 21 18:25:37 raspberrypi kernel: [    1.039093] bcm2708_dma: DMA manager at f2007000
Aug 21 18:25:37 raspberrypi kernel: [    1.043831] bcm2708_gpio: bcm2708_gpio_probe c05cfed0
Aug 21 18:25:37 raspberrypi kernel: [    1.049398] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000$
Aug 21 18:25:37 raspberrypi kernel: [    1.059008] audit: initializing netlink socket (disabled)
Aug 21 18:25:37 raspberrypi kernel: [    1.064512] type=2000 audit(0.910:1): initialized
Aug 21 18:25:37 raspberrypi kernel: [    1.231149] VFS: Disk quotas dquot_6.5.2
Aug 21 18:25:37 raspberrypi kernel: [    1.235421] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Aug 21 18:25:37 raspberrypi kernel: [    1.244438] FS-Cache: Netfs 'nfs' registered for caching
Aug 21 18:25:37 raspberrypi kernel: [    1.251404] NFS: Registering the id_resolver key type
Aug 21 18:25:37 raspberrypi kernel: [    1.256696] Key type id_resolver registered
Aug 21 18:25:37 raspberrypi kernel: [    1.260903] Key type id_legacy registered
Aug 21 18:25:37 raspberrypi kernel: [    1.265668] msgmni has been set to 874
Aug 21 18:25:37 raspberrypi kernel: [    1.271482] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
Aug 21 18:25:37 raspberrypi kernel: [    1.279343] io scheduler noop registered
Aug 21 18:25:37 raspberrypi kernel: [    1.283298] io scheduler deadline registered (default)
Aug 21 18:25:37 raspberrypi kernel: [    1.288891] io scheduler cfq registered
Aug 21 18:25:37 raspberrypi kernel: [    1.294056] BCM2708FB: allocated DMA memory 5bc00000
Aug 21 18:25:37 raspberrypi kernel: [    1.299241] BCM2708FB: allocated DMA channel 0 @ f2007000
Aug 21 18:25:37 raspberrypi kernel: [    1.315222] Console: switching to colour frame buffer device 82x26
Aug 21 18:25:37 raspberrypi kernel: [    1.325333] uart-pl011 dev:f1: no DMA platform data
Aug 21 18:25:37 raspberrypi kernel: [    1.332435] vc-cma: Videocore CMA driver
Aug 21 18:25:37 raspberrypi kernel: [    1.337882] vc-cma: vc_cma_base      = 0x00000000
Aug 21 18:25:37 raspberrypi kernel: [    1.343892] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
Aug 21 18:25:37 raspberrypi kernel: [    1.350626] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
Aug 21 18:25:37 raspberrypi kernel: [    1.366645] brd: module loaded
Aug 21 18:25:37 raspberrypi kernel: [    1.376343] loop: module loaded
Aug 21 18:25:37 raspberrypi kernel: [    1.381034] vchiq: vchiq_init_state: slot_zero = 0xdb800000, is_master = 0
Aug 21 18:25:37 raspberrypi kernel: [    1.390200] Loading iSCSI transport class v2.0-870.
Aug 21 18:25:37 raspberrypi kernel: [    1.397684] usbcore: registered new interface driver smsc95xx
Aug 21 18:25:37 raspberrypi kernel: [    1.405188] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
Aug 21 18:25:37 raspberrypi kernel: [    1.612499] Core Release: 2.80a
Aug 21 18:25:37 raspberrypi kernel: [    1.617037] Setting default values for core params
Aug 21 18:25:37 raspberrypi kernel: [    1.623099] Finished setting default values for core params
Aug 21 18:25:37 raspberrypi kernel: [    1.829975] Using Buffer DMA mode
Aug 21 18:25:37 raspberrypi kernel: [    1.834517] Periodic Transfer Interrupt Enhancement - disabled
Aug 21 18:25:37 raspberrypi kernel: [    1.841622] Multiprocessor Interrupt Enhancement - disabled
Aug 21 18:25:37 raspberrypi kernel: [    1.848498] OTG VER PARAM: 0, OTG VER FLAG: 0
Aug 21 18:25:37 raspberrypi kernel: [    1.854109] Dedicated Tx FIFOs mode
Aug 21 18:25:37 raspberrypi kernel: [    1.859232] WARN::dwc_otg_hcd_init:1042: FIQ DMA bounce buffers: virt = 0xdbc140$
Aug 21 18:25:37 raspberrypi kernel: [    1.871728] FIQ FSM acceleration enabled for :
Aug 21 18:25:37 raspberrypi kernel: [    1.871728] Non-periodic Split Transactions
Aug 21 18:25:37 raspberrypi kernel: [    1.871728] Periodic Split Transactions
Aug 21 18:25:37 raspberrypi kernel: [    1.871728] High-Speed Isochronous Endpoints
Aug 21 18:25:37 raspberrypi kernel: [    1.893693] WARN::hcd_init:473: FIQ at 0xc03080cc
Aug 21 18:25:37 raspberrypi kernel: [    1.899870] WARN::hcd_init:474: FIQ ASM at 0xc0308348 length 36
Aug 21 18:25:37 raspberrypi kernel: [    1.907215] WARN::hcd_init:500: MPHI regs_base at 0xdc806000
Aug 21 18:25:37 raspberrypi kernel: [    1.914215] dwc_otg bcm2708_usb: DWC OTG Controller
Aug 21 18:25:37 raspberrypi kernel: [    1.920463] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
Aug 21 18:25:37 raspberrypi kernel: [    1.929122] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
Aug 21 18:25:37 raspberrypi kernel: [    1.935934] Init: Port Power? op_state=1
Aug 21 18:25:37 raspberrypi kernel: [    1.941170] Init: Power Port (0)
Aug 21 18:25:37 raspberrypi kernel: [    1.945935] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Aug 21 18:25:37 raspberrypi kernel: [    1.954091] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Aug 21 18:25:37 raspberrypi kernel: [    1.962667] usb usb1: Product: DWC OTG Controller
Aug 21 18:25:37 raspberrypi kernel: [    1.968688] usb usb1: Manufacturer: Linux 3.12.22+ dwc_otg_hcd
Aug 21 18:25:37 raspberrypi kernel: [    1.975809] usb usb1: SerialNumber: bcm2708_usb
Aug 21 18:25:37 raspberrypi kernel: [    1.982479] hub 1-0:1.0: USB hub found
Aug 21 18:25:37 raspberrypi kernel: [    1.987693] hub 1-0:1.0: 1 port detected
Aug 21 18:25:37 raspberrypi kernel: [    1.993817] usbcore: registered new interface driver usb-storage
Aug 21 18:25:37 raspberrypi kernel: [    2.001549] mousedev: PS/2 mouse device common for all mice
Aug 21 18:25:37 raspberrypi kernel: [    2.009134] bcm2835-cpufreq: min=700000 max=700000 cur=700000
Aug 21 18:25:37 raspberrypi kernel: [    2.016365] bcm2835-cpufreq: switching to governor powersave
Aug 21 18:25:37 raspberrypi kernel: [    2.023284] bcm2835-cpufreq: switching to governor powersave
Aug 21 18:25:37 raspberrypi kernel: [    2.030315] sdhci: Secure Digital Host Controller Interface driver
Aug 21 18:25:37 raspberrypi kernel: [    2.037778] sdhci: Copyright(c) Pierre Ossman
Aug 21 18:25:37 raspberrypi kernel: [    2.043443] sdhci: Enable low-latency mode
Aug 21 18:25:37 raspberrypi kernel: [    2.086429] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's$
Aug 21 18:25:37 raspberrypi kernel: [    2.097055] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
Aug 21 18:25:37 raspberrypi kernel: [    2.104291] sdhci-pltfm: SDHCI platform and OF driver helper
Aug 21 18:25:37 raspberrypi kernel: [    2.111467] ledtrig-cpu: registered to indicate activity on CPUs
Aug 21 18:25:37 raspberrypi kernel: [    2.121112] hidraw: raw HID events driver (C) Jiri Kosina
Aug 21 18:25:37 raspberrypi kernel: [    2.135471] usbcore: registered new interface driver usbhid
Aug 21 18:25:37 raspberrypi kernel: [    2.142566] usbhid: USB HID core driver
Aug 21 18:25:37 raspberrypi kernel: [    2.152475] TCP: cubic registered
Aug 21 18:25:37 raspberrypi kernel: [    2.159274] Initializing XFRM netlink socket
Aug 21 18:25:37 raspberrypi kernel: [    2.167027] NET: Registered protocol family 17
Aug 21 18:25:37 raspberrypi kernel: [    2.173056] Key type dns_resolver registered
Aug 21 18:25:37 raspberrypi kernel: [    2.186478] Indeed it is in host mode hprt0 = 00021501
Aug 21 18:25:37 raspberrypi kernel: [    2.196459] registered taskstats version 1
Aug 21 18:25:37 raspberrypi kernel: [    2.206919] Waiting for root device /dev/mmcblk0p2...
Aug 21 18:25:37 raspberrypi kernel: [    2.258641] mmc0: read SD Status register (SSR) after 3 attempts
Aug 21 18:25:37 raspberrypi kernel: [    2.286325] mmc0: new high speed SDHC card at address 0007
Aug 21 18:25:37 raspberrypi kernel: [    2.294922] mmcblk0: mmc0:0007 SD32G 29.8 GiB
Aug 21 18:25:37 raspberrypi kernel: [    2.304512]  mmcblk0: p1 p2
Aug 21 18:25:37 raspberrypi kernel: [    2.361053] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts$
Aug 21 18:25:37 raspberrypi kernel: [    2.372071] VFS: Mounted root (ext4 filesystem) on device 179:2.
Aug 21 18:25:37 raspberrypi kernel: [    2.382214] devtmpfs: mounted
Aug 21 18:25:37 raspberrypi kernel: [    2.387129] Freeing unused kernel memory: 140K (c059e000 - c05c1000)
Aug 21 18:25:37 raspberrypi kernel: [    2.406382] usb 1-1: new high-speed USB device number 2 using dwc_otg
Aug 21 18:25:37 raspberrypi kernel: [    2.414477] Indeed it is in host mode hprt0 = 00001101
Aug 21 18:25:37 raspberrypi kernel: [    2.616655] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
Aug 21 18:25:37 raspberrypi kernel: [    2.625693] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Aug 21 18:25:37 raspberrypi kernel: [    2.635235] hub 1-1:1.0: USB hub found
Aug 21 18:25:37 raspberrypi kernel: [    2.640673] hub 1-1:1.0: 3 ports detected
Aug 21 18:25:37 raspberrypi kernel: [    2.926489] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
Aug 21 18:25:37 raspberrypi kernel: [    3.036753] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
Aug 21 18:25:37 raspberrypi kernel: [    3.045291] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Aug 21 18:25:37 raspberrypi kernel: [    3.057750] smsc95xx v1.0.4
Aug 21 18:25:37 raspberrypi kernel: [    3.121209] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1,$
Aug 21 18:25:37 raspberrypi kernel: [    3.236570] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
Aug 21 18:25:37 raspberrypi kernel: [    3.368372] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=8176
Aug 21 18:25:37 raspberrypi kernel: [    3.377274] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 21 18:25:37 raspberrypi kernel: [    3.386315] usb 1-1.2: Product: 802.11n WLAN Adapter
Aug 21 18:25:37 raspberrypi kernel: [    3.392845] usb 1-1.2: Manufacturer: Realtek
Aug 21 18:25:37 raspberrypi kernel: [    3.398896] usb 1-1.2: SerialNumber: 00e04c000001
Aug 21 18:25:37 raspberrypi kernel: [    6.307567] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
Aug 21 18:25:37 raspberrypi kernel: [    7.573351] usbcore: registered new interface driver rtl8192cu
Aug 21 18:25:37 raspberrypi kernel: [   12.809668] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Aug 21 18:25:37 raspberrypi kernel: [   13.344328] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Aug 21 18:25:37 raspberrypi kernel: [   20.226160] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may$
Aug 21 18:25:37 raspberrypi kernel: [   23.300057] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
Aug 21 18:25:37 raspberrypi kernel: [   24.278891] ip_tables: (C) 2000-2006 Netfilter Core Team
Aug 21 18:25:37 raspberrypi kernel: [   24.326429] nf_conntrack version 0.5.0 (6999 buckets, 27996 max)
Aug 21 18:25:37 raspberrypi kernel: [   24.873155] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
Aug 21 18:25:40 raspberrypi kernel: [   30.779020] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:1023$
Some warnings but I see no error. I can randomly connect to the PI but my mac says "no internet connection".

Code: Select all

pi@raspberrypi ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:a4:49:9b  
          inet adr:192.168.0.24  Bcast:192.168.0.255  Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:719 errors:0 dropped:0 overruns:0 frame:0
          TX packets:494 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          RX bytes:56509 (55.1 KiB)  TX bytes:153894 (150.2 KiB)

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:0f:13:56:0e:52  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:195 errors:0 dropped:64 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          RX bytes:44710 (43.6 KiB)  TX bytes:2526 (2.4 KiB)

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Onion pi ad blocking AP

Post by adafruit_support_mike »

The output from `ifconfig` says your wireless adaptor hasn't been assigned an IP address. What do you have in /etc/network/interfaces ?

Rovhell
 
Posts: 13
Joined: Thu Apr 25, 2013 1:17 am

Re: Onion pi ad blocking AP

Post by Rovhell »

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0

iface wlan0 inet static
    adress 192.168.42.1
    network 255.255.255.0

up iptables-restore < /etc/iptables.ipv4.nat

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Onion pi ad blocking AP

Post by adafruit_support_mike »

Try adding:

Code: Select all

auto wlan0
after

Code: Select all

allow-hotplug wlan0
The 'auto' directive tells the OS to configure wlan0 any time it gets an `ifup` command that doesn't specify an interface (which is what happens during the boot process). Without it, you have to tell the OS to configure wlan0 explicitly.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”