create_ap iptables error

Booting, installing, newbie
Post Reply
Message
Author
rubing
Posts: 70
Joined: Sat 19 Jul 2008, 21:52

create_ap iptables error

#1 Post by rubing »

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

stemsee

#2 Post by stemsee »

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: Select all

make install

rubing
Posts: 70
Joined: Sat 19 Jul 2008, 21:52

#3 Post by rubing »

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.

rubing
Posts: 70
Joined: Sat 19 Jul 2008, 21:52

#4 Post by rubing »

I have gone and posted this question on the create_ap github project as issue, hopefully they will have some insight there.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#5 Post by rcrsn51 »

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

Plese note that add-on modules are kernel-specific.
Attachments
ipt_MASQUERADE_slacko630-k3.14.55.pet
(1.95 KiB) Downloaded 183 times

rubing
Posts: 70
Joined: Sat 19 Jul 2008, 21:52

#6 Post by rubing »

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

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#7 Post by rcrsn51 »

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.
Attachments
stdbuf-1.0.pet
(25.51 KiB) Downloaded 186 times

rubing
Posts: 70
Joined: Sat 19 Jul 2008, 21:52

#8 Post by rubing »

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'

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#9 Post by rcrsn51 »

That lib is included in the PET. It should install at /usr/lib/coreutils/libstdbuf.so

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#10 Post by rcrsn51 »

Move libstdbuf.so into /usr/bin

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#11 Post by rcrsn51 »

Is this discussion over?

rubing
Posts: 70
Joined: Sat 19 Jul 2008, 21:52

#12 Post by rubing »

Sorry...have been away for several days. Will be back from traveling tomorrow and will give your suggestion a try. Thanks!

rubing
Posts: 70
Joined: Sat 19 Jul 2008, 21:52

#13 Post by rubing »

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!

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#14 Post by rcrsn51 »

Google "debian stretch haveged". But if your system is working, I wouldn't mess around with it.

Post Reply