mirror of
https://github.com/vvzvlad/trickster-vpn.git
synced 2025-08-21 12:17:53 +03:00
init commit
This commit is contained in:
12
sample_wg_cfg/wg-external.conf
Normal file
12
sample_wg_cfg/wg-external.conf
Normal file
@ -0,0 +1,12 @@
|
||||
[Interface]
|
||||
Address=10.20.30.2/32
|
||||
PrivateKey=6CCRP42JiTObyf64Vo0BcqsX6vptsqOU+MKUslUun28=
|
||||
PostUp = iptables -t nat -A POSTROUTING -o ens2 -j MASQUERADE
|
||||
PostDown = iptables -t nat -D POSTROUTING -o ens2 -j MASQUERADE
|
||||
|
||||
#internal node
|
||||
[Peer]
|
||||
PublicKey=MxnOnIlKfSyZyRutnYyoWHb3Izjalgf1t8F1oPJiyyw=
|
||||
AllowedIPs=10.20.30.0/24
|
||||
Endpoint=195.2.79.13:17968
|
||||
PersistentKeepalive=25
|
18
sample_wg_cfg/wg-internal.conf
Normal file
18
sample_wg_cfg/wg-internal.conf
Normal file
@ -0,0 +1,18 @@
|
||||
[Interface]
|
||||
Address = 10.20.30.1/32
|
||||
ListenPort = 17968
|
||||
PrivateKey = kOd3FVBggwpjD3AlZKXUxNTzJT0+f3MJdUdR8n6ZBn8=
|
||||
PostUp = iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
|
||||
PostUp = ip rule add from 195.2.79.13 table main
|
||||
PostDown = iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
|
||||
PostDown = ip rule del from 195.2.79.13 table main
|
||||
|
||||
#external node
|
||||
[Peer]
|
||||
PublicKey = FulnUTovyyfgn5kmgPkcj2OjKRFGeLkaTsHtAOy6HW8=
|
||||
AllowedIPs = 10.20.30.2/32, 0.0.0.0/0
|
||||
|
||||
#mobile-client node
|
||||
[Peer]
|
||||
PublicKey = 26Vhud00ag/bdB9molvSxfBzZTlzdO+aZgrX3ZDncSg=
|
||||
AllowedIPs = 10.20.30.3/32
|
11
sample_wg_cfg/wg-mobile-client.conf
Normal file
11
sample_wg_cfg/wg-mobile-client.conf
Normal file
@ -0,0 +1,11 @@
|
||||
[Interface]
|
||||
Address=10.20.30.3/32
|
||||
PrivateKey=iPK7hYSU8TLVRD+w13nd3aGSYNLfnTx6zwdRzKcGb1o=
|
||||
DNS = 1.1.1.1, 8.8.8.8
|
||||
|
||||
#internal node
|
||||
[Peer]
|
||||
PublicKey=MxnOnIlKfSyZyRutnYyoWHb3Izjalgf1t8F1oPJiyyw=
|
||||
AllowedIPs = 0.0.0.0/0
|
||||
Endpoint=195.2.79.13:17968
|
||||
PersistentKeepalive=25
|
Reference in New Issue
Block a user