Find the answer to your Linux question:
Results 1 to 2 of 2
Hello! Please help me to solve the problem I want to share 4g usb modem internet with other computers connected to a wi-fi router. Now we use just usual cable ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2013
    Posts
    1

    4g usb modem internet sharing via router to lan


    Hello! Please help me to solve the problem
    I want to share 4g usb modem internet with other computers connected to a wi-fi router. Now we use just usual cable modem connection. Modem is connected to router via WAN port. But it's very expensive, so I decided to try 4g usb modem connection sharing.

    I tried to study manuals, but I am confused what should I do and how to configure all the connection.

    The machine with the usb 4g modem is running on Linux Ubuntu.

    As I understand I should configure iptables to forward computers on LAN to internet.


    my ifconfig looks like that now and the eth1 is the usb modem:


    eth0 Link encap:Ethernet HWaddr 10:78:d2:4e:65:b7
    inet addr:192.168.0.47 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::1278:d2ff:fe4e:65b7/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1555854 errors:0 dropped:0 overruns:0 frame:0
    TX packets:819064 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1325710454 (1.3 GB) TX bytes:102124824 (102.1 MB)
    Interrupt:42 Base address:0x4000

    eth1 Link encap:Ethernet HWaddr 00:09:3b:f0:1a:40
    inet addr:10.0.0.10 Bcast:10.0.0.255 Mask:255.255.255.0
    inet6 addr: fe80::209:3bff:fef0:1a40/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1
    RX packets:40635 errors:0 dropped:0 overruns:0 frame:0
    TX packets:52109 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:14457460 (14.4 MB) TX bytes:7307640 (7.3 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:16436 Metric:1
    RX packets:90062 errors:0 dropped:0 overruns:0 frame:0
    TX packets:90062 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:17025150 (17.0 MB) TX bytes:17025150 (17.0 MB)

  2. #2
    Linux Newbie arespi's Avatar
    Join Date
    May 2011
    Location
    Monterrey , Mexico
    Posts
    132
    You don't need to mess with iptables yet, first you need to setup your ubuntu PC as a router, check this out:

    Ubuntu as a firewall/gateway router | Lazy Geek -

    Good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •