Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #192759

Re: how to offer Internet connection?

From Long Wind <longwind2@yahoo.com>
Newsgroups linux.debian.user
Subject Re: how to offer Internet connection?
Date 2018-02-20 10:50 +0100
Message-ID <vlcIG-7kN-5@gated-at.bofh.it> (permalink)
References <vlaQx-66Y-7@gated-at.bofh.it> <vlaQx-66Y-5@gated-at.bofh.it> <vlcpk-7b6-5@gated-at.bofh.it> <vlcyZ-7g5-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Thank err404!
it's too hard for me to make a linux pc become router 

    On Tuesday, February 20, 2018 4:34 AM, "err404@free.fr" <err404@free.fr> wrote:
 

 you can connect your PC with usb cable to the phone.
on your smartphone you need to enabling "sharing by usb"
and your smartphone will become router and dhcpd server for your PC.

on your pc, you will have usb0 interface (with 0 can be more), or unpredictable interface name like enxxxxxxxxx.

but...

if you realy want use one of your pc like a router, you need to activate "net.ipv4.ip_forward = 1" in /etc/sysctl.conf
and many time you will want nat from your local networt to Internet.

so, you will 
 - define statics IP and adding routes, or 
 - configure a dhcpd server 

nat routing:
iptables -A POSTROUTING -s {{base_ip}}.{{client_network}}/{{masque}} -j MASQUERADE

replace {{base_ip}}.{{client_network}}/{{masque}} with your values (yes it may become little bit complicated)

(some time, I think using babeld is simpler...)

I am sure I omit some pieces to your configuration



   

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: how to offer Internet connection? Long Wind <longwind2@yahoo.com> - 2018-02-20 08:50 +0100
  Re: how to offer Internet connection? "Michelle Konzack" <linux4michelle@tamay-dogan.net> - 2018-02-20 10:30 +0100
    Re: how to offer Internet connection? err404@free.fr - 2018-02-20 10:40 +0100
      Re: how to offer Internet connection? Long Wind <longwind2@yahoo.com> - 2018-02-20 10:50 +0100
        Re: how to offer Internet connection? john doe <johndoe65534@mail.com> - 2018-02-20 11:20 +0100
    Re: how to offer Internet connection? Long Wind <longwind2@yahoo.com> - 2018-02-20 10:40 +0100
      (solved) Re: how to offer Internet connection? Long Wind <longwind2@yahoo.com> - 2018-02-20 10:50 +0100
  Re: how to offer Internet connection? "Michelle Konzack" <michelle.konzack@tamay-dogan.net> - 2018-02-20 10:50 +0100
    Re: how to offer Internet connection? Jude DaShiell <jdashiel@panix.com> - 2018-02-20 13:10 +0100

csiph-web