/MITE

How to share mobile internet (wifi hotspost) to wired ethernet (LAN) devices. This is useful if you only use your phone data connection to access the internet, connecting wifi devices to the phone is not a problem with wifi hotspot feature however it is a problem for connecting wired (ethernet) type devices. In this case you would need a repeater bridge. In this case I use the WRT54G WIFI router flashed with dd-wrt.

MITE - Mobile Internet to Ethernet

How to share mobile internet (wifi hotspost) to wired ethernet (LAN) devices with dd-wrt this assumes you have a router flashed with dd-wrt and repeater bridge option available. I have included screenshots of most config page so you can check your own configuration but most of the settings are left to their default values.

Hardware used in this tutorial

Linksys WRT54G/GL/GS Samsung Galaxy S6
(Broadcom BCM5352 chip rev 0) flashed with dd-wrt firmware v24-sp2 (07/22-09) micro - build 12548M NEWD Eko
(useful pages @ https://wiki.dd-wrt.com/wiki/index.php/Linksys_WRT54G/GL/GS/GX) Any wifi modem router could also be used instead or any other phone with hotspot function but the point here is to explain how to share mobile phone internet with wired devices
WRT54G Samsung_Galaxy_S6_Scaled

Router status page

  • Detail of software flashed and router spec

image

Step by Step

Note: Click 'Save' everytime you change a settings, once all settings have been modified select 'Apply Settings' and wait for router to reboot.

1. Configure android phone hotspot

  • Network Name : e.g. WIFI_1
  • Password: choose your own wifi password
  • Hide my device: unselected (optional, select if you want to hide SSID)
  • Security: WPA2 PSK
  • Wifi Sharing: On
  • Timeout Setting: Never Timeout (optional)
  • Band: 2.4Ghz
  • Turn Mobile HotSpot On
  • Connect a device to check ip address range and subnet mask (in this case address range is 192.168.43.x subnet 255.255.255.0) hotspot ip address is 192.168.43.1

2. Configure WRT54G (Setup Page)

  • reset router by pressing the hardware switch

image

  • connect to open wifi dd-wrt or use an ethernet cable instead

  • open browser and type 192.168.1.1

  • you should be greeted with a page inviting to set admininistrator user and password.

  • once set go to Setup -> basic setup

    • disable STP
    • choose rooter name (optional)
    • set local IP address of router to 192.168.43.2
    • subnet mask = 255.255.255.0
    • Gateway adress: 192.168.43.1
    • Local DNS: 192.168.43.1
    • Assign WAN Port to Switch: (Optional) select if you want to make an extra ethernet port available for an additional device
    • NTP Client: disbale (optional) image
  • Setup -> DDNS (disable)

  • Setup -> Mac Address Clone (disable)

  • Setup -> Advanced Routing

    • Operating Mode: Select Router
    • Dynamic Routing: Disbale
    • Static Routing: leave default settings image
  • Setup -> VLAN

image

  • Setup -> Networking

image

3. Configure WRT54G (Wireless Page)

  • Wireless-> Basic Settings
    • Wireless mode: Repeater Bridge
    • Wireless Network Mode: Mixed or choose G-Only
    • Wireless Network Name (SSID): WIFI_1 (same as phone hotspot)
    • Sensitivity Range (ACK Timing): 2000 (default) unless you know what your doing
    • Network Configuration: Bridged
    • Click add a virtual Interface
    • Wireless Netwrok Name (SSID): WIFI_2 (or any other name)
    • Wireless SSID Broadcast: Enable (or Disable if you want to hide the network)
    • AP Isolation: Disable
    • Network Configuration: Bridged

image

  • Wireless -> Radius (skip this, only configurable in AP isolation mode anyway)

  • Wireless -> Wireless Security

    --Physical Interface-- Encryption has to match mobile hotspot encryption (these are settings that worked for me)

    • Security Mode: WPA2 Personal
    • WPA algorithms: AES
    • WPA Shared Key: Same as Mobile HotSpot
    • Key Renewal Interval (in seconds): 3600 (default)

    --Virtual Interfaces-- Encryption has to match mobile hotspot encryption (these are settings that worked for me)

    • Security Mode: WPA2 Personal
    • WPA algorithms: AES
    • WPA Shared Key: Same as Mobile HotSpot
    • Key Renewal Interval (in seconds): 3600 (default)

    image

  • Wireless -> Mac Filter (optional - specify MAC address of devices allowed on the network if you want to restrict access to certain devices only this option is also available on the mobile hotspot).

image

  • Wireless -> Advanced Settings (leave everything to default)
    • Wireless GUI Access: Enable (if Disable is selected you will not be able to access this configuration interface via Wifi anymore).

image

  • Wireless -> WDS (skip, leave default settings)

image

4. Configure WRT54G (Services Page)

  • Services -> Services (leave default settings except DNSMasq)
    • DNSMasq: Disable
    • Telnet: Enable --default-- (set to Disable if you do not want to allow configuration via telnet)

image

  • Services -> Hostpot (leave default settings)

image

  • Services -> My Ad Network (skip - leave default settings)

image

  • Security -> Firewall

    • SPI Firewall: Disable
    • Additional Filter: uncheck all
    • Block Wan Requests: check only Filter Multicast

    image

    • Security -> VPN Passthrough (skip, leave default settings)

    image

5. Configure WRT54G (Access Restrictions Pages)

  • Access Restrictions -> WAN Access (skip, leave default settings)

image

6. Configure WRT54G (NAT / QoS Pages) (skip, leave default settings)

  • Access Restrictions -> Port Forwarding (skip, leave default settings)

image

  • Access Restrictions -> Port Range Forwarding (skip, leave default settings)

image

  • Access Restrictions -> Port Triggering (skip, leave default settings)

image

  • Access Restrictions -> UPnP (skip, leave default settings)

image

  • Access Restrictions -> DMZ (skip, leave default settings)

image

  • Access Restrictions -> Quality of Service (QoS) (skip, leave default settings)

image

7. Configure WRT54G (Administration Pages)

  • Administration -> Management
    • Router Username: set router username if not already configured
    • Router password: set if not already configured
    • leave rest to default (no changes required unless specfic need)

image

  • Adminstration -> Keep Alive (skip leave default settings)

image

  • Administration -> Commands (skip leave default settings)

image

  • Administration -> WOL (skip leave default settings)

image

  • Administration -> Factory Defaults (skip leave default settings)

image

  • Administration -> Firmware Upgrade (skip leave default settings)

image

  • Administration -> Backup

here is the final screen, this is opportunity to backup all these settings to a file should you ever have to reset the router in the future you wil be able to retrieve yor settings.

image

Connect your wired devices to the router ethernet port, they should get automatice IP addresses via DHCP from the phone (make sure the device set to receive IP address via DHCP, you can also assign an IP address as long as it is in the same address range e.g. 192.168.43.x (x = 3 to 254) in this scenario. You should then be able to access the internet on these devices useing the mobile phone internet connection. You can also connect wifi devices using either WIFI_1 or WIFI_2 network, you can therefore place the wifi router in another location than the phone in order to extend coverage of the wifi network.

You can turn off the phone mobile hotspot at anytime, the router will keep functioning you will simply no longer have access to the internet with these devices.