markus
1
wg0.config
[Interface]
Address = 10.0.0.1/24
ListenPort = 51820
PrivateKey = privatkey
DNS = dns.adguard.com
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o enp6s0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o enp6s0 -j MASQUERADE
[Peer]
PublicKey = Publickey Mobilrol
AllowedIPs = 10.0.0.2/32
Endpoint = vpn.ynm.hu:51820
Android
[Interface]
Privatkey=Mobil Generalt
Cimek 10.0.0.2/24
DNS 8.8.8.8, 8.8.4.4
[Peer]
PublicKey= Server generalt
Persist 25
Vegpont vpn.ynm.hu:51820
ip 0.0.0.0/0