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 Fri 24 Nov 2017, 18:33
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
create_ap iptables error
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
rubing

Joined: 19 Jul 2008
Posts: 70

PostPosted: Wed 18 Oct 2017, 15:17    Post subject:  create_ap iptables error
Subject description: error from iptables in create_ap program
 

Running Slacko installed from windows exe on little acer portable laptop that doesn't have a CD Rom.

I have 2 wifi adapters and am trying to use a program called create_ap in order to share the wifi signal coming in on one interface and broadcast it out on the other. I have downloaded all the listed dependencies, but get an error from iptables when trying to run it. I use this program and do the same on Ubuntu without an issue.

The error I am getting is:

iptables: No chain/target/match by that name
Back to top
View user's profile Send private message 
stemsee

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

PostPosted: Wed 18 Oct 2017, 16:47    Post subject:  

Did you compile create_ap and instal? I use it all the time on FatHouse64. Ceck all of the dependencies are installed.

Dependencies
General
• bash (to run this script)
• util-linux (for getopt)
• procps or procps-ng
• hostapd
• iproute2
• iw
• iwconfig (you only need this if ‘iw’ can not recognize your adapter)
• haveged (optional)
For ‘NATed’ or ‘None’ Internet sharing method
• dnsmasq
• iptables

install

Code:
make install
Back to top
View user's profile Send private message MSN Messenger 
rubing

Joined: 19 Jul 2008
Posts: 70

PostPosted: Wed 18 Oct 2017, 17:16    Post subject:  

all dependecies were installed as follows:

iptables-1.4.20
dnsmasq-2.78
wireless-tools-29 (iwconfig)
iw 3.5
iproute2-3.10.0
procps-3.2.8
util-linux 2.21.2
bash-4.2.053
hostapd-2.0

and create_ap was installed using make install command. The error I am getting is not that I am missing dependencies. It's that when the program tries to run there is an error thrown by iptables.
Back to top
View user's profile Send private message 
rubing

Joined: 19 Jul 2008
Posts: 70

PostPosted: Thu 19 Oct 2017, 00:37    Post subject:  

I have gone and posted this question on the create_ap github project as issue, hopefully they will have some insight there.
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Thu 19 Oct 2017, 09:04    Post subject:  

You probably need the MASQUERADE kernel module. Here is the version for Slacko 630.

Plese note that add-on modules are kernel-specific.
ipt_MASQUERADE_slacko630-k3.14.55.pet
Description 
pet

 Download 
Filename  ipt_MASQUERADE_slacko630-k3.14.55.pet 
Filesize  1.95 KB 
Downloaded  21 Time(s) 
Back to top
View user's profile Send private message 
rubing

Joined: 19 Jul 2008
Posts: 70

PostPosted: Fri 20 Oct 2017, 00:21    Post subject:  

Thanks! I installed that pet and am now getting 2 new errors. This is the output I now see when I try to run create_ap:


Config dir: /tmp/create_ap.wlan2.conf.XXDEygep
PID: 12972
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan2.conf.XXDEygep/hostapd_ctrl
/usr/bin/create_ap: line 1837: stdbuf: command not found

Error: Failed to run hostapd, maybe a program is interfering.

Doing cleanup.. done
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Fri 20 Oct 2017, 09:53    Post subject:  

There is a Linux command called stdbuf but your Slacko doesn't have it. I pulled it out of Debian Stretch and packaged it as a PET.

No promises.
stdbuf-1.0.pet
Description 
pet

 Download 
Filename  stdbuf-1.0.pet 
Filesize  25.51 KB 
Downloaded  16 Time(s) 
Back to top
View user's profile Send private message 
rubing

Joined: 19 Jul 2008
Posts: 70

PostPosted: Fri 20 Oct 2017, 19:47    Post subject:  

thanks for all the help rcrsn!

The package installed successfully but now i get the error that it's library is missing:

stdbuf: failed to find 'libstdbuf.so'
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Fri 20 Oct 2017, 20:45    Post subject:  

That lib is included in the PET. It should install at /usr/lib/coreutils/libstdbuf.so
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Sat 21 Oct 2017, 11:27    Post subject:  

Move libstdbuf.so into /usr/bin
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Mon 23 Oct 2017, 19:02    Post subject:  

Is this discussion over?
Back to top
View user's profile Send private message 
rubing

Joined: 19 Jul 2008
Posts: 70

PostPosted: Tue 24 Oct 2017, 15:37    Post subject:  

Sorry...have been away for several days. Will be back from traveling tomorrow and will give your suggestion a try. Thanks!
Back to top
View user's profile Send private message 
rubing

Joined: 19 Jul 2008
Posts: 70

PostPosted: Tue 24 Oct 2017, 19:00    Post subject:  

It works!! One warning I get though is that I should install the program haveged due to low entropy. I'm looking in the PPM and do not see it. Is there a way to request this package? thanks!
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Tue 24 Oct 2017, 20:03    Post subject:  

Google "debian stretch haveged". But if your system is working, I wouldn't mess around with it.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0487s ][ Queries: 15 (0.0071s) ][ GZIP on ]