shareInternet-2.2.6.pet - Puppy as router - bugfix

Configuration wizards, scanners, remote desktop, etc.
Message
Author
s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#136 Post by s243a »

I successfully used this pet to share the internet through a router. I haven't tried connecting multiple computers on it.

I created the following startup script:

Code: Select all

#/usr/bin/sh#www.pearltrees.com/s243a/shareinternet-puppylinux-pet/id15126192
#requires  ipt_MASQUERADE_tahrpup-k3.14.20.pet
#See: murga-linux.com/puppy/viewtopic.php?t=96178&start=1140

ifconfig eth0 up  #Bring the interface up
ifconfig eth0 192.168.2.1 #assign an ip adress to the interface
cd ~/my-applications/shareInternetsh AppRun #Start the Internet Sharing
Running this script returns:

Code: Select all

root# sh Star*
[ -f /etc/dnsmasq.conf ] && dnsmasq -a "192.168.2.1" -F "192.168.2.100,192.168.2.200,60000" -l "/tmp/dnsmasq.leases.192.168.2"
**not sure what this stuff means


On my d-link router I set the internet connection as DHCP which produced:

Code: Select all

IP Address: 	192.168.2.152
Subnet Mask: 	255.255.255.0
Default Gateway: 	192.168.2.1
Primary DNS Server: 	192.168.2.1
Using tahrpup 6.0.5 on the PC which is reciving the shared connection configured the internet as follows:

under
menu/setup/internet connection wizard
selected "Wired or wireless LAN"

And then
Selected the bottom choice (i.e. "Network Wizard")

and than selected "Static IP"

I put in

Code: Select all

IP address = 192.168.2.1
Net Mask = 255.255.255.0
Primary Name Server = 192.168.0.1 (see etc/resolv.conf)
and I think for the gateway I put:

Code: Select all

Default Gateway = 0.0.0.0
which seemed to tell the Network Wizard to find the default gateway for me, which returned

Code: Select all

Default Gateway = 192.168.0.1
I think the gateway is the private ip address of the internet service provider gateway (i.e. that thing they give you to connect to the internet). Perhaps the operating system (or maybe the router) finds this address when it is building the routing table.

User avatar
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

#137 Post by Moose On The Loose »

gyro wrote:
01micko wrote:If I open ~/File-Sharing/Setup-Sharing and choose to find shared folders it only searches on the "192.168.1.x" network.
I've just had a quick look at the script run by ~/File-Sharing/Setup-Sharing. It always looks in the local network defined by the first IP address it finds in the output from "ifconfig". Would need to change the software to do something different.
But even more significantly it is not using Windows folder sharing. It's looking for FTP servers, something completely different. If it's Windows folder sharing you want, then you will need to use "samba" on Puppy.

I've used "samba" on a Fedora 9 machine, but never Puppy.

If you're trying to do Windows folder sharing through a router (puppy7), then I'm not sure there is any chance.

gyro
I use Samba on 528 it works but Windows-7 and up don't. They refuse to even think about an earlier Windows version being on the system and also won't interact with puppy. There is a setting in the registry to fix this.

I also run a web server on a puppy. If you include a local DNS you can have the machines referred to by name. If not, a trick I use is to have the Samba share a file with a link in it using the IP address. This way, a Windows user can find the system with the "network neighborhood" method and then click on a XXX.html file to get the link to the machine via the browser.

This is working around the limitations of Windows and Humans.

Post Reply