Setting up usbnet

sebt3

homebrew player (P. & C.)
Joined
Sep 9, 2008
Messages
4,747
Age
39
Location
France
Website
sebt3.openpandora.org
I wanted usbnet for my pyra to help with the developpement flow.
I bought this :

[ 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 :)
 

TeDaDeS

Very Active Member
Joined
Jan 15, 2004
Messages
886
Location
The Netherlands
Website
Visit site
I have your IPs, stand by to be haxored :)
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.
 

Attachments

Top