Advertisement
finders2014

ubuntu_desktop

Dec 7th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. kunal@kunal-desktop:~$ sudo cat /etc/wireguard/wg0.conf
  2. [Interface]
  3. PostUp = wg set %i private-key /etc/wireguard/%i.key
  4. Address = 10.18.6.2/32
  5. #DNS = 1.1.1.1
  6. MTU = 1380
  7.  
  8. [Peer]
  9. PublicKey = aws-pub-key
  10. PresharedKey = pre-sharedkey
  11. AllowedIPs = 10.18.6.0/24
  12. Endpoint = aws_wg:51820
  13. PersistentKeepalive = 25
  14.  
  15. kunal@kunal-desktop:~$ sudo wg show
  16. interface: wg0
  17. public key: ubuntu-desktop-pub-key
  18. private key: (hidden)
  19. listening port: 55614
  20.  
  21. peer: aws-pub-key
  22. preshared key: (hidden)
  23. endpoint: aws_wg:51820
  24. allowed ips: 10.18.6.0/24
  25. latest handshake: 1 minute, 56 seconds ago
  26. transfer: 276 B received, 988 B sent
  27. persistent keepalive: every 25 seconds
  28.  
  29. kunal@kunal-desktop:~$ route
  30. Kernel IP routing table
  31. Destination Gateway Genmask Flags Metric Ref Use Iface
  32. default _gateway 0.0.0.0 UG 100 0 0 enp4s0
  33. 10.18.6.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
  34. 172.16.103.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
  35. 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
  36. 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 enp4s0
  37. 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
  38.  
  39. kunal@kunal-desktop:~$ ip addr
  40. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  41. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  42. inet 127.0.0.1/8 scope host lo
  43. valid_lft forever preferred_lft forever
  44. inet6 ::1/128 scope host noprefixroute
  45. valid_lft forever preferred_lft forever
  46. 2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
  47. link/ether a8:5e:45:57:d2:0e brd ff:ff:ff:ff:ff:ff
  48. inet 192.168.0.31/24 brd 192.168.0.255 scope global noprefixroute enp4s0
  49. valid_lft forever preferred_lft forever
  50. inet6 fd5b:a219:37df:9e4c:effc:3f5:2e5f:b5bf/64 scope global temporary dynamic
  51. valid_lft 1594sec preferred_lft 1594sec
  52. inet6 fd5b:a219:37df:9e4c:aa5e:45ff:fe57:d20e/64 scope global dynamic mngtmpaddr noprefixroute
  53. valid_lft 1594sec preferred_lft 1594sec
  54. inet6 fe80::aa5e:45ff:fe57:d20e/64 scope link noprefixroute
  55. valid_lft forever preferred_lft forever
  56. 3: wlp5s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
  57. link/ether 98:3b:8f:c2:9e:17 brd ff:ff:ff:ff:ff:ff
  58. 5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
  59. link/ether 02:42:4d:36:0b:80 brd ff:ff:ff:ff:ff:ff
  60. inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
  61. valid_lft forever preferred_lft forever
  62. 6: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
  63. link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff
  64. inet 172.16.103.1/24 brd 172.16.103.255 scope global vmnet1
  65. valid_lft forever preferred_lft forever
  66. inet6 fe80::250:56ff:fec0:1/64 scope link
  67. valid_lft forever preferred_lft forever
  68. 7: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
  69. link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
  70. inet 192.168.20.1/24 brd 192.168.20.255 scope global vmnet8
  71. valid_lft forever preferred_lft forever
  72. inet6 fe80::250:56ff:fec0:8/64 scope link
  73. valid_lft forever preferred_lft forever
  74. 9: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1380 qdisc noqueue state UNKNOWN group default qlen 1000
  75. link/none
  76. inet 10.18.6.2/32 scope global wg0
  77. valid_lft forever preferred_lft forever
  78.  
  79. kunal@kunal-desktop:~$ sudo resolvectl status
  80. Global
  81. Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  82. resolv.conf mode: stub
  83.  
  84. Link 2 (enp4s0)
  85. Current Scopes: DNS
  86. Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  87. Current DNS Server: 1.1.1.1
  88. DNS Servers: 1.1.1.1 1.0.0.1
  89.  
  90. Link 3 (wlp5s0)
  91. Current Scopes: none
  92. Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  93.  
  94. Link 5 (docker0)
  95. Current Scopes: none
  96. Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  97.  
  98. Link 6 (vmnet1)
  99. Current Scopes: none
  100. Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  101.  
  102. Link 7 (vmnet8)
  103. Current Scopes: none
  104. Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  105.  
  106. Link 9 (wg0)
  107. Current Scopes: none
  108. Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement