~cyplo/dotfiles

ref: 57ef81646178fb56b9e7df2ae6b00f5dfe3bba0d dotfiles/tools/armory_demasq -rwxr-xr-x 309 bytes
57ef8164 — Cyryl Płotnicki Merge branch 'master' into cucumber 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e
set -v
if [[ -z "$USB_INTERFACE" ]]; then
    USB_INTERFACE=usb0
fi

if [[ -z "$INTERNET_INTERFACE" ]]; then
    INTERNET_INTERFACE=wlan0
fi

echo 0 | sudo tee /proc/sys/net/ipv4/ip_forward

sudo /sbin/ip addr del 10.0.0.2/24 dev $USB_INTERFACE

sudo /sbin/ip link set $USB_INTERFACE down