From 3e6fc1eca657eb2701d0f82e7a06cfeb7efe1c0d Mon Sep 17 00:00:00 2001 From: usman-umer Date: Mon, 19 Jul 2021 19:39:29 +0100 Subject: [PATCH 1/2] udpated wireguard docs for equuleus branch --- .../images/wireguard_site2site_diagram.jpg | Bin 0 -> 19987 bytes docs/configuration/interfaces/wireguard.rst | 162 ++++++++++++++---- 2 files changed, 124 insertions(+), 38 deletions(-) create mode 100644 docs/_static/images/wireguard_site2site_diagram.jpg diff --git a/docs/_static/images/wireguard_site2site_diagram.jpg b/docs/_static/images/wireguard_site2site_diagram.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4a7a95e4b41712d78730c3417eb0d375568c33d2 GIT binary patch literal 19987 zcmb5U1C(UXvNu{?ZQHhO+qP{^bK16TOmo_{rfu6cr+eC(e*Hi9oO|#0*80|4FDff{ zW=6y>V^{8-DZi&`{9OFmQ-)Ft7-)(9rP6@Cb-VNXSSqa44uKNT^?JB#?i!K*6BCl#pPdVZTQH zf6`|^02vBI79<-KgaiOY1_4C|`5Xjrei;Y~@-G7Xn;;;ez`;O)Akbeo0QwK}KMVi> z90C&L%Ld@*Isgt71OP+=MfzfX0@Ql{O9qtRO7ALOkIO$7nV@t^CGUfyQF7oe_m22l zNhg^8T;VUMLDB!9{j0@|@6#=vyO3G)5hgq;Cz$F#bGL>#o6!D4)52p3>l0w)_7v7B z`u|c2I=QewPSCHN{=wK?vc#e|KJeFPu2z5BpqBIO(ktuy!~DT>%o&oeW4ZVL&;)le zRV_*U!FFYsqtlKNs%rW0U9`(j5e%=@H1YY})7KH-Noiww6{n*2e7=L8=luUr2EEb1 zAlLsEz`aG_q~S|@ZCq^Tw1xzlJ&(@b2>F`K^uL8^WF_k91!0v5D}$FIq33H>iV zH@U5&Mw-^YMnDEb*B)+-3g;94M*!{pEkv>Rzxv?pj(%rBXaB>DNSFx2W%+j>1UCt0 zf27)6EZ{!^z`W!K=>IkboYu_;u_L$bU+j{eydTzp#793%-Z74sq)q7#k0Dx+mW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&iu0? zrc6S}Jq0K9T+67yjI@g3C8F$6rWsxr1cY|q_4EgHj!+8^;n%|+vkV7-vJ4)k9RCK) zoW2c#Zq?#mkF?twndrwcm2+abX@2DGU%eiDJs@@OZV{NKCk4?U4SPq1BBDZKp0&O0%TohqpUko2CUc}V zN}f@@xrF9G-f;34Cq#&)x30dL9k8Y#=lg)n!E~*kX4dTd zS1l}gJG`TC?EA;U#~=OL|7*d#?qt4N){?Zg?{9Yn;P9{=#J|=oaZR|)-q;w=B=S5J z(vc|b6Z}9%jant2%TFAf>gdmzGTWQ`t2g4g`ptGD^QKZwui;T%kq3`#T|}n`4lC-X zrT3b%9ORzo5?@^Yi=-;$A)=-M0_mA3IxT&ndVpUPPvbu_map>e2$v|%A0vlCPn_-dJbIdn#HisoV z@G?tLLD)JGdItf|m-GtXZ&5^q3U{z=zLyLRiv8ORNdjxfDmn*vE=Fy8q1@Ho=ENK2 zHqGJs(?$WrQ~8Vn)6%>yI~l!z)6x1`alx6qXJ)t=S5Ny&^Q%avE*&oKep@eAk?GS- zcZnXl2f0VC*enQ;z%g1L1P1-;GeDf4FeBem(mLXkfP3Ve0ydwiH**R`-ZGkR7o+G*Ro@hhUGd~|#5LuD8UcY<@jU5}X z2q?j{(ND8mb0-J{am!q?@(;P3AC&nxqK|QniH^>6QDF^TD%~B^6U#FA(ikK=>b`ft s@yUcsJn_haJGvGPv2V)TxhKUqVn}zHyHqy`4gRnq*BNz<;%T%00jwRvs{jB1 literal 0 HcmV?d00001 diff --git a/docs/configuration/interfaces/wireguard.rst b/docs/configuration/interfaces/wireguard.rst index ddfbe620..bb2418b1 100644 --- a/docs/configuration/interfaces/wireguard.rst +++ b/docs/configuration/interfaces/wireguard.rst @@ -1,7 +1,5 @@ .. _wireguard: -.. include:: /_include/need_improvement.txt - ######### WireGuard ######### @@ -10,10 +8,24 @@ WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. See https://www.wireguard.com for more information. +**************** +Site to Site VPN +**************** + +This diagram corresponds with the example site to site configuration below. + +.. figure:: /_static/images/wireguard_site2site_diagram.jpg + ************* Configuration ************* + + +******** +Keypairs +******** + WireGuard requires the generation of a keypair, which includes a private key to decrypt incoming traffic, and a public key for peer(s) to encrypt traffic. @@ -55,8 +67,9 @@ own keypairs. vyos@vyos:~$ generate wireguard named-keypairs KP02 +*********************** Interface configuration -======================= +*********************** The next step is to configure your local side as well as the policy based trusted destination addresses. If you only initiate a connection, @@ -71,18 +84,31 @@ you want to tunnel (allowed-ips) to configure a WireGuard tunnel. The public key below is always the public key from your peer, not your local one. -**local side** +**local side - commands** .. code-block:: none - set interfaces wireguard wg01 address '10.1.0.1/24' + set interfaces wireguard wg01 address '10.1.0.1/30' set interfaces wireguard wg01 description 'VPN-to-wg02' - set interfaces wireguard wg01 peer to-wg02 allowed-ips '10.2.0.0/24' - set interfaces wireguard wg01 peer to-wg02 address '192.168.0.142' - set interfaces wireguard wg01 peer to-wg02 port '12345' + set interfaces wireguard wg01 peer to-wg02 allowed-ips '192.168.2.0/24' + set interfaces wireguard wg01 peer to-wg02 address '' + set interfaces wireguard wg01 peer to-wg02 port '51820' set interfaces wireguard wg01 peer to-wg02 pubkey 'XMrlPykaxhdAAiSjhtPlvi30NVkvLQliQuKP7AI7CyI=' - set interfaces wireguard wg01 port '12345' - set protocols static route 10.2.0.0/24 interface wg01 + set interfaces wireguard wg01 port '51820' + set protocols static route 192.168.2.0/24 interface wg01 + +**local side - annotated commands** + +.. code-block:: none + + set interfaces wireguard wg01 address '10.1.0.1/30' # Address of the wg01 tunnel interface. + set interfaces wireguard wg01 description 'VPN-to-wg02' + set interfaces wireguard wg01 peer to-wg02 allowed-ips '192.168.2.0/24' # Subnets that are allowed to travel over the tunnel + set interfaces wireguard wg01 peer to-wg02 address '' # Public IP of the peer + set interfaces wireguard wg01 peer to-wg02 port '58120' # Port of the Peer + set interfaces wireguard wg01 peer to-wg02 pubkey '' # Public Key of the Peer + set interfaces wireguard wg01 port '51820' # Port of own server + set protocols static route 192.168.2.0/24 interface wg01 # Static route to remote subnet The last step is to define an interface route for 10.2.0.0/24 to get through the WireGuard interface `wg01`. Multiple IPs or networks can be @@ -90,7 +116,7 @@ defined and routed. The last check is allowed-ips which either prevents or allows the traffic. .. note:: You can not assign the same allowed-ips statement to multiple - WireGuard peers. This a a design decission. For more information please + WireGuard peers. This a a design decision. For more information please check the `WireGuard mailing list`_. .. cfgcmd:: set interfaces wireguard private-key @@ -106,33 +132,70 @@ or allows the traffic. public key, which needs to be shared with the peer. -**remote side** +**remote side - commands** .. code-block:: none - set interfaces wireguard wg01 address '10.2.0.1/24' + set interfaces wireguard wg01 address '10.1.0.2/30' set interfaces wireguard wg01 description 'VPN-to-wg01' - set interfaces wireguard wg01 peer to-wg02 allowed-ips '10.1.0.0/24' - set interfaces wireguard wg01 peer to-wg02 address '192.168.0.124' - set interfaces wireguard wg01 peer to-wg02 port '12345' + set interfaces wireguard wg01 peer to-wg02 allowed-ips '192.168.1.0/24' + set interfaces wireguard wg01 peer to-wg02 address '' + set interfaces wireguard wg01 peer to-wg02 port '51820' set interfaces wireguard wg01 peer to-wg02 pubkey 'u41jO3OF73Gq1WARMMFG7tOfk7+r8o8AzPxJ1FZRhzk=' - set interfaces wireguard wg01 port '12345' - set protocols static route 10.1.0.0/24 interface wg01 + set interfaces wireguard wg01 port '51820' + set protocols static route 192.168.1.0/24 interface wg01 -Assure that your firewall rules allow the traffic, in which case you -have a working VPN using WireGuard. +**remote side - annotated commands** .. code-block:: none - wg01# ping 10.2.0.1 - PING 10.2.0.1 (10.2.0.1) 56(84) bytes of data. - 64 bytes from 10.2.0.1: icmp_seq=1 ttl=64 time=1.16 ms - 64 bytes from 10.2.0.1: icmp_seq=2 ttl=64 time=1.77 ms + set interfaces wireguard wg01 address '10.1.0.2/30' # Address of the wg01 tunnel interface. + set interfaces wireguard wg01 description 'VPN-to-wg01' + set interfaces wireguard wg01 peer to-wg02 allowed-ips '192.168.1.0/24' # Subnets that are allowed to travel over the tunnel + set interfaces wireguard wg01 peer to-wg02 address 'Site1 Pub IP' # Public IP address of the Peer + set interfaces wireguard wg01 peer to-wg02 port '51820' # Port of the Peer + set interfaces wireguard wg01 peer to-wg02 pubkey '' # Public key of the Peer + set interfaces wireguard wg01 port '51820' # Port of own server + set protocols static route 192.168.1.0/24 interface wg01 # Static route to remote subnet - wg02# ping 10.1.0.1 - PING 10.1.0.1 (10.1.0.1) 56(84) bytes of data. - 64 bytes from 10.1.0.1: icmp_seq=1 ttl=64 time=4.40 ms - 64 bytes from 10.1.0.1: icmp_seq=2 ttl=64 time=1.02 ms +******************* +Firewall Exceptions +******************* + +For the WireGuard traffic to pass through the WAN interface, you must create a firewall exception. + +.. code-block:: none + + set firewall name OUTSIDE_LOCAL rule 10 action accept + set firewall name OUTSIDE_LOCAL rule 10 description 'Allow established/related' + set firewall name OUTSIDE_LOCAL rule 10 state established enable + set firewall name OUTSIDE_LOCAL rule 10 state related enable + set firewall name OUTSIDE_LOCAL rule 20 action accept + set firewall name OUTSIDE_LOCAL rule 20 description WireGuard_IN + set firewall name OUTSIDE_LOCAL rule 20 destination port 51820 + set firewall name OUTSIDE_LOCAL rule 20 log enable + set firewall name OUTSIDE_LOCAL rule 20 protocol udp + set firewall name OUTSIDE_LOCAL rule 20 source + +You should also ensure that the OUTISDE_LOCAL firewall group is applied to the WAN interface and a direction (local). + +.. code-block:: none + + set interfaces ethernet eth0 firewall local name 'OUTSIDE-LOCAL' + +Assure that your firewall rules allow the traffic, in which case you have a working VPN using WireGuard. + +.. code-block:: none + + wg01# ping 192.168.1.1 + PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. + 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.16 ms + 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.77 ms + + wg02# ping 192.168.2.1 + PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data. + 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=4.40 ms + 64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=1.02 ms An additional layer of symmetric-key crypto can be used on top of the asymmetric crypto. This is optional. @@ -151,8 +214,10 @@ its content. Make sure you distribute the key in a safe manner, wg01# set interfaces wireguard wg01 peer to-wg02 preshared-key 'rvVDOoc2IYEnV+k5p7TNAmHBMEGTHbPU8Qqg8c/sUqc=' wg02# set interfaces wireguard wg01 peer to-wg01 preshared-key 'rvVDOoc2IYEnV+k5p7TNAmHBMEGTHbPU8Qqg8c/sUqc=' -Road Warrior Example --------------------- + +*********************************** +Remote Access "RoadWarrior" Example +*********************************** With WireGuard, a Road Warrior VPN config is similar to a site-to-site VPN. It just lacks the ``address`` and ``port`` statements. @@ -182,7 +247,7 @@ the peers. This allows the peers to interact with one another. } The following is the config for the iPhone peer above. It's important to -note that the ``AllowedIPs`` setting directs all IPv4 and IPv6 traffic +note that the ``AllowedIPs`` wildcard setting directs all IPv4 and IPv6 traffic through the connection. .. code-block:: none @@ -198,9 +263,9 @@ through the connection. Endpoint = 192.0.2.1:2224 PersistentKeepalive = 25 - -This MacBook peer is doing split-tunneling, where only the subnets local -to the server go over the connection. +However, split-tunneling can be achieved by specifing the remote subnets. +This ensures that only traffic destined for the remote site is sent over the tunnel. +All other traffic is unaffected. .. code-block:: none @@ -222,6 +287,25 @@ Operational Commands Status ====== +.. opcmd:: show interfaces wireguard wg0 summary + + Show info about the Wireguard service. + Also shows the latest handshake. + + .. code-block:: none + + vyos@vyos:~$ show interfaces wireguard wg0 summary + interface: wg0 + public key: + private key: (hidden) + listening port: 51820 + + peer: + endpoint: + allowed ips: 10.69.69.2/32 + latest handshake: 23 hours, 45 minutes, 26 seconds ago + transfer: 1.26 MiB received, 6.47 MiB sent + .. opcmd:: show interfaces wireguard Get a list of all wireguard interfaces @@ -252,8 +336,9 @@ Status TX: bytes packets errors dropped carrier collisions 0 0 0 0 0 0 +*************** Encryption Keys -=============== +*************** .. opcmd:: show wireguard keypair pubkey @@ -284,15 +369,16 @@ Encryption Keys vyos@vyos:~$ delete wireguard keypair default -Mobile "RoadWarrior" clients -============================ +*********************************** +Remote Access "RoadWarrior" clients +*********************************** Some users tend to connect their mobile devices using WireGuard to their VyOS router. To ease deployment one can generate a "per mobile" configuration from the VyOS CLI. .. warning:: From a security perspective it is not recommended to let a third - party create the private key for a secured connection. You should create the + party create and share the private key for a secured connection. You should create the private portion on your own and only hand out the public key. Please keep this in mind when using this convenience feature. From 5208bfc382e23200e7337d1b2f80bddc6adb8222 Mon Sep 17 00:00:00 2001 From: usman-umer Date: Tue, 20 Jul 2021 11:10:46 +0100 Subject: [PATCH 2/2] removed wg summary command --- docs/configuration/interfaces/wireguard.rst | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/docs/configuration/interfaces/wireguard.rst b/docs/configuration/interfaces/wireguard.rst index bb2418b1..2d6baeec 100644 --- a/docs/configuration/interfaces/wireguard.rst +++ b/docs/configuration/interfaces/wireguard.rst @@ -287,25 +287,6 @@ Operational Commands Status ====== -.. opcmd:: show interfaces wireguard wg0 summary - - Show info about the Wireguard service. - Also shows the latest handshake. - - .. code-block:: none - - vyos@vyos:~$ show interfaces wireguard wg0 summary - interface: wg0 - public key: - private key: (hidden) - listening port: 51820 - - peer: - endpoint: - allowed ips: 10.69.69.2/32 - latest handshake: 23 hours, 45 minutes, 26 seconds ago - transfer: 1.26 MiB received, 6.47 MiB sent - .. opcmd:: show interfaces wireguard Get a list of all wireguard interfaces