jwolach Posted April 14, 2020 Share Posted April 14, 2020 I just received my Shark Jack and upgraded the firmware to 1.1.0. When I put the Shark Jack in Arming Mode and plug it into my Macbook Pro computer, it kills my computer's Internet connection. The minute I unplug it, the Internet connection comes back. Any help on this???? Link to comment Share on other sites More sharing options...
flipchart Posted April 15, 2020 Share Posted April 15, 2020 Probably your Computer takes the Shark Jack as Default Gateway. Difficult to tell with so few info. Could you post the output of the following commands with the Shark attached and also not attached? ip r g 8.8.8.8 ip a (I hope those commands run under Mac OS too... :sigh:) Link to comment Share on other sites More sharing options...
jwolach Posted April 15, 2020 Author Share Posted April 15, 2020 LOL! I had to do brew install iproute2mac so I can get the ip command on my MacOS. Yep, when the Shark Jack is in Arming Mode and plugged into my computer, the default gateway is 172.16.24.1 and when it's not plugged in my default gateway is my firewall's inside interface 192.168.0.1. http://sw-techgroup.net/images/ip-command-sj.png http://sw-techgroup.net/images/ip-command-no-sj.png Link to comment Share on other sites More sharing options...
flipchart Posted April 16, 2020 Share Posted April 16, 2020 I am not so familiar with Mac OS, but probably you get it going with this stackexchange post: https://apple.stackexchange.com/questions/33097/how-to-change-the-default-gateway-of-a-mac-osx-machine I'd first go for the GUI option, as there you hopefully don't break the several tunnels you have running... 😉 Link to comment Share on other sites More sharing options...
Aaron Outhier Posted June 21, 2020 Share Posted June 21, 2020 I believe the issue the OP is having is that there are 2 default gateways. I get a similar issue on any computer with 2 network connections, when both connections have a DHCP server configured. The WiFi Pineapple Nano comes to mind, for example, when I plug in the USB connection to my laptop, my Internet goes down. The easiest solution is to configure the SharkJack interface to use a Static IP, and don’t specify a Default Gateway. In most cases, you can leave the DNS server blank also. Link to comment Share on other sites More sharing options...
QIPLi59vS7Pezg Posted June 22, 2020 Share Posted June 22, 2020 The issue here is that dnsmasq on the Shark Jack sends option 3 indicating that the dnsmasq host (the Shark Jack) is the default router. This is dnsmasq's default behavior, but it can be changed by adding the following line to the configuration file and then restarting dnsmasq. dhcp-option=3 Frankly, I think this should be the default behavior in arming mode. The dnsmasq configuration file on my system is at /var/etc/dnsmasq.conf.cfg<numbers-i-don't-recognize>. A simple procedure: Note the dnsmasq running parameters with `ps -w | grep dnsmasq` Edit the config file (the one after the `-C` argument) Kill the dnsmasq process: `killall dnsmasq` The process should start back up in a moment Unplug/replace the Shark Jack so that the link bounces on your PC. You'll drop the bogus gateway and it won't be re-installed. Unfortunately, this only works for a single boot of the Shark Jack. Making it persistent eludes me right now. Link to comment Share on other sites More sharing options...
QIPLi59vS7Pezg Posted June 22, 2020 Share Posted June 22, 2020 Okay, it turns out that the /var/etc/dnsmasq.conf<instance> file (which is generated on boot) refers to /etc/dnsmasq.conf. So, putting the previously mentioned option in /etc/dnsmasq.conf makes it persistent. ...But that may not be very useful, depending on what sort of payloads you intend to run. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.