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 Tue 23 Sep 2014, 04:32
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
shareInternet-2.2.4.pet - Puppy as router - bugfix
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 8 [110 Posts]   Goto page: 1, 2, 3, ..., 6, 7, 8 Next
Author Message
gyro

Joined: 28 Oct 2008
Posts: 428
Location: Brisbane, Australia

PostPosted: Fri 09 Jan 2009, 15:55    Post subject:  shareInternet-2.2.4.pet - Puppy as router - bugfix
Subject description: Manages appropriate running of firewall and dnsmasq.
 

When it comes to turning Puppy into a router, ShareInternet starts where the Network Wizard leaves off. Once you have at least 2 interfaces up and running and appropriately configured, run ShareInternet and it will run the firewall configured to protect your Internet interface, and dnsmasq to provide dhcp to your local interface(s).

ShareInternet works with ethernet, wifi, and ppp interfaces. So it could be used to share a wireless hot-spot with a local lan, or even a "mobile phone as a modem" with a local wifi network. (I use it when traveling so that 2 laptops can be surfing the web at the same time, via 1 mobile phone.)

The pet's available for download from http://www.users.on.net/~wrags/ShareInternet-2.1.pet.

The .pet includes the dnsmasq executable.

gyro

Edit: Updated to 1.2
Rox-app is now in /root/my-roxapps.
If it finds 2 active appropriate interfaces, it attempts to use them.
Edit2: Updated to 1.3
Upgraded dnsmasq to 2.46.

Edit3: Updated to 1.4
Has facility to be started at boot time, Puppy boots as router.
Has facility to load custom iptables rules.

Edit4: Updated to 2.0
No more configs. It works it out itself.
Only configuration possible is to get it to be run automatically at boot time.
A version 2.1 is planned to provided a config utility for setting up of starting at boot time.

Edit5: Updated to 2.1
Added onDesktop file in /root/Desktop
Readme:http://www.users.on.net/~wrags/ShareInternet-2.1.html.

Edit6: Updated to 2.2.2 - tweaked iptables rules
It now uses it's own iptables rules, dosen't use rc.firewall.

Edit7: shareInternet 2.2.3, iptables now configured for changing upstream IP address.
(uses MASQUERADE instead of SNAT.)
If 2.2.2 works in your situation, no real advantage in upgrading to 2.2.3.

Edit8: attached shareInternet 2.2.4, fixes bug in detecting default route, that sometimes prevented shareInternet from working.
Also upgraded dnsmasq to 2.55, compiled on Puppy 431.
Recommend upgrade for all users of shareInternet.
shareInternet-2.2.4.pet
Description  more reliable version of shareInternet
pet

 Download 
Filename  shareInternet-2.2.4.pet 
Filesize  90.25 KB 
Downloaded  3017 Time(s) 

Last edited by gyro on Fri 18 Jun 2010, 09:51; edited 15 times in total
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Fri 09 Jan 2009, 16:07    Post subject:  

Interesting gyro. I'll be looking at this one.
Thanks

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 428
Location: Brisbane, Australia

PostPosted: Tue 10 Feb 2009, 14:01    Post subject: updated to 1.2  

Updated to 1.2.
See original post.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 428
Location: Brisbane, Australia

PostPosted: Thu 19 Feb 2009, 10:32    Post subject: updated to 1.4  

Updated to 1.4
See original post.

gyro
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Fri 20 Feb 2009, 23:16    Post subject:  

G'day gyro, told ya I'd look!

I'm having a problem. I have 'puppypc7' out in my shed wirelessly connectected to my network. I ran linux firewall from the menu, tried to configure your package but my firewall does not showup in your gui. Do I need something else, like 'bridge-utils'?

I want to connect my 486 to my network thru puppypc7, it is a crossover ethernet connection directly to puppypc7. The 486 is configured fine, I can connect by other means, so the prob is with puppypc7. 4.1.2 installed, installed ShareInternet 1.4, tried to configure firewall. Any ideas?

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 428
Location: Brisbane, Australia

PostPosted: Sat 21 Feb 2009, 07:27    Post subject:  

01micko wrote:
I ran linux firewall from the menu, tried to configure your package but my firewall does not showup in your gui. Do I need something else, like 'bridge-utils'?
No.
Don't use Puppy's firewall wizard and ShareInternet. ShareInernet configures the firewall itself. If you run Puppy's firewall wizard after installing ShareInternet, ShareInternet won't work.

Uninstall ShareInternet and then install ShareInternet.
Issue an "ifconfig" command in a console window, and ensure that both network interfaces are UP.
Click on the shareInternet icon in /root/my-roxapps.
It should show a dialog to allow you to select which interface connects to the Internet, for you this would be the interface that is not connected to the 486.
The icon should then get a green dot on it to indicate that all is up and running.
Click on the icon again and the firewall and dnsmasq will be shut down.

Explanation:
ShareInternet is quite dynamic about which 2 interfaces are used, and at startup it attempts to find the 2 that are UP. Once it's done this it needs to run /etc/rc.d/rc.firewall on the current 2 interfaces. But the rc.firewall produced by the Puppy firewall wizard has no facility to be told at runtime which interfaces to use. So ShareInternet installs a version of rc.firewall that imports the file /etc/rc.d/FWINTERFACES, which defines "DYNAMIC_INTERFACES" and "INTERNAL_INTERFACES". ShareInernet can run this rc.firewall with any interfaces by rewriting /etc/rc.d/FWINTERFACES.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 428
Location: Brisbane, Australia

PostPosted: Sat 21 Feb 2009, 07:47    Post subject:  

01micko wrote:
Any ideas?
Just thought of another couple of things.
Puppy's rc.network is very conservative about bringing up ethernet interfaces. They must be physically connected to a device that is powered up. (Fortunately I happen to have a spare ethernet switch to use in this situation.)
So either power on the 486 and connect it to puppy7 before you boot puppy7.
Or, run rc.network on puppy7 after you connect the 486 and power on the 486, but before you click on the shareInternet icon.

Depending what OS is running on the 486, you may need to reboot the 486 after you get the green dot on the shareInternet icon on puppy7.

gyro
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Sat 21 Feb 2009, 20:58    Post subject:  

gyro,

everything is up, eth0 is up on puppypc7 and bluflops486.
I'm using blueflops because it is fast. A minimal console based distro with 'Links' gui browser and irc. I like it. Very easy to set up, comes with a setup progran. eth0 on the 486 is searching for an IP but I have no dialog in the ShareInternet GUI.

Hold the phone! Got the green light! I might have to restart udhcp on the 486, got 2 blinkys Wink

Not getting an IP for eth0 on my pupppc7 Sad . Do i need to configure that? say static of 192.168.1.1?

So read readme, RTFM!!!! Embarassed

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Sat 21 Feb 2009, 21:43    Post subject:  

gyro
Success Smile I am posting from bluflops486 now. Got 2 blinkys flashing and all is good.

You've been a great help to me on this forum, have to catch up and buy you a beer!

Cheers

Mick

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Sat 21 Feb 2009, 22:59    Post subject:  

Cool I am posting from puppypc486, yep, running fat_free-2.16-dillo and the browser is faster than 'links'.

Thanks again

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 428
Location: Brisbane, Australia

PostPosted: Sun 22 Feb 2009, 11:06    Post subject:  

Mick,

Great news.

You are welcome.

gyro
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Sun 22 Feb 2009, 11:12    Post subject:  

gyro wrote:
Mick,

Great news.

You are welcome.

gyro

Then the beer is on me, if not a coffee!

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7802
Location: qld

PostPosted: Mon 23 Feb 2009, 05:45    Post subject:  

G'day gyro

Slight problem.

If I open ~/File-Sharing/Setup-Sharing and choose to find shared folders it only searches on the "192.168.1.x" network. My main network is "192.168.33.1" (remember???) . Guessing if I change the 486 network to "192.168.34.x" or greater it might work, I'll try that.

Easily reconfigured this puppypc7 to 192.168.44.1 (486 still online after restarting network Wink ). No joy with sharing... Crying or Very sad Confused I'll do some searching...

Seems to default to eth0, (maybe looking for fastest connection?)

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
gyro

Joined: 28 Oct 2008
Posts: 428
Location: Brisbane, Australia

PostPosted: Mon 23 Feb 2009, 12:22    Post subject:  

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
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 428
Location: Brisbane, Australia

PostPosted: Mon 23 Feb 2009, 12:32    Post subject:  

01micko,

If you are trying to use this Puppy share facility and already have servers setup on puppies on your main network, and you are trying to use the 486 as a client. This should work. But the scanning won't work from the 486, you will have to define your servers manually.

gyro
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 8 [110 Posts]   Goto page: 1, 2, 3, ..., 6, 7, 8 Next
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.0809s ][ Queries: 13 (0.0058s) ][ GZIP on ]