[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-701614-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-701614-en":130,"doc-similar-701614":160},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","openwrt-wireguard-server-setup-guide-using-luci-version-21","OpenWRT WireGuard Server Setup guide using LuCi - Version 21","","Guide for setting up a WireGuard server on an OpenWRT router using LuCI, aimed at accepting incoming VPN connections from phones, laptops, or other routers. Explains WireGuard’s key concepts, including public/private keys and the Allowed IP mechanism for routing and security, and outlines prerequisites such as correct router time and subnet planning. Covers requirements for public reachability (public IPv4/IPv6, port forwarding, DDNS for dynamic addresses) and provides practical external testing guidance.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/openwrt-wireguard-server-setup-guide-using-luci-version-21/701614/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/openwrt-wireguard-server-setup-guide-using-luci-version-21/701614.png","ImageObject",300,407,{"name":42,"@type":43},"River Wang","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-23","2026-11-13",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What makes Allowed IP important in WireGuard server configurations?","Question",{"text":63,"@type":64},"Allowed IP determines which peer public key should encrypt packets and acts as a security filter: packets from source IPs not listed in Allowed IP are discarded.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Which subnet planning rules apply for a WireGuard server on OpenWRT?",{"text":68,"@type":64},"All involved subnets must be different and non-overlapping: the router LAN subnet, the WireGuard subnet, and the clients subnet must not overlap.",{"name":70,"@type":61,"acceptedAnswer":71},"How can the server be reached from outside if the router lacks a public IPv4 address?",{"text":72,"@type":64},"Confirm port-forwarding capability on any upstream router; if behind CGNAT without public IPv4/IPv6, use a commercial third party (e.g., a VPN provider supporting port forwarding or a rented VPS) and/or tunneling services.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},701614,1794533691,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":55,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":117,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":80,"read_time":102,"preview_page_count":33,"preview_urls":143},1099514067438,"https://ap-avatar.wpscdn.com/avatar/100002539ee87300030?x-image-process=image/resize,m_fixed,w_180,h_180&k=1780474512215547542","OpenWRT WireGuard Server Setup guide using LuCi  \nVersion 21.  \nLatest iteration of this guide can be found at: WireGuard Server Setup Guide  \nFor setting up a wireGuard client , see: to setup  WireGuard Client Setup Guide.  \nIntroduction  \nWireGuard is an open-source VPN solution written in C by Jason Donenfeld and others, aiming to fix many of the problems that have plagued other modern server-to-server VPN offerings like IPSec/IKEv2, OpenVPN, or L2TP.  \nIt many ways it can be seen as a replacement for OpenVPN.  \nIt has three advantages over OpenVPN, it is much faster especially on lower-spec hardware such as Soho routers (my own R7800 goes from 85 Mb/s on OpenVPN to 300 Mb/s with WireGuard), it is easy to setup if you know how, the guides will help you with that and it has a very small code base (about 4000 lines) so that it can easily be reviewed and checked for vulnerabilities.  \nSome key points about WireGuard:  \n• Layer 3 only no bridging  \n• UDP only punches through firewall  \n• Like SSH authenticated keys  \n• Executes in Linux Kernel  \n• Static routing  \nWireGuard basically is a peer to peer connection, it can be both \"Client\" and \"Server\" (if you have this setup at the same time between two routers we are talking about a site-to-site setup) .  \nAlthough WireGuard is a peer to peer setup, the configuration is different when using it as a Server, listening for incoming connections e.g. from your phone/laptop from outside, or as a a Client making an outbound connection toe.g. a WireGuard server of your VPN provider.  \nSo for practical purposes we still distinguish between a Server and a Client setup  \nThis is guide is about setting up a WireGuard Server on a router in basic gateway mode (WAN connected to the internet or to an other router and on its own subnet) where it listens for incoming connections of your phone, laptop or other router.  \nThis guide is based upon OpenWRT 24.10 but also should work on 23.05 and Main builds and uses LuCi to set things up but the resulting config files are also listed. The screenshots are made with OpenWRT2020 theme but that is not much different from the default theme.  \nGeneral Remarks  \nThe most important parts of WireGuard are the public/private keys and the Allowed IP.  \nThe public key is distributed to the peers.  \nThe Allowed IP serves two roles, the first is that the allowed IP is used to know which of the peers public keys (if there is more than one peer) should be used to encrypt the packets.  \nTherefore the Allowed IP's must be unique for each peer!  \nThe second one is security, if WireGuard detects a source IP which is not in the Allowed IP's, the packets are discarded.  \nThe keys are 32 bytes long and can be easily represented in Base64 encoding in 44 characters the last character is always an =.  \nPrerequisite  \nA fully functioning router with the correct time  \nOpenWRT Server setup guide by egc 6. Oct. 2026 1  \nCheck all involved subnets  \nAs WireGuard is a routed solution all three involved subnets have to be different and non overlapping. So the routers subnet, the WireGuard subnet and the Clients subnet all have to be different.  \nAs you often cannot choose the subnet of the WireGuard client, it is best to avoid using frequently used subnets for  \nyour router e.g. [192.168.1.1/24](192.168.1.1/24) or [192.168.0.1/24](192.168.0.1/24) but if you cannot easily change the routers subnet then leave it  \nand hope for the best.  \nFor the WireGuard subnet [172.22.22.1/24](172.22.22.1/24) is chosen in this example which is not often used.  \nCheck for Public IP address  \nTo be able to connect from outside, your router must have a public IP address (either IPv4 and/or IPv6) .  \nCheck if your router has a proper Public IPv4 address with (from command line): ifstatus wan | grep address  \nA public IP address does not start with 192.168.X.X, 10.X.X.X, 172.16-31.X.X or a CGNAT address (IP addresses from [100.64.0.0](100.64.0.0) to [100.127.255.255](100.127.255.255) )  \nAnother way to ","cbCaik2IOY8TGJjs","https://ap.wps.com/l/cbCaik2IOY8TGJjs","pdf",1362448,"English","# Introduction\n## Key concepts about WireGuard\n## General remarks\n# Prerequisite\n## Check all involved subnets\n## Check for Public IP address\n## Dynamic IP address\n## Test from outside\n# References","[{\"question\":\"What makes Allowed IP important in WireGuard server configurations?\",\"answer\":\"Allowed IP determines which peer public key should encrypt packets and acts as a security filter: packets from source IPs not listed in Allowed IP are discarded.\"},{\"question\":\"Which subnet planning rules apply for a WireGuard server on OpenWRT?\",\"answer\":\"All involved subnets must be different and non-overlapping: the router LAN subnet, the WireGuard subnet, and the clients subnet must not overlap.\"},{\"question\":\"How can the server be reached from outside if the router lacks a public IPv4 address?\",\"answer\":\"Confirm port-forwarding capability on any upstream router; if behind CGNAT without public IPv4/IPv6, use a commercial third party (e.g., a VPN provider supporting port forwarding or a rented VPS) and/or tunneling services.\"}]","OpenWRT WireGuard Server Setup guide using LuCi - Version 21 | PDF",[144,148,152,156],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/e1a93795c0625cfcfac12aacaf0e0c51.webp",983,1390,{"page_no":26,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/2d7b79016922c6d4edfe8c82cf54514d.webp",982,1388,{"page_no":30,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/4871225ab9a1787ad41465ab0aead59c.webp",981,1387,{"page_no":33,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/e0dc013b3a50e1c8120f56796820f89a.webp",980,1385,{"list":161,"token":11},[162,168,174,180,187,193,199,206,212,217],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":123,"category_name":29,"create_tm":167},510710,"D785 / D785N - Desk Phone - Key Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935367799/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=z%2FoT5wEagsm1QXvfajS2M4GfNNw%3D","d785-d785n-desk-phone-key-features",1791244185,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":33,"category_name":29,"create_tm":173},701609,"BE9700 Tri-Band Wi-Fi 7 Router Archer BE9700/Archer BE600 - User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012421052/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=QtUdrvTPfFMPZW%2FhACgwNdgnceE%3D","be9700-tri-band-wi-fi-7-router-archer-be9700archer-be600-user-guide",1794533682,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":33,"category_name":29,"create_tm":179},685861,"Chapter 4: Access Control Lists - CCNA Routing and Switching Connecting Networks v6.0 - Standard ACL Operation and Configuration Review","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000244365/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=SJdOmroW46tJvusu4AipvEcdkBU%3D","chapter-4-access-control-lists-ccna-routing-and-switching-connecting-networks-v60-standard-acl-operation-and-configuration-review",1794020355,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":29,"create_tm":186},19831,"Computeractive Issue 704 (26 February–11 March 2025)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229711457677/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=2ctGZAbc022YSxon1us7d7EiLNg%3D","computeractive-issue-704-26-february11-march-2025",63,1777325062,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":105,"category_name":29,"create_tm":192},708483,"BBA Tri-band Routers - User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230015309080/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=%2BiUycyLN1oHae6GtFtK2Vx45n8o%3D","bba-tri-band-routers-user-guide",1794717836,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":33,"category_name":29,"create_tm":198},708487,"1200Mbps 4G LTE Router - User Guide - DS-3WR4G12C","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230015842134/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=GTjmuMTGXpCpjSjSPffGer%2Bn2jo%3D","1200mbps-4g-lte-router-user-guide-ds-3wr4g12c",1794717847,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":29,"create_tm":205},310749,"Computer Networks - Chapter 1 - Introduction to Computer Networks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907500970/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=OLHpeSWh9vpo7TqKYImG5%2B21l4I%3D","computer-networks-chapter-1-introduction-to-computer-networks",28,1789888132,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":110,"category_name":29,"create_tm":211},686607,"Nighthawk AC1900 WiFi Cable Modem Router Model C6900 - User Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000548121/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=N5PZ4k6ACmbAeoAPlpFxN6VrHLQ%3D","nighthawk-ac1900-wifi-cable-modem-router-model-c6900-user-manual",1794058351,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":105,"category_name":29,"create_tm":179},685862,"Access Control Lists - ACL - Introduction and Packet Filtering","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000244353/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Yp5jCh3rhfIpiEoWUCgqYGm%2FrME%3D","access-control-lists-acl-introduction-and-packet-filtering",{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":29,"create_tm":223},310843,"CompTIA Network+ (N10-008) Video Training Series - Course Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907307140/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=3fBEf7f7wST9whOj7BNxBvFMrz0%3D","comptia-network-n10-008-video-training-series-course-outline",25,1789890782]