Ajudar a encaminhar tráfego através do VirtualBox

2

Estou tentando criar um ponto de acesso com um laptop WIN 10, um ponto de acesso Cisco Meraki MR-18 (AP), um Oracle VirtualBox 5.1.4 e um Ubuntu 16.04 LTS, funcionando como uma máquina virtual (VM). para atender as conexões sem fio de entrada. O laptop tem uma porta Ethernet física conectada ao AP MR-18 e uma conexão sem fio à Internet.

O Problema: A partir de um dispositivo inteligente, posso estabelecer uma conexão sem fio através do MR-18 AP, abrir uma sessão SSH, conectar-me a um servidor HTTP na VM Unbuntu, ou PING (resolver assim) qualquer nome de domínio. No entanto, o MR-18 AP continua informando ter "Sem Internet" e, se eu tentar abrir qualquer URL no navegador do IPAD, isso não funcionará.

O VirtualBox cria o primeiro adaptador de rede e atribui endereço IP: 10.0.2.15/24 e Rota Padrão: 10.0.2.2/24 à interface do Ubuntu enps03. Esta é a conexão com o sistema operacional Windows 10 Host.

O segundo adaptador de rede VirtualBox é definido para estabelecer uma ponte entre a porta Ethernet física do laptop e a interface Ethernet virtual enps08 do segundo Ubuntu. Esta é a conexão com o AP MR-18.

Depois de criar essas duas conexões de rede no Ubuntu, nenhuma das duas interfaces Ethernet virtuais aparece no arquivo / etc / network / interfaces; no entanto, a primeira interface enp0s3 é UP e em execução e se comunicando com o sistema operacional host conforme ifconfig. A segunda interface virtual enp0s8 irá para CIMA e rodará assim que for declarada no arquivo de interfaces.

Arquivo de interfaces

Interfaces file
auto lo
iface lo inet loopback

auto enp0s3
iface enp0s3 inet dhcp

auto enp0s8
iface enp0s8 inet static
    address 192.168.2.1
    netmask 255.255.255.0

Ifconfig

  enp0s3   Link encap:Ethernet  HWaddr 08:00:27:0b:75:e8  
      inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
      inet6 addr: fe80::a00:27ff:fe0b:75e8/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:38693 errors:0 dropped:0 overruns:0 frame:0
      TX packets:17734 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:34637394 (34.6 MB)  TX bytes:2140816 (2.1 MB)

enp0s8    Link encap:Ethernet  HWaddr 08:00:27:b4:74:9d  
      inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
      inet6 addr: fe80::a00:27ff:feb4:749d/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:39564 errors:0 dropped:0 overruns:0 frame:0
      TX packets:10545 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:3753385 (3.7 MB)  TX bytes:1238937 (1.2 MB)

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:65536  Metric:1
      RX packets:1670 errors:0 dropped:0 overruns:0 frame:0
      TX packets:1670 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1 
      RX bytes:216048 (216.0 KB)  TX bytes:216048 (216.0 KB)

O dnsmasq do Ubuntu está configurado para atender as solicitações DHCP e DNS na segunda interface enp0s8, portanto, ele atribuirá um endereço IP e uma rota padrão ao AP MR-18.

dnsmaq.conf

domain-needed
bogus-prtv
filterwin2k
local=/oeinc.lan/
server=192.168.1.1
interface=enp0s8
bind-interfaces
expand-hosts
domain=oeinc.lan
dhcp-range=192.168.2.50,192.168.2.150,72hs

dnsmasq

— dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
   Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
  Drop-In: /run/systemd/generator/dnsmasq.service.d
           └─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
   Active: active (running) since Tue 2016-08-23 15:09:09 EDT; 3 days ago
 Main PID: 1748 (dnsmasq)
   CGroup: /system.slice/dnsmasq.service
       └─1748 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u   dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-  anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5

Aug 24 05:30:46 oehotspot dnsmasq-dhcp[1748]: DHCPREQUEST(enp0s8)  192.168.2.100 00:18:0a:84:0b:03
Aug 24 05:30:46 oehotspot dnsmasq-dhcp[1748]: DHCPACK(enp0s8) 192.168.2.100 00:18:0a:84:0b:03 m00180a840b03
Aug 24 11:14:16 oehotspot dnsmasq-dhcp[1748]: DHCPDISCOVER(enp0s8) 00:18:0a:84:0b:03
Aug 24 11:14:16 oehotspot dnsmasq-dhcp[1748]: DHCPOFFER(enp0s8) 192.168.2.100 00:18:0a:84:0b:03
Aug 24 11:14:16 oehotspot dnsmasq-dhcp[1748]: DHCPREQUEST(enp0s8) 192.168.2.100 00:18:0a:84:0b:03
Aug 24 11:14:16 oehotspot dnsmasq-dhcp[1748]: DHCPACK(enp0s8) 192.168.2.100 00:18:0a:84:0b:03 m00180a840b03
Aug 24 11:14:20 oehotspot dnsmasq-dhcp[1748]: DHCPDISCOVER(enp0s8) 28:d2:44:b3:96:a5
Aug 24 11:14:20 oehotspot dnsmasq-dhcp[1748]: DHCPOFFER(enp0s8) 192.168.2.128 28:d2:44:b3:96:a5
Aug 24 11:14:20 oehotspot dnsmasq-dhcp[1748]: DHCPREQUEST(enp0s8) 192.168.2.128 28:d2:44:b3:96:a5
Aug 24 11:14:20 oehotspot dnsmasq-dhcp[1748]: DHCPACK(enp0s8) 192.168.2.128 28:d2:44:b3:96:a5 Carlitros

As interfaces de rede no laptop do Windows 10:

Windows IP Configuration

   Host Name . . . . . . . . . . . . : Carlitros
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : Yes
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : oeinc.lan

Adaptador Ethernet Ethernet: (esta é a interface Ethernet virtual do Bridge para o Ubuntu)

   Connection-specific DNS Suffix  . : oeinc.lan
   Description . . . . . . . . . . . : Intel(R) Ethernet Connection I218-V
   Physical Address. . . . . . . . . : 28-D2-44-B3-96-A5
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::404a:2b1e:3ab2:fe62%7(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.2.128(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : August 24, 2016 1:49:06 PM
   Lease Expires . . . . . . . . . . : August 27, 2016 11:53:29 PM
   Default Gateway . . . . . . . . . : 192.168.2.1
   DHCP Server . . . . . . . . . . . : 192.168.2.1
   DHCPv6 IAID . . . . . . . . . . . : 120115780
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-2D-F0-7F-28-D2-44-B3-96-A5
   DNS Servers . . . . . . . . . . . : 192.168.2.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Rede Host-Only do VirtualBox para adaptador Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 0A-00-27-00-00-06
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::8dcf:5844:a517:227f%6(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 386531367
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-2D-F0-7F-28-D2-44-B3-96-A5
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Adaptador de LAN sem fio Wi-Fi:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-N 7260
   Physical Address. . . . . . . . . : E8-B1-FC-28-4F-29
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::54f7:c605:ff1a:a7f8%2(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.5(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : August 24, 2016 1:33:08 PM
   Lease Expires . . . . . . . . . . : August 25, 2016 11:53:21 PM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 48804348
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-2D-F0-7F-28-D2-44-B3-96-A5
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
    
por Juan-Carlos Perez 25.08.2016 / 23:22

0 respostas