Jump to content

Firewall Is Not Installed On My Pineapple?


trescomban1
 Share

Recommended Posts

I tried to connect my pineapple to 3g, when i run ./3g.sh in putty this launch to me the error:

root@Pineapple:/pineapple/3g# ./3g.sh

Searching for attached 3G Modems

1d6b:0002 19d2:0124

ZTE MF190 (Variant) detected. Attempting mode switch

rmmod: can't unload 'usbserial': Resource temporarily unavailable

insmod: can't insert 'usbserial': File exists

./3g.sh: line 62: /etc/init.d/firewall: not found

./3g.sh: line 62: /etc/init.d/firewall: not found

**************

firewall no is installed on init.d???

**************

in the log i can see:

00:08:25 Pineapple local2.info chat[3209]: timeout set to 10 seconds

00:08:25 Pineapple local2.info chat[3209]: send (AT&F^M)

00:08:25 Pineapple local2.info chat[3209]: report (CONNECT)

00:08:25 Pineapple local2.info chat[3209]: expect (OK)

00:08:25 Pineapple local2.info chat[3209]: abort on (NO CARRIER)

00:08:25 Pineapple local2.info chat[3209]: abort on (ERROR)

00:08:25 Pineapple local2.info chat[3209]: abort on (BUSY)

00:08:24 Pineapple daemon.notice pppd[3182]: pppd 2.4.5 started by root, uid 0

***************

Mi 3g script is:

*19d2:0124*) echo "ZTE MF190 (Variant) detected. Attempting mode switch"

uci delete network.wan2

uci set network.wan2=interface

uci set network.wan2.ifname=ppp0

uci set network.wan2.proto=3g

uci set network.wan2.service=umts

uci set network.wan2.device=/dev/ttyUSB3

uci set network.wan2.apn=movistar.es

uci set network.wan2.username=movistar

uci set network.wan2.password=movistar

uci set network.wan2.defaultroute=1

uci commit network

sleep 10; rmmod usbserial

sleep 3; insmod usbserial vendor=0x19d2 product=0x0124

sleep 5; /etc/init.d/firewall disable; /etc/init.d/firewall stop

logger "3G: firewall stopped"

iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

;;

i think this is a error from the firewall is holding mi zte mf190, what is the solution?

Thank you soo much.

trescomban1

Link to comment
Share on other sites

The firewall has not been part of the Pineapple for a long time now.

It prevented some things we wanted to do.

You shouldn't need a firewall on the device, in the end, it is penetration testing hardware.

Your issue isn't with the firewall - although, we should remove the reference to the firewall from the 3g script.

Rather, it is with the usb serial modle and the fact that "No carrier was sent" message etc.

Re-flash your pineapple and see what you get.

Best Regards,

Sebkinne

Link to comment
Share on other sites

Hi , after reflashing 2.6.4:

The script:

*19d2:0124*) echo "ZTE MF190 (T-Mobile) detected. Attempting mode switch"

uci delete network.wan2

uci set network.wan2=interface

uci set network.wan2.ifname=ppp0

uci set network.wan2.proto=3g

uci set network.wan2.service=umts

uci set network.wan2.device=/dev/ttyUSB3

uci set network.wan2.apn=movistar.es

uci set network.wan2.username=movistar

uci set network.wan2.password=movistar

uci set network.wan2.defaultroute=1

uci commit network

sleep 10; rmmod usbserial

sleep 3; insmod usbserial vendor=0x19d2 product=0x0124

iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o 3g-wan2 -j MASQUERADE

iptables -A FORWARD -s 172.16.42.0/24 -o 3g-wan2 -j ACCEPT

iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i 3g-wan2 -j ACCEPT

;;

The error:

00:02:12 Pineapple local2.info chat[2075]: timeout set to 10 seconds

00:02:12 Pineapple local2.info chat[2075]: send (AT&F^M)

00:02:12 Pineapple local2.info chat[2075]: report (CONNECT)

00:02:12 Pineapple local2.info chat[2075]: expect (OK)

00:02:12 Pineapple local2.info chat[2075]: abort on (NO CARRIER)

00:02:12 Pineapple local2.info chat[2075]: abort on (ERROR)

00:02:12 Pineapple local2.info chat[2075]: abort on (BUSY)

00:02:11 Pineapple daemon.notice pppd[2058]: pppd 2.4.5 started by root, uid 0

00:02:08 Pineapple kern.info kernel: [ 128.370000] usbserial_generic 1-1:1.4: generic converter detected

00:02:08 Pineapple kern.info kernel: [ 128.360000] usb 1-1: generic converter now attached to ttyUSB3

what can i do?

Link to comment
Share on other sites

with 2.5.0 the same error:

00:03:59 Pineapple local2.info chat[2762]: alarm

00:03:59 Pineapple local2.info chat[2762]: Failed

00:03:59 Pineapple daemon.err pppd[2747]: Connect script failed

00:03:49 Pineapple local2.info chat[2762]: timeout set to 10 seconds

00:03:49 Pineapple local2.info chat[2762]: send (AT&F^M)

00:03:49 Pineapple local2.info chat[2762]: report (CONNECT)

00:03:49 Pineapple local2.info chat[2762]: expect (OK)

00:03:49 Pineapple local2.info chat[2762]: abort on (NO CARRIER)

00:03:49 Pineapple local2.info chat[2762]: abort on (ERROR)

00:03:49 Pineapple local2.info chat[2762]: abort on (BUSY)

00:03:48 Pineapple daemon.notice pppd[2747]: pppd 2.4.5 started by root, uid 0

00:03:44 Pineapple user.notice 3g-hotplug: Starting interface wan2 for device ttyUSB3

00:03:43 Pineapple kern.info kernel: [ 223.790000] usbserial_generic 1-1:1.4: generic converter detected

00:03:43 Pineapple kern.info kernel: [ 223.780000] usb 1-1: generic converter now attached to ttyUSB3

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...