Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 11 Dec 2017, 00:08
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
shareInternet-2.2.6.pet - Puppy as router - bugfix
Post new topic   Reply to topic View previous topic :: View next topic
Page 10 of 10 [137 Posts]   Goto page: Previous 1, 2, 3, ..., 8, 9, 10
Author Message
s243a

Joined: 02 Sep 2014
Posts: 685

PostPosted: Fri 22 Jul 2016, 03:01    Post subject:  

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:

#/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:

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:

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:

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:

Default Gateway = 0.0.0.0


which seemed to tell the Network Wizard to find the default gateway for me, which returned

Code:

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.
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 773

PostPosted: Fri 22 Jul 2016, 10:23    Post subject:  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 10 of 10 [137 Posts]   Goto page: Previous 1, 2, 3, ..., 8, 9, 10
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0644s ][ Queries: 14 (0.0163s) ][ GZIP on ]