Bootleg bot

From XPUB & Lens-Based wiki

Networks

(we will go through the following commands from sergio)

To which networks is sergio connected right now?

ip a

To which networks is the bootleg library connected right now?

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether dc:a6:32:54:34:1c brd ff:ff:ff:ff:ff:ff
    inet 145.24.153.55/23 brd 145.24.153.255 scope global dynamic noprefixroute eth0
       valid_lft 207029sec preferred_lft 174629sec
    inet6 fe80::9e59:5f86:ee6:e86d/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether dc:a6:32:54:34:1e brd ff:ff:ff:ff:ff:ff
    inet 10.9.8.1/24 brd 10.9.8.255 scope global noprefixroute wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::9724:36ee:d995:558e/64 scope link 
       valid_lft forever preferred_lft forever
4: hub: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 500
    link/none 
    inet 10.0.0.103/24 scope global hub
       valid_lft forever preferred_lft forever
    inet6 fe80::6fce:6106:9b56:33db/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever

Are we sharing a network with the bootleg library?

yes! the HUB

Can we check if we can communicate with the bootleg library through this network? (see all HUB ip address here)

ping 10.0.0.103

Who else is on the network right now?

nmap 10.0.0.*

And who else is on the eduroam right now? (in the same subnet)

nmap 145.24.152.*

We can make such a mapping because we are part of the same LAN network.

(LAN = local area network)

But how do you travel from one network to another within the WAN?

(WAN = wider area network, aka the internet)

traceroute zulip.xpub.nl

But how do we reach the hidden LAN/VPN 10.0.0.* network from the WAN?

ssh tunnelling!

SSH tunnels

https://ittavern.com/visual-guide-to-ssh-tunneling-and-port-forwarding/