Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internet Connection is not working, after I use my own wireguard server configuration. #435

Open
I-amCoder opened this issue Mar 28, 2024 · 0 comments

Comments

@I-amCoder
Copy link

I-amCoder commented Mar 28, 2024

Feature request

I have setup my own wireguard server, and want to create vpn connection, it says connected but internet doesn't work.

Description

I'm passing my server's port and settings to wireguard protocol configuration, it shows connected icon but internet doesn't work.
I replaced configuration with my own configuration:

File: IVPNClient/Utilities/Extensions/NETunnelProviderProtocol+Ext.swift

Function: makeWireguardProtocol()

Replacing:

   let peer = Peer(
        publicKey: publicKey,
        presharedKey: KeyChain.wgPresharedKey,
        allowedIPs: Config.wgPeerAllowedIPs,
        endpoint: endpoint,
        persistentKeepalive: Config.wgPeerPersistentKeepalive
    )
    let interface = Interface(
        addresses: addresses,
        listenPort: Config.wgInterfaceListenPort,
        mtu: UserDefaults.standard.wgMtu,
        privateKey: KeyChain.wgPrivateKey,
        dns: host.localIPAddress()

        )

My settings:

   let peer = Peer(
        publicKey: "rkBijC5WLAOVjJUJioG1HzI3F8fgtkgs__my_peer_public_key",
        presharedKey: nil,
        allowedIPs: "0.0.0.0/0, ::/0",
        endpoint: "46.101.132.188:3376",
        persistentKeepalive: 25
    )
    let interface = Interface(
        addresses: "10.9.0.3/24",
        listenPort: 54063,
        mtu:  0,
        privateKey: "yHt/WuyjFx1W6J+GVllEfp8THK8npcUIk__my_server_private_key",
        dns: "1.1.1.1, 1.0.0.1"

         )

These settings are working in official wireguard app.

A clear and concise description of the problem or missing capability.
I want to know how you're setting up your servers for wireguard.

Describe the solution you'd like

A clear guide to how would I setup my wireguard server according to your server configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant