Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kunal@raspberrypi:~ $ sudo cat /etc/wireguard/wg0.conf
- [Interface]
- Address = 10.18.6.5/32
- MTU = 1380
- PostUp = wg set %i private-key /etc/wireguard/%i.key
- DNS = 1.1.1.1
- [Peer]
- PublicKey = aws-pub-key
- PresharedKey = pre-sharedkey
- PersistentKeepalive = 25
- Endpoint = aws_wg:51820
- AllowedIPs = 10.18.6.0/24
- kunal@raspberrypi:~ $ sudo wg show
- interface: wg0
- public key: Ras-pi-pub-key
- private key: (hidden)
- listening port: 50080
- peer: aws-pub-key
- preshared key: (hidden)
- endpoint: aws_wg:51820
- allowed ips: 10.18.6.0/24
- latest handshake: 1 minute, 42 seconds ago
- transfer: 52.37 KiB received, 61.93 KiB sent
- persistent keepalive: every 25 seconds
- kunal@raspberrypi:~ $ route
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- default 192.168.0.1 0.0.0.0 UG 100 0 0 eth0
- 10.18.6.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
- 192.168.0.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
- kunal@raspberrypi:~ $ 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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
- link/ether b8:27:eb:47:1e:13 brd ff:ff:ff:ff:ff:ff
- inet 192.168.0.38/24 brd 192.168.0.255 scope global noprefixroute eth0
- valid_lft forever preferred_lft forever
- inet6 fd5b:a219:37df:9e4c:f3c7:80b9:83de:93cc/64 scope global dynamic noprefixroute
- valid_lft 1772sec preferred_lft 1772sec
- inet6 fe80::56db:73dd:8021:f93b/64 scope link noprefixroute
- valid_lft forever preferred_lft forever
- 3: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1380 qdisc noqueue state UNKNOWN group default qlen 1000
- link/none
- inet 10.18.6.5/32 scope global wg0
- valid_lft forever preferred_lft forever
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement