Advertisement
Guest User

Untitled

a guest
Nov 28th, 2022
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. ############ ifconfig
  2. ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  3. inet 192.168.50.22 netmask 255.255.255.0 broadcast 192.168.50.255
  4. inet6 fe80::341d:21ff:fe91:1d4f prefixlen 64 scopeid 0x20<link>
  5. ether 36:1d:21:91:1d:4f txqueuelen 1000 (Ethernet)
  6. RX packets 832 bytes 122633 (122.6 KB)
  7. RX errors 0 dropped 124 overruns 0 frame 0
  8. TX packets 142 bytes 17050 (17.0 KB)
  9. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  10.  
  11. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  12. inet 127.0.0.1 netmask 255.0.0.0
  13. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  14. loop txqueuelen 1000 (Local Loopback)
  15. RX packets 84 bytes 6368 (6.3 KB)
  16. RX errors 0 dropped 0 overruns 0 frame 0
  17. TX packets 84 bytes 6368 (6.3 KB)
  18. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  19.  
  20. wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420
  21. inet 10.8.139.233 netmask 255.255.255.255 destination 10.8.139.233
  22. unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
  23. RX packets 8 bytes 952 (952.0 B)
  24. RX errors 0 dropped 0 overruns 0 frame 0
  25. TX packets 19 bytes 1352 (1.3 KB)
  26. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  27.  
  28.  
  29. ############ wg0 conf
  30.  
  31. root@wireguard:~# cat /etc/wireguard/wg0.conf
  32. [Interface]
  33. Address = 10.8.139.233
  34. PrivateKey = privkey
  35. DNS = 10.0.0.243,10.0.0.242
  36.  
  37. [Peer]
  38. PublicKey = pubkey
  39. Endpoint = 46.246.3.228:1337
  40. AllowedIPs = 0.0.0.0/0
  41. PersistentKeepalive = 25
  42.  
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement