The time now is Thu 26 Apr 2018, 08:14
All times are UTC - 4 |
Page 1 of 10 [137 Posts] |
Goto page: 1, 2, 3, ..., 8, 9, 10 Next |
Author |
Message |
gyro
Joined: 28 Oct 2008 Posts: 1494 Location: Brisbane, Australia
|
Posted: Fri 09 Jan 2009, 15:55 Post subject:
shareInternet-2.2.6.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.)
NOTE: Since the changes from 2.2.4 to 2.2.5 are mostly cosmetic;
If you have, or can easily install, 'dnsmasq' use 2.2.5, else use 2.2.4.
If your 'iptables' complains, try 2.2.6, (like 2.2.5 has no 'dnsmasq').
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.
Edit9: attached shareInternet 2.2.5.
Removed dnsmasq from the pet. If dnsmasq is not present in the current puppy, then it must be installed separately. This means that shareInternet should work on virtually any puppy.
Moved the Rox app to "/root/my-applications".
Fixed the "serverExample".
(Actually, I don't use this any more. I use a small wi-fi router from a cell-phone supplier.)
Edit10: attached shareInternet 2.2.6
Got rid of some 'offending' code in the iptables script.
 |
Description |
reduced iptables script
|

Download |
Filename |
shareInternet-2.2.6.pet |
Filesize |
14.32 KB |
Downloaded |
1071 Time(s) |
Description |
does not include 'dnsmasq'
|

Download |
Filename |
shareInternet-2.2.5.pet |
Filesize |
14.33 KB |
Downloaded |
576 Time(s) |
Description |
includes 'dnsmasq'
|

Download |
Filename |
shareInternet-2.2.4.pet |
Filesize |
90.25 KB |
Downloaded |
3771 Time(s) |
Last edited by gyro on Mon 04 May 2015, 18:12; edited 22 times in total
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: Fri 09 Jan 2009, 16:07 Post subject:
|
|
Interesting gyro. I'll be looking at this one.
Thanks
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 1494 Location: Brisbane, Australia
|
Posted: Tue 10 Feb 2009, 14:01 Post subject:
updated to 1.2 |
|
Updated to 1.2.
See original post.
gyro
|
Back to top
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 1494 Location: Brisbane, Australia
|
Posted: Thu 19 Feb 2009, 10:32 Post subject:
updated to 1.4 |
|
Updated to 1.4
See original post.
gyro
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: 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
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 1494 Location: Brisbane, Australia
|
Posted: 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
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 1494 Location: Brisbane, Australia
|
Posted: 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
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: 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
Not getting an IP for eth0 on my pupppc7 . Do i need to configure that? say static of 192.168.1.1?
So read readme, RTFM!!!!
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: Sat 21 Feb 2009, 21:43 Post subject:
|
|
gyro
Success 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
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: Sat 21 Feb 2009, 22:59 Post subject:
|
|
I am posting from puppypc486, yep, running fat_free-2.16-dillo and the browser is faster than 'links'.
Thanks again
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 1494 Location: Brisbane, Australia
|
Posted: Sun 22 Feb 2009, 11:06 Post subject:
|
|
Mick,
Great news.
You are welcome.
gyro
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: 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!
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 8670 Location: qld
|
Posted: 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 ). No joy with sharing... I'll do some searching...
Seems to default to eth0, (maybe looking for fastest connection?)
_________________ Puppy Linux Blog - contact me for access
|
Back to top
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 1494 Location: Brisbane, Australia
|
Posted: 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
|
|
 |
gyro
Joined: 28 Oct 2008 Posts: 1494 Location: Brisbane, Australia
|
Posted: 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
|
|
 |
|
Page 1 of 10 [137 Posts] |
Goto page: 1, 2, 3, ..., 8, 9, 10 Next |
|
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
|