Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TA
Posts
6
Comments
225
Joined
2 yr. ago

  • Solved:

    IP Table: Server : 192.168.1.120 / wg0 : 10.0.0.1 Client : 192.168.1.230 / wg0 :10.0.0.2


    Server:

     
        
    [Interface]
    Address = 10.0.0.1/24
    SaveConfig = true
    PostUp = iptables -t nat -I POSTROUTING -o wlp1s0 -j MASQUERADE
    PostUp = ip rule add table 200 from 192.168.1.230
    PostUp = ip route add table 200 default via 192.168.1.1
    PreDown = iptables -t nat -D POSTROUTING -o wlp1s0 -j MASQUERADE
    PreDown = ip rule delete table 200 from 192.168.1.230
    PreDown = ip route delete table 200 default via 192.168.1.1
    ListenPort = 51820
    PrivateKey = XXX
    
    [Peer]
    PublicKey = yyy
    AllowedIPs = 0.0.0.0/0
    
      

    Client:

     
        
    [Interface]
    Address = 10.0.0.2/24
    PrivateKey = YYY
    
    [Peer]
    AllowedIPs = 10.0.0.0/24
    Endpoint = 192.168.1.120:51820
    PublicKey = xxx