0

I have a problem with Wireguard. I would like to set it up in order to access my private network.

My local network is 192.168.1.0/24

Wireguard server IP 192.168.1.102

My server(debian) configuration:

     [Interface]

    Address = 192.168.1.104/24

    SaveConfig = true

    PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens33 -j MASQUERADE

    PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens33 -j MASQUERADE

    ListenPort = 51820

    FwMark = 0xca6c

    PrivateKey = Private_KEY_SERVER


    [Peer]

    PublicKey = Public_KEY_SERVER

    AllowedIPs = 0.0.0.0/0


    Client(windows) configuration :

    [Interface]

    PrivateKey = Private_Key_Client

    Address = 192.168.1.105/24

    DNS = 8.8.8.8.8

    [Peer]

    PublicKey = Public_Key_Server

    AllowedIPs = 0.0.0.0/0

    Endpoint = My_Public_IP:51820

When I activate the interface wg0 with the command wg-quick up wg0 it is impossible for me to ping the outside. PING 8.8.8.8(8.8.8.8) 56(84) bytes of data. from 192.168.1.104 icmp_seq=1 Destinaton Host Unreachable ping: sendmsg: Required destination address

And my log in Wireguard client windows is Handshake did not complete after 5seconds, retrying (try 2)

I don't know much about VPN. That's why I'm calling you...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.