Skip to content

Commit

Permalink
Update wireguard_export.py
Browse files Browse the repository at this point in the history
  • Loading branch information
if13 authored Jan 12, 2022
1 parent dee20ae commit aae1709
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wireguard_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ def generate_wireguard_keys():
(privkey, pubkey, sharkey) = generate_wireguard_keys()
config = configparser.ConfigParser()
config['Interface'] = {'PrivateKey': privkey,
'ListenPort': '51820',
'ListenPort': '', #insert
'Address': f'172.26.1.{cur_ip}',
'DNS': '192.9.200.124, 192.9.200.132',
'#pubkey': f'{pubkey}'}

config['Peer'] = {
'PublicKey': '',
'PublicKey': '', #insert
'PresharedKey': f'{sharkey}',
'AllowedIPs': '172.26.1.0/24, 192.9.200.0/24, 192.168.11.0/24',
'Endpoint': 'xx.xx.xx.xx:xxxxx'}
'Endpoint': 'xx.xx.xx.xx:xxxxx' } #insert

name_config = input('введите дескрипшн конфига: ')

Expand Down

0 comments on commit aae1709

Please sign in to comment.