Re: how to offer Internet connection?

2018-02-20 Thread Gene Heskett
On Tuesday 20 February 2018 09:45:15 john doe wrote:

> On 2/20/2018 12:58 PM, Jude DaShiell wrote:
> > What is it, packet forwarding and nat?  I've heard about that but
> > never had occassion to try that myself before.
>
>  From a Google search:
>
> https://en.wikipedia.org/wiki/Network_address_translation
>
Piece of cake for a router thats been reflashed with dd-wrt or similar.

That translation can be restricted to a single "port" address, which is 
why you can see my web page, on this machine, at an odd port address if 
you click on the link in the sig.

This is of course dependent on having a fixed ip, and mine is somehow 
derived from the mac address of my router, so if I should have to change 
routers, that would change until such time as I clone this mac address 
into the other router, at which point the routers reboot gives me back 
the old address and my registered domain name once again works, if the 
other router also does this port forwarding.

> https://unix.stackexchange.com/questions/14056/what-is-kernel-ip-forwa
>rding
>
> The URLs might be folded by my mailer.



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: how to offer Internet connection?

2018-02-20 Thread rhkramer
On Tuesday, February 20, 2018 09:45:15 AM john doe wrote:
> https://en.wikipedia.org/wiki/Network_address_translation
> 
> https://unix.stackexchange.com/questions/14056/what-is-kernel-ip-forwarding
> 
> The URLs might be folded by my mailer.

I guess it is my day to make extraneous comments: It is a shame that "fold" 
has two meanings very relevant to computers and text.  I prefer to use 
"wrapped" for what you are concerned about, I reserve folded for what happens 
in an editor with what Microsoft would call collapsible outlining (and is 
typically called folding in the *nix editing world).



Re: how to offer Internet connection?

2018-02-20 Thread David Wright
On Tue 20 Feb 2018 at 06:30:11 (+), Long Wind wrote:
> i have a debian pc that is on 2 networks:
> 1) connected to cell phone access point, cell phone offers Internet 
> connection2) connected to router, thru ethernet interface
> is it possilble for debian pc to offer Internet connection to other pc 
> connected to router?
> Thanks!
> PS: other pc don't have wireless card and can't connect to cell phone

When you ask a question like this, it would help if you also
told people some relevant information about the devices you
want to connect. For example:

Does the router have other devices connected to it?
Does the router have unconnected LAN ports?
Does the router have wireless?
What's connected to the WAN side of the router?
Does the Debian PC have a spare ethernet port?
Does the Debian PC have a slot free for a cheap card?
What interfaces does the Other PC have, if any?

Knowing the answers to questions like these would make it possible to
suggest solutions. Otherwise we're left guessing.

You might:
use a cheap wireless dongle for the Other PC
(I did that for an old PC with busted wireless)
or:
CAT5 connect the 2 PCs with PtP and masquerade a connection
(I did that 10 years ago before buying new router with free dongle included)
or:
Cat5 the Other PC to the router
(I've never tried using a router like that)

Generally speaking, if there are "wires", then you can do it, even
through the Serial or Parallel Ports.

Cheers,
David.



Re: how to offer Internet connection?

2018-02-20 Thread john doe

On 2/20/2018 12:58 PM, Jude DaShiell wrote:
What is it, packet forwarding and nat?  I've heard about that but never 
had occassion to try that myself before.




From a Google search:

https://en.wikipedia.org/wiki/Network_address_translation

https://unix.stackexchange.com/questions/14056/what-is-kernel-ip-forwarding

The URLs might be folded by my mailer.

--
John Doe



Re: how to offer Internet connection?

2018-02-20 Thread Jude DaShiell
I'm pretty sure part of the software side of this will be setting up 
sshd-server as securely as possible and installing the fail2ban package 
for those who make too many mistakes entering passwords for private 
accounts.  If what's envisioned is a public internet site that has its 
own set of security requirements and problems.


On Tue, 20 Feb 2018, Michelle Konzack wrote:


Date: Tue, 20 Feb 2018 04:20:09
From: Michelle Konzack <michelle.konz...@tamay-dogan.net>
To: debian-user@lists.debian.org
Subject: Re: how to offer Internet connection?
Resent-Date: Tue, 20 Feb 2018 09:42:20 + (UTC)
Resent-From: debian-user@lists.debian.org

Hi back,

Am 2018-02-20 hackte Long Wind in die Tasten:

Thank Michelle Konzack?? and John Doe!
maybe the easy way is buy a wireless card for pc and connect it to cell
phone


If you have time, you can get for less then 5 Euro USB Wireless
adapters from eBay... Do not expect, they are working over more
then 10-15m and trough a concrete wall...


or connect pc to cell phone thru a USB connectiondoes linux or XP support
such network connection?


You mean USBNet?  AFAIK it is supported by Win7 Win8 and Win10,
but it should be in first place supported by zour cellphone
which I dubt...  I have not found a singel one where it works.


On Tuesday, February 20, 2018 1:54 AM, john doe
<johndoe65...@mail.com> wrote:


 On 2/20/2018 7:30 AM, Long Wind wrote:

i have a debian pc that is on 2 networks:
1) connected to cell phone access point, cell phone offers Internet
connection2) connected to router, thru ethernet interface
is it possilble for debian pc to offer Internet connection to other pc
connected to router?
Thanks!
PS: other pc don't have wireless card and can't connect to cell phone



I'm not sure I understand your question:

So you have one Debian box with two internet connections (cellphone AP,
and wired connection to router)?
If so that Debian box would need to act as a router to share those
internet connections to the rest of your network.






--



Re: how to offer Internet connection?

2018-02-20 Thread Jude DaShiell
What is it, packet forwarding and nat?  I've heard about that but never 
had occassion to try that myself before.


On Tue, 20 Feb 2018, john doe wrote:


Date: Tue, 20 Feb 2018 01:54:19
From: john doe <johndoe65...@mail.com>
To: debian-user@lists.debian.org
Subject: Re: how to offer Internet connection?
Resent-Date: Tue, 20 Feb 2018 06:54:43 + (UTC)
Resent-From: debian-user@lists.debian.org

On 2/20/2018 7:30 AM, Long Wind wrote:

 i have a debian pc that is on 2 networks:
 1) connected to cell phone access point, cell phone offers Internet
 connection2) connected to router, thru ethernet interface
 is it possilble for debian pc to offer Internet connection to other pc
 connected to router?
 Thanks!
 PS: other pc don't have wireless card and can't connect to cell phone



I'm not sure I understand your question:

So you have one Debian box with two internet connections (cellphone AP, and 
wired connection to router)?
If so that Debian box would need to act as a router to share those internet 
connections to the rest of your network.





--



Re: how to offer Internet connection?

2018-02-20 Thread john doe

On 2/20/2018 10:41 AM, Long Wind wrote:

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



In that case something like the following could be considered (they are 
other alternatives out there):


http://www.ipcop.org/

The only thing that would need to be done  behind that "router" would be 
to connect all your devices to that router (wireless or cable).


--
John Doe



Re: how to offer Internet connection?

2018-02-20 Thread Michelle Konzack
Hi back,

Am 2018-02-20 hackte Long Wind in die Tasten:
> Thank Michelle Konzack  and John Doe!
> maybe the easy way is buy a wireless card for pc and connect it to cell
> phone

If you have time, you can get for less then 5 Euro USB Wireless
adapters from eBay... Do not expect, they are working over more
then 10-15m and trough a concrete wall...

> or connect pc to cell phone thru a USB connectiondoes linux or XP support
> such network connection?

You mean USBNet?  AFAIK it is supported by Win7 Win8 and Win10,
but it should be in first place supported by zour cellphone
which I dubt...  I have not found a singel one where it works.

> On Tuesday, February 20, 2018 1:54 AM, john doe
>  wrote:
>
>
>  On 2/20/2018 7:30 AM, Long Wind wrote:
>> i have a debian pc that is on 2 networks:
>> 1) connected to cell phone access point, cell phone offers Internet
>> connection2) connected to router, thru ethernet interface
>> is it possilble for debian pc to offer Internet connection to other pc
>> connected to router?
>> Thanks!
>> PS: other pc don't have wireless card and can't connect to cell phone
>>
>
> I'm not sure I understand your question:
>
> So you have one Debian box with two internet connections (cellphone AP,
> and wired connection to router)?
> If so that Debian box would need to act as a router to share those
> internet connections to the rest of your network.
>



Re: how to offer Internet connection?

2018-02-20 Thread err404
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 enx.

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



Re: how to offer Internet connection?

2018-02-20 Thread Michelle Konzack
Hi back,

Am 2018-02-20 hackte Long Wind in die Tasten:
> Thank Michelle Konzack  and John Doe!
> maybe the easy way is buy a wireless card for pc and connect it to cell
> phone

If you have time, you can get for less then 5 Euro USB Wireless
adapters from eBay... Do not expect, they are working over more
then 10-15m and trough a concrete wall...

> or connect pc to cell phone thru a USB connectiondoes linux or XP
support
> such network connection?

You mean USBNet?  AFAIK it is supported by Win7 Win8 and Win10,
but it should be in first place supported by zour cellphone
which I dubt...  I have not found a singel one where it works.

> On Tuesday, February 20, 2018 1:54 AM, john doe
>  wrote:
>
>
>  On 2/20/2018 7:30 AM, Long Wind wrote:
>> i have a debian pc that is on 2 networks:
>> 1) connected to cell phone access point, cell phone offers Internet
>> connection2) connected to router, thru ethernet interface
>> is it possilble for debian pc to offer Internet connection to other pc
>> connected to router?
>> Thanks!
>> PS: other pc don't have wireless card and can't connect to cell phone
>>
>
> I'm not sure I understand your question:
>
> So you have one Debian box with two internet connections (cellphone AP,
> and wired connection to router)?
> If so that Debian box would need to act as a router to share those
> internet connections to the rest of your network.


-- 
Michelle KonzackMiila ITSystems @ TDnet
GNU/Linux Developer 00372-54541400



Re: how to offer Internet connection?

2018-02-19 Thread Michelle Konzack
Hi,

Am 2018-02-19 hackte Long Wind in die Tasten:
> i have a debian pc that is on 2 networks:
> 1) connected to cell phone access point, cell phone offers Internet
> connection
> 2) connected to router, thru ethernet interface
> is it possilble for debian pc to offer Internet connection to other pc
> connected to router?

Sound complicate and   expensive, because your Debian PC must
be equiped with other ethernet interfaces and then you have to
configure your Debian PC as Router...

Better to go to an IT shop of your choise and buy an Ethernet
Switch for 20 Euro...

> Thanks!
> PS: other pc don't have wireless card and can't connect to cell phone

Have a nice day

-- 
Michelle KonzackMiila ITSystems @ TDnet
GNU/Linux Developer 00372-54541400



Re: how to offer Internet connection?

2018-02-19 Thread john doe

On 2/20/2018 7:30 AM, Long Wind wrote:

i have a debian pc that is on 2 networks:
1) connected to cell phone access point, cell phone offers Internet 
connection2) connected to router, thru ethernet interface
is it possilble for debian pc to offer Internet connection to other pc 
connected to router?
Thanks!
PS: other pc don't have wireless card and can't connect to cell phone



I'm not sure I understand your question:

So you have one Debian box with two internet connections (cellphone AP, 
and wired connection to router)?
If so that Debian box would need to act as a router to share those 
internet connections to the rest of your network.


--
John Doe



how to offer Internet connection?

2018-02-19 Thread Long Wind
i have a debian pc that is on 2 networks:
1) connected to cell phone access point, cell phone offers Internet 
connection2) connected to router, thru ethernet interface
is it possilble for debian pc to offer Internet connection to other pc 
connected to router?
Thanks!
PS: other pc don't have wireless card and can't connect to cell phone