Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ubuntu:~$ ifconfig
- eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.100.182 netmask 255.255.255.0 broadcast 192.168.100.255
- inet6 fe80::e65f:1ff:fe08:ef11 prefixlen 64 scopeid 0x20<link>
- inet6 2806:2f0:6020:2cfa:e65f:1ff:fe08:ef11 prefixlen 64 scopeid 0x0<global>
- ether e4:5f:01:08:ef:11 txqueuelen 1000 (Ethernet)
- RX packets 78735 bytes 13230058 (13.2 MB)
- RX errors 0 dropped 73 overruns 0 frame 0
- TX packets 18738 bytes 2825182 (2.8 MB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 172.16.0.1 netmask 255.255.255.0 broadcast 172.16.0.255
- inet6 fe80::2e0:4cff:fe6c:92f2 prefixlen 64 scopeid 0x20<link>
- ether 00:e0:4c:6c:92:f2 txqueuelen 1000 (Ethernet)
- RX packets 11071 bytes 1231157 (1.2 MB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 1665 bytes 252658 (252.6 KB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
- inet 127.0.0.1 netmask 255.0.0.0
- inet6 ::1 prefixlen 128 scopeid 0x10<host>
- loop txqueuelen 1000 (Local Loopback)
- RX packets 822 bytes 77425 (77.4 KB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 822 bytes 77425 (77.4 KB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420
- inet 10.6.0.5 netmask 255.255.255.0 destination 10.6.0.5
- unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
- RX packets 447 bytes 84436 (84.4 KB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 579 bytes 175752 (175.7 KB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- ---------------------------------------------------------------------------------------------------------------------------------
- ubuntu@ubuntu:~$ sudo wg show
- interface: wg0
- public key: r56sl4HNKHFkz8/r+aGqOHClMuXUt9lGE34gpktP5Q4=
- private key: (hidden)
- listening port: 56495
- peer: mCK/FAHGtXFBNLS5WpHhSPEBvZRwY09HohD1YkNCNSI=
- preshared key: (hidden)
- endpoint: 158.43.56.3:51820
- allowed ips: 172.16.0.10/32, 10.6.0.0/24
- latest handshake: 1 minute, 16 seconds ago
- transfer: 87.00 KiB received, 177.38 KiB sent
- persistent keepalive: every 25 seconds
- ---------------------------------------------------------------------------------------------------------------------------------
- ubuntu@ubuntu:~$ sudo iptables -L -n -x -v -t nat
- Chain PREROUTING (policy ACCEPT 2428 packets, 295002 bytes)
- pkts bytes target prot opt in out source destination
- Chain INPUT (policy ACCEPT 4 packets, 1788 bytes)
- pkts bytes target prot opt in out source destination
- Chain OUTPUT (policy ACCEPT 38 packets, 9627 bytes)
- pkts bytes target prot opt in out source destination
- Chain POSTROUTING (policy ACCEPT 38 packets, 9627 bytes)
- pkts bytes target prot opt in out source destination
- 0 0 MASQUERADE all -- * eth1 0.0.0.0/0 0.0.0.0/0
- ---------------------------------------------------------------------------------------------------------------------------------
- ubuntu@ubuntu:~$ route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 0.0.0.0 192.168.100.1 0.0.0.0 UG 100 0 0 eth0
- 10.6.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
- 172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
- 172.16.0.10 0.0.0.0 255.255.255.255 UH 0 0 0 wg0
- 192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
- 192.168.100.1 0.0.0.0 255.255.255.255 UH 100 0 0 eth0
- ---------------------------------------------------------------------------------------------------------------------------------
- ubuntu@ubuntu:~$ dhcp-lease-list
- To get manufacturer names please download http://standards.ieee.org/regauth/oui/oui.txt to /usr/local/etc/oui.txt
- Reading leases from /var/lib/dhcp/dhcpd.leases
- MAC IP hostname valid until manufacturer
- ===============================================================================================
- 50:9a:4c:cb:55:65 172.16.0.10 DESKTOP-IK9472 2021-09-25 07:12:34 -NA-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement