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 Wed 22 Jan 2020, 01:08
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Networking
RouterMaker
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 12926
Location: Stratford, Ontario

PostPosted: Sat 28 May 2016, 18:20    Post subject:  RouterMaker  

RouterMaker

Important: When Puppy computers boot up, they attempt to make an automatic Internet connection on eth0. If this is still happening when you start RouterMaker, the two processes will conflict and the RouterMaker server may lose its IP address on eth0. (You can check this by running IP Info.) So any client machines that boot up won't get a proper connection to the server. This is a particular issue with PeasyWiFi, whose Ethernet routine keeps running for a while.

You can usually fix this just by restarting RouterMaker. For a permanent fix, try the following:
a. Open /usr/local/bin/routermaker in a text editor.
b. UNcomment Line 4.
Code:
#kill $(busybox ps | grep "rc.network" | awk '{print $1}') >/dev/null 2>&1

-----------------------------

RouterMaker is a little app that lets your computer act as a basic router. It becomes the hub of a wired network and assigns IP addresses to other computers connected to this LAN. It can optionally provide a gateway to the Internet.

The program is /usr/local/bin/routermaker. You will run it by opening a terminal and typing: routermaker

Go to /usr/local/bin and open routermaker in a text editor. Note these lines at the top:
Code:
LAN="eth0"
WAN=""
SUBNET="192.168.51"

a. The LAN variable defines the Ethernet port on your computer that is wired to the LAN.
b. The WAN variable is optional. Use it if you have a second port (like wlan0) that connects to the Internet.
c. The SUBNET variable defines the set of IP addresses that will be assigned to client computers on the network.

Here are some ways to use RouterMaker:

1. Directly connect two machines together by their Ethernet ports with a CAT5 cable. In the old days, you needed a special crossover cable, but I don't think this matters anymore.

Start RouterMaker on one machine. It will be the "server" and will have IP address 192.168.51.1. Boot up the other machine. Its networking software will automatically get an IP address from the server on the same subnet, like 192.168.51.45. The two machines can ping each other and you can run file transfer software between them, like Gnetcat.

2. The RouterMaker machine has a second port (eth1 or wlan0) that is already connected to the Internet. It will provide shared Internet to clients. To use this feature, you must also install the "iptables" package on the RouterMaker machine. And its kernel must contain the MASQUERADE module.

Assign this port to the WAN variable (see above) and run RouterMaker. When a client machine boots up, its IP address will include a gateway to the Internet via the server.

3. You have a private network of several machines connected to an Ethernet switch box with CAT5 cables. One of these machines will run RouterMaker. As the client machines boot up, they will get unique IP addresses on the subnet.

The RouterMaker machine can run sharable resources like a file server or printer that are accessible to the clients. Clients will locate the server at 192.168.51.1.

----------------------------

Also see WlanMaker.

----------------------------
routermaker_2.1_all.deb.gz
Description  Remove the fake .gz extension.
Updated 2019-10-15
gz

 Download 
Filename  routermaker_2.1_all.deb.gz 
Filesize  1.27 KB 
Downloaded  65 Time(s) 

Last edited by rcrsn51 on Fri 18 Oct 2019, 18:47; edited 36 times in total
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2572
Location: In The Way

PostPosted: Mon 30 May 2016, 18:12    Post subject:  

Hi rcrsn51

Your new script is very lean and keen.

Is this pinstall.sh correct?
Code:
#!/bin/sh
rm etc/init.d/hostapd
rm -rf etc/hostapd
Back to top
View user's profile Send private message MSN Messenger 
rcrsn51


Joined: 05 Sep 2006
Posts: 12926
Location: Stratford, Ontario

PostPosted: Mon 30 May 2016, 18:36    Post subject:  

stemsee wrote:
Is this pinstall.sh correct?

Yes. The Debian hostapd package contains some stuff that doesn't apply to Puppy. The pinstall script just removes it.
Back to top
View user's profile Send private message 
Atle

Joined: 19 Nov 2008
Posts: 604
Location: Oslo, Norway

PostPosted: Sat 25 Jun 2016, 13:27    Post subject:  

Got to take my hat of AGAIN...

When i install this to - lupusuper4 (kernel from pemasu's upup raring) (based on lupu 5.2.8.7, but with a 3.99 kernel, I get a error message that says:

iptables v1.4.4 cant initialize iptables 'nat' : tables does not exist (do you perhaps need to ismod?)
Perhaps iptables or your kernel needs to be upgraded

Does anyone make anything out of that?

iptables 1.4.4 is installed...

But i realize there is a answer to this in the very beginning of the post, so if i like to use this, i better choose one the is supported already since i guess you do put a lot of work into this and not all weird puppies can be supported always...

So since there are others that are supported, ill stick to them...

Atle
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
moi_classic2007

Joined: 20 Mar 2016
Posts: 23

PostPosted: Sun 25 Sep 2016, 05:47    Post subject:  

Hello, I used to successfully make a wifi repeater by using program "hotspotd", but now I can't, I don't know why. It used to work very well
I tried your program and I got these massages:

Configuration file: /tmp/hostapd.conf
Failed to update rate sets in kernel module
Using interface wlan3 with hwaddr aa:33:bb:cc:dd:aa and ssid 'haizzzz'
Failed to set beacon head/tail
Could not set DTIM period for kernel driver
Failed to set CTS protect in kernel driver
Failed to set Short Slot Time option in kernel driver
Could not set preamble for kernel driver
unknown mgmt cb frame subtype 4
unknown mgmt cb frame subtype 4
...............................................
unknown mgmt cb frame subtype 4 (and so on)

Could you please give me a suggest? Tks!
Back to top
View user's profile Send private message 
moi_classic2007

Joined: 20 Mar 2016
Posts: 23

PostPosted: Sun 25 Sep 2016, 05:52    Post subject:  

I even made my own GUI program for this, it is for Tahrpup 6.0.5, but now it doesn't work anymore on my system, I don't know why, could you give a look at this please, I am not a programmer but I love Puppy
wifihotspotd.zip
Description 
zip

 Download 
Filename  wifihotspotd.zip 
Filesize  201.8 KB 
Downloaded  453 Time(s) 
Back to top
View user's profile Send private message 
moi_classic2007

Joined: 20 Mar 2016
Posts: 23

PostPosted: Mon 26 Sep 2016, 08:52    Post subject:  

I finally found the answer myself!
The problem was: the channel for hostapd that I set was different to the channel that my wlan0 connected to internet.
By this article https://wiki.archlinux.org/index.php/software_access_point
My wifi card does not support for different channels.
So I fixed it and now it works.
This is my program, which plays as AP, wifi repeater for Tahrpup 6.0.5 for anyone who needs it.
Have a good day!
wifihotspotd.zip
Description 
zip

 Download 
Filename  wifihotspotd.zip 
Filesize  177.03 KB 
Downloaded  400 Time(s) 
Back to top
View user's profile Send private message 
Atle

Joined: 19 Nov 2008
Posts: 604
Location: Oslo, Norway

PostPosted: Tue 01 Nov 2016, 18:36    Post subject:  

I have downloaded Tahrpup 6.05CE, and then done the things according to rcrsn51's instructions.

Then i downloaded the wifihotspotd.

But from there I am sort of stuck.

I wanted to see what your code does, but it does not provide to much information about what this does and is. And how to get it installed.

I did install the ipt-xxxxx.pet, but got no desktop icons nor nothing. No gui, no nothing.

Can we please share the secret of how to install this?


atle
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Semme


Joined: 07 Aug 2011
Posts: 8021
Location: World_Hub

PostPosted: Tue 01 Nov 2016, 20:45    Post subject:  

Atle, if this is what you got running the masquerade command, then you'd need the kernel module:
Code:
iptables: No chain/target/match by that name.

There is no GUI.

Now rather than merely install this, what's your goal here?

_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
Atle

Joined: 19 Nov 2008
Posts: 604
Location: Oslo, Norway

PostPosted: Tue 01 Nov 2016, 21:21    Post subject:  

First of all Semme. Congrats with you new avatar.

Well I like to explore the possibilites to make a Puppy that can be booted into the various things we see here, like Wlanmaker, Routermaker and their different setups. I like this development.

So in order to understand totally what this does I like to make it work and test it.

http://www.mediafire.com/file/jit7clirdnv2x3p/MobileInternetLinux.iso

I got some work done on this, but i had to abandon it for a while due to other things in life, but you can boot this one and see what is does and I do not aim at making stuff for people in Orlando or Paris, but more like Lusaka and Lagos.

The needs there are very different, but its impossible to understand unless one has lived under such circumstances.

I want to take networking to a new level where you can get things that serves a purpose there, but not in "our western broadband and rich world".

I like to have a Puppy that can boot into four modes and that would be as a Wifi AP with a captive portal and webserver, ERP, POS and what not, and as a router for the ethernet port and as i belive i look at here, as a wifi repeater(Is that not like a range extender)?

But the learning curve is hard for me as I do not understand how to code or are very far from being good at this. All i got is stamina.


atle
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Semme


Joined: 07 Aug 2011
Posts: 8021
Location: World_Hub

PostPosted: Wed 02 Nov 2016, 06:08    Post subject:  

Thanks. The av is hopefully light-hearted enough.

==

As for your goals, I get the gist.

Did you need the kernel module? I'll assume you've got both the hostapd and dnsmasq-base pkgs installed.

You realize his "extender" scenario above relies on either TWO adapters or an additional wifi router.

He also states RM won't work with just any adapter.

So, your hw setup becomes particular if you plan on exploring any of the above routines.

_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1618
Location: The other Mr. 305

PostPosted: Fri 04 Nov 2016, 22:46    Post subject:  

I noticed i386 debs. I tried this on Quirky Xerus64 and it's not working. Did anyone get this working on a 64bit Puppy?
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 8021
Location: World_Hub

PostPosted: Sat 05 Nov 2016, 07:21    Post subject:  

You need the masquerade module for your kernel. Get compiling!
_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
Atle

Joined: 19 Nov 2008
Posts: 604
Location: Oslo, Norway

PostPosted: Thu 20 Apr 2017, 22:02    Post subject:  

@slavvo67

This will run very well on Fatdog64
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
rcrsn51


Joined: 05 Sep 2006
Posts: 12926
Location: Stratford, Ontario

PostPosted: Mon 14 Oct 2019, 23:17    Post subject:  

Re-released. This needs testing and feedback.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Networking
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.0637s ][ Queries: 12 (0.0105s) ][ GZIP on ]