Ho bisogno del mio MacBook Air (Mavericks 10.9.2) per condividere la connessione Internet (wi-fi; en0) con BeagleBone Black (BBB) che si trova nella subnet 192.168.7.0 (en6).
ifconfig:
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 7c:d1:c3:ee:f3:dd
inet6 fe80::7ed1:c3ff:feee:f3dd%en0 prefixlen 64 scopeid 0x4
inet 192.168.2.35 netmask 0xffffff00 broadcast 192.168.2.255
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
en5: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=60<TSO4,TSO6>
ether 32:00:18:d5:b1:40
media: autoselect <full-duplex>
status: inactive
en6: flags=863<UP,BROADCAST,SMART,RUNNING,SIMPLEX> mtu 1486
ether 90:59:af:58:5e:96
inet 192.168.7.1 netmask 0xfffffffc broadcast 192.168.7.3
media: autoselect
status: active
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether 7e:d1:c3:ee:e2:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en5 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 5 priority 0 path cost 0
nd6 options=1<PERFORMNUD>
media: <unknown type>
status: inactive
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
ether 0e:d1:c3:ee:f3:dd
media: autoselect
status: inactive
Ecco le mie impostazioni di condivisione Internet
Non riesco a eseguire il ping 8.8.8.8 da BBB anche se ho condiviso il wi-fi con BeagleBoneBlack. Se condivido la connessione a Internet o no ipfw
dà lo stesso risultato
$ sudo ipfw list
65535 allow ip from any to any
Ho provato a disabilitare il firewall invano. Potrei condividere la mia connessione Internet dalla macchina Ubuntu tramite iptables. Qui ho bisogno di mascherare i pacchetti attraverso l'interfaccia del gateway.
Dovrei aver configurato qualcosa come un NAT sul ponte tra en0 (accesso internet) ed en6?