Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kunal@kunal-desktop:~$ sudo cat /etc/wireguard/wg0.conf
- [Interface]
- PostUp = wg set %i private-key /etc/wireguard/%i.key
- Address = 10.18.6.2/32
- #DNS = 1.1.1.1
- MTU = 1380
- [Peer]
- PublicKey = aws-pub-key
- PresharedKey = pre-sharedkey
- AllowedIPs = 10.18.6.0/24
- Endpoint = aws_wg:51820
- PersistentKeepalive = 25
- kunal@kunal-desktop:~$ sudo wg show
- interface: wg0
- public key: ubuntu-desktop-pub-key
- private key: (hidden)
- listening port: 55614
- peer: aws-pub-key
- preshared key: (hidden)
- endpoint: aws_wg:51820
- allowed ips: 10.18.6.0/24
- latest handshake: 1 minute, 56 seconds ago
- transfer: 276 B received, 988 B sent
- persistent keepalive: every 25 seconds
- kunal@kunal-desktop:~$ route
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- default _gateway 0.0.0.0 UG 100 0 0 enp4s0
- 10.18.6.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
- 172.16.103.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
- 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
- 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 enp4s0
- 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
- kunal@kunal-desktop:~$ ip addr
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- valid_lft forever preferred_lft forever
- inet6 ::1/128 scope host noprefixroute
- valid_lft forever preferred_lft forever
- 2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
- link/ether a8:5e:45:57:d2:0e brd ff:ff:ff:ff:ff:ff
- inet 192.168.0.31/24 brd 192.168.0.255 scope global noprefixroute enp4s0
- valid_lft forever preferred_lft forever
- inet6 fd5b:a219:37df:9e4c:effc:3f5:2e5f:b5bf/64 scope global temporary dynamic
- valid_lft 1594sec preferred_lft 1594sec
- inet6 fd5b:a219:37df:9e4c:aa5e:45ff:fe57:d20e/64 scope global dynamic mngtmpaddr noprefixroute
- valid_lft 1594sec preferred_lft 1594sec
- inet6 fe80::aa5e:45ff:fe57:d20e/64 scope link noprefixroute
- valid_lft forever preferred_lft forever
- 3: wlp5s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
- link/ether 98:3b:8f:c2:9e:17 brd ff:ff:ff:ff:ff:ff
- 5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
- link/ether 02:42:4d:36:0b:80 brd ff:ff:ff:ff:ff:ff
- inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
- valid_lft forever preferred_lft forever
- 6: vmnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
- link/ether 00:50:56:c0:00:01 brd ff:ff:ff:ff:ff:ff
- inet 172.16.103.1/24 brd 172.16.103.255 scope global vmnet1
- valid_lft forever preferred_lft forever
- inet6 fe80::250:56ff:fec0:1/64 scope link
- valid_lft forever preferred_lft forever
- 7: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
- link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
- inet 192.168.20.1/24 brd 192.168.20.255 scope global vmnet8
- valid_lft forever preferred_lft forever
- inet6 fe80::250:56ff:fec0:8/64 scope link
- valid_lft forever preferred_lft forever
- 9: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1380 qdisc noqueue state UNKNOWN group default qlen 1000
- link/none
- inet 10.18.6.2/32 scope global wg0
- valid_lft forever preferred_lft forever
- kunal@kunal-desktop:~$ sudo resolvectl status
- Global
- Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
- resolv.conf mode: stub
- Link 2 (enp4s0)
- Current Scopes: DNS
- Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
- Current DNS Server: 1.1.1.1
- DNS Servers: 1.1.1.1 1.0.0.1
- Link 3 (wlp5s0)
- Current Scopes: none
- Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
- Link 5 (docker0)
- Current Scopes: none
- Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
- Link 6 (vmnet1)
- Current Scopes: none
- Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
- Link 7 (vmnet8)
- Current Scopes: none
- Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
- Link 9 (wg0)
- Current Scopes: none
- Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement