1707 private links
Via river.
Commandes pour connaitre les adresses IP (simple / précise) (eth0 devient enp4s0)
$ ip a
$ ip -c -6 address show enp4s0
Les adresses commençant par 192.168. et fe80: sont des adresses de réseau local uniquement
Commandes pour connaitre l'adresse de la passerelle (ipv4 / ipv6 / voisins)
$ ip route
$ ip -6 route
$ ip neigh
Configuration statique de l'interface réseau pour un serveur (ipv4 / ipv6)nano /etc/network/interfaces
allow-hotplug enp4s0
iface enp4s0 inet static
address 192.168.0.2/24
gateway 192.168.0.1
iface enp4s0 inet6 static
address ............/64
gateway fe80::.......
Pour un ordinateur client on préfère utiliser le DHCPnano /etc/network/interfaces
allow-hotplug enp4s0
iface enp4s0 inet dhcp
iface enp4s0 inet6 auto
Pour appliquer les changements il faut relancer l'interface réseau (ou rebooter si on est à distance)ip link set enp4s0 down
ip link set enp4s0 up
reboot
Enfin pour tester la configuration depuis un autre ordinateur
$ ping -c 3 192.168.0.2
$ ping6 -c 3 2a01:...........
Coude.
Static
$IP = "192.168.1.101"
$Mask = 24
$Gateway = "192.168.1.1"
$DNS1 = "192.168.1.2"
$DNS2 = "80.67.169.12"
$IPType = "IPv4"
$adapter = Get-NetAdapter | ? {$_.Status -eq "up"}
If (($adapter | Get-NetIPConfiguration).IPv4Address.IPAddress) {
$adapter | Remove-NetIPAddress -AddressFamily $IPType -Confirm:$false
}
If (($adapter | Get-NetIPConfiguration).Ipv4DefaultGateway) {
$adapter | Remove-NetRoute -AddressFamily $IPType -Confirm:$false
}
$adapter | New-NetIPAddress -AddressFamily $IPType -IPAddress $IP -PrefixLength $Mask -DefaultGateway $Gateway
$adapter | Set-DnsClientServerAddress -ServerAddresses ("$DNS1","$DNS2")
DHCP
$IPType = "IPv4"
$adapter = Get-NetAdapter | ? {$_.Status -eq "up"}
$interface = $adapter | Get-NetIPInterface -AddressFamily $IPType
If ($interface.Dhcp -eq "Disabled") {
If (($interface | Get-NetIPConfiguration).Ipv4DefaultGateway) {
$interface | Remove-NetRoute -Confirm:$false
}
$interface | Set-NetIPInterface -DHCP Enabled
$interface | Set-DnsClientServerAddress -ResetServerAddresses
}
Explore the Internet of Things
Use Shodan to discover which of your devices are connected to the Internet, where they are located and who is using them.
See the Big Picture
Websites are just one part of the Internet. There are power plants, Smart TVs, refrigerators and much more that can be found with Shodan!
Monitor Network Security
Keep track of all the computers on your network that are directly accessible from the Internet. Shodan lets you understand your digital footprint.
Get a Competitive Advantage
Who is using your product? Where are they located? Use Shodan to perform empirical market intelligence.
Liste d'ip pour blocklist, pour les clients p2p/hosts