AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Download WireGuard 0.5.312/7/2023 ![]() You can now use add_peer_attr to configure the peer as you wishĭelete a peer given a public key: wc.del_peer('PeerPublicKey')īuild a binary and source distribution for pypi python3 setup. If no matching peer or attribute is found, no change will be made Create or remove a peerĬreate a peer given a public key: wc.create_peer('PeerPublicKey') Remove an attribute from a peer wc.del_interface_attr('PeerPublicKey', 'AttributeKey') ![]() Otherwise, an Exception will be thrown if you try to overwrite an existing attribute If you are sure you want to overwrite an existing attribute, use set_peer_attr with the same parameters. If no matching attribute is found, no change will be made Edit a peerĪdd an attribute to a peer wc.add_peer_attr('PeerPublicKey', 'AttributeKey', 'AttributeValue')Īdd_peer_attr will not overwrite an existing attribute. This utility simply downloads, verifies, and executes one of the below MSIs: wireguard-installer.exe WireGuard MSIs. Remove an attribute from the interface wc.del_interface_attr('AttributeKey') If you are sure you want to overwrite an existing attribute, use set_interface_attr with the same parameters. Write a configuration file to disk: wc.write_file()Īdd an attribute to the interface wc.add_interface_attr('AttributeKey', 'AttributeValue')Īdd_interface_attr will not overwrite an existing attribute. ![]() ![]() Wc = wg_conf.WireguardConfig('/etc/wireguard/wg0.conf') Load a configuration file: import wg_conf Install using pip: python3 -m pip install wg-conf Python library to read, edit, and save Wireguard configuration files Installation ![]()
0 Comments
Read More
Leave a Reply. |