#!/usr/bin/env bash

# Config
NAMESERVER="162.19.75.102"

# Setup
ifconfig eth0 down
ifconfig usb1 down
ifconfig usb0 10.0.0.2/24
iptables -F
ip route del default
ip route add default via 10.0.0.1 dev usb0
echo "nameserver ${NAMESERVER}" > /etc/resolv.conf
