Skip to content

opkg: setup intel proxy

sethismyfriend edited this page Nov 17, 2014 · 3 revisions

This only works when you are inside the Intel Corp. intranet....

To ensure that WIFI is off connmanctl disable wifi

enp0s20f6 Link encap:Ethernet  HWaddr 98:4F:EE:01:71:AE
          inet addr:143.183.248.79  Bcast:143.183.248.255  Mask:255.255.255.0
          inet6 addr: fe80::9a4f:eeff:fe01:71ae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9264 errors:0 dropped:10 overruns:0 frame:0
          TX packets:268 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:741549 (724.1 KiB)  TX bytes:40218 (39.2 KiB)
          Interrupt:50 Base address:0x8000

I am on the intranet - confirming by:

root@sethV5:/usr/sbin# ping iot-monkey.iwi.intel.com
PING iot-monkey.iwi.intel.com (172.28.33.59): 56 data bytes
64 bytes from 172.28.33.59: seq=0 ttl=57 time=164.459 ms
64 bytes from 172.28.33.59: seq=1 ttl=57 time=162.418 ms
64 bytes from 172.28.33.59: seq=2 ttl=57 time=162.523 ms

In my /etc/opkg/ folder I archived all external configs into a temp folder because while on the ethernet it's trying to connect to http://iotdk.intel.com/repos/1.1/iotdk and failing when I run opkg update.

root@sethV5:/etc/opkg# ls
arch.conf  opkg.conf  proxy.conf  temp
root@sethV5:/etc/opkg# cat proxy.conf
src intel-proxy http://iot-monkey.iwi.intel.com/iot-devkit/intel-proxy

Then I opkg update and opkg install intel-proxy.

This appears to have put the usr/sbin/setup-proxy and dependencies on my galileo.

I then run setup-proxy up and it appears to start the proxy. At this point I should be able to run ping google.com however - this is not working.

Execute the following to check the rules and that redsocks is running forwarding the traffic and then check the journal for client connects.

iptables -t nat -vnL
systemctl status redocks
journalctl -f