Setting up usbnet

Discussion in 'Pyra OS (Debian GNU/Linux)' started by sebt3, Sep 23, 2017.

  1. sebt3

    sebt3 homebrew player (P. & C.)

    Joined:
    Sep 9, 2008
    Messages:
    4,740
    Location:
    France
    I wanted usbnet for my pyra to help with the developpement flow.
    I bought this :
    [​IMG]
    [ link ]


    Setting up was a breath,
    On my desktop I made a /etc/network/interfaces.d/usb :
    allow-hotplug enp0s20f0u3u1

    mapping hotplug
    script grep
    map enp0s20f0u3u1

    iface enp0s20f0u3u1 inet static
    address 192.168.2.14
    netmask 255.255.255.0
    broadcast 192.168.2.255
    up echo 1 > /proc/sys/net/ipv4/ip_forward
    up iptables -P FORWARD ACCEPT
    up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
    down echo 0 > /proc/sys/net/ipv4/ip_forward
    down iptables -t nat -F POSTROUTING

    And on the pyra, I made a /etc/network/interfaces.d/usbnet :
    auto usb0
    iface usb0 inet static
    address 192.168.2.15
    netmask 255.255.255.0
    gateway 192.168.2.14

    And after starting the interfaces on both, I got it working :)
     
    Tags:
    levi and Linux-SWAT like this.
  2. Swordfish II

    Swordfish II Very Active Member

    Joined:
    May 20, 2015
    Messages:
    675
    I have your IPs, stand by to be haxored :)
     
    Sumpfmonster and PowerGod like this.
  3. Linux-SWAT

    Linux-SWAT Hardcore Member

    Joined:
    Feb 13, 2010
    Messages:
    8,039
    Thanks for sharing.
     
  4. TeDaDeS

    TeDaDeS Very Active Member

    Joined:
    Jan 15, 2004
    Messages:
    788
    Location:
    The Netherlands
    Obviously he used a fake IP address, you can see because it starts with a valid range.
    I used my tv-series knowledge about reverse engineering IP addresses to real ones to solve this one. (Now he should change his IP and home address :confused:)
    fakeip.png

    Nice hardware btw. If I remember correctly USB-C native allows these kind of networks.
     

    Attached Files:

    Sumpfmonster and Swordfish II like this.
  5. Binky

    Binky Death's Steed Staff Member

    Joined:
    May 28, 2003
    Messages:
    6,803
    Location:
    16A (TO)
    I've heard there's lot of fun to be had aiming D-o-S attacks at 127.0.0.1
     
    rygD, ChunkyPenguin, Neelix and 4 others like this.
  6. bzar

    bzar A Commando

    Joined:
    Sep 22, 2008
    Messages:
    4,434
    Location:
    Finland
    Instructions unclear. Ended up fork bombing myself. 0/5 would not hack again.
     
    ible and sebt3 like this.

Share This Page

Loading...