Advertisement
infixr

Raspberry Wired Router

Sep 25th, 2021
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. ubuntu@ubuntu:~$ ifconfig
  2. eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  3. inet 192.168.100.182 netmask 255.255.255.0 broadcast 192.168.100.255
  4. inet6 fe80::e65f:1ff:fe08:ef11 prefixlen 64 scopeid 0x20<link>
  5. inet6 2806:2f0:6020:2cfa:e65f:1ff:fe08:ef11 prefixlen 64 scopeid 0x0<global>
  6. ether e4:5f:01:08:ef:11 txqueuelen 1000 (Ethernet)
  7. RX packets 78735 bytes 13230058 (13.2 MB)
  8. RX errors 0 dropped 73 overruns 0 frame 0
  9. TX packets 18738 bytes 2825182 (2.8 MB)
  10. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  11.  
  12. eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  13. inet 172.16.0.1 netmask 255.255.255.0 broadcast 172.16.0.255
  14. inet6 fe80::2e0:4cff:fe6c:92f2 prefixlen 64 scopeid 0x20<link>
  15. ether 00:e0:4c:6c:92:f2 txqueuelen 1000 (Ethernet)
  16. RX packets 11071 bytes 1231157 (1.2 MB)
  17. RX errors 0 dropped 0 overruns 0 frame 0
  18. TX packets 1665 bytes 252658 (252.6 KB)
  19. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  20.  
  21. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  22. inet 127.0.0.1 netmask 255.0.0.0
  23. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  24. loop txqueuelen 1000 (Local Loopback)
  25. RX packets 822 bytes 77425 (77.4 KB)
  26. RX errors 0 dropped 0 overruns 0 frame 0
  27. TX packets 822 bytes 77425 (77.4 KB)
  28. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  29.  
  30. wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420
  31. inet 10.6.0.5 netmask 255.255.255.0 destination 10.6.0.5
  32. unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
  33. RX packets 447 bytes 84436 (84.4 KB)
  34. RX errors 0 dropped 0 overruns 0 frame 0
  35. TX packets 579 bytes 175752 (175.7 KB)
  36. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  37.  
  38. ---------------------------------------------------------------------------------------------------------------------------------
  39.  
  40. ubuntu@ubuntu:~$ sudo wg show
  41. interface: wg0
  42. public key: r56sl4HNKHFkz8/r+aGqOHClMuXUt9lGE34gpktP5Q4=
  43. private key: (hidden)
  44. listening port: 56495
  45.  
  46. peer: mCK/FAHGtXFBNLS5WpHhSPEBvZRwY09HohD1YkNCNSI=
  47. preshared key: (hidden)
  48. endpoint: 158.43.56.3:51820
  49. allowed ips: 172.16.0.10/32, 10.6.0.0/24
  50. latest handshake: 1 minute, 16 seconds ago
  51. transfer: 87.00 KiB received, 177.38 KiB sent
  52. persistent keepalive: every 25 seconds
  53.  
  54. ---------------------------------------------------------------------------------------------------------------------------------
  55.  
  56. ubuntu@ubuntu:~$ sudo iptables -L -n -x -v -t nat
  57. Chain PREROUTING (policy ACCEPT 2428 packets, 295002 bytes)
  58. pkts bytes target prot opt in out source destination
  59.  
  60. Chain INPUT (policy ACCEPT 4 packets, 1788 bytes)
  61. pkts bytes target prot opt in out source destination
  62.  
  63. Chain OUTPUT (policy ACCEPT 38 packets, 9627 bytes)
  64. pkts bytes target prot opt in out source destination
  65.  
  66. Chain POSTROUTING (policy ACCEPT 38 packets, 9627 bytes)
  67. pkts bytes target prot opt in out source destination
  68. 0 0 MASQUERADE all -- * eth1 0.0.0.0/0 0.0.0.0/0
  69.  
  70. ---------------------------------------------------------------------------------------------------------------------------------
  71.  
  72. ubuntu@ubuntu:~$ route -n
  73. Kernel IP routing table
  74. Destination Gateway Genmask Flags Metric Ref Use Iface
  75. 0.0.0.0 192.168.100.1 0.0.0.0 UG 100 0 0 eth0
  76. 10.6.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
  77. 172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
  78. 172.16.0.10 0.0.0.0 255.255.255.255 UH 0 0 0 wg0
  79. 192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  80. 192.168.100.1 0.0.0.0 255.255.255.255 UH 100 0 0 eth0
  81.  
  82. ---------------------------------------------------------------------------------------------------------------------------------
  83.  
  84. ubuntu@ubuntu:~$ dhcp-lease-list
  85. To get manufacturer names please download http://standards.ieee.org/regauth/oui/oui.txt to /usr/local/etc/oui.txt
  86. Reading leases from /var/lib/dhcp/dhcpd.leases
  87. MAC IP hostname valid until manufacturer
  88. ===============================================================================================
  89. 50:9a:4c:cb:55:65 172.16.0.10 DESKTOP-IK9472 2021-09-25 07:12:34 -NA-
  90.  
  91.  
  92.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement