hossinasaadi / sshTunnel-ios

a swiftUI app with support ssh tunnel (proxy) with udpgw (badvpn) for mac and ios
20 stars 7 forks source link

Disable UDPGW #9

Closed pouriaafshari closed 3 days ago

pouriaafshari commented 3 days ago

The issue with internet connection issue is related to UDPGW, in the demo app on the app store everything is working fine with UDPGW disabled in the application. How can I disable UDPGW in the source code ?

I've tried to remove the UDPGW command from this section in PacketTunnelProvider but it didn't work and still I would have internet in apps like Telegram and Instagram but not in safari.

let argv = ["tun2socks", "--netif-ipaddr", "240.0.0.4", "--netif-netmask", "255.255.255.0", "--loglevel", "debug", "--socks-server-addr", localSocks, ]

pouriaafshari commented 3 days ago

I fixed it, The issue was you shouldn't remove the "--udpgw-remote-server-addr", udpGwRemote, from "argv", instead you should set it's value to "127.0.0.1:7300" for it to work, at least that was the case for me.