Jump to content
Not connected, Your IP: 3.147.27.129
petra2022

ANSWERED ssh to LAN termux on a android phone with VPN active

Recommended Posts

Posted ... (edited)

I have a python script running on a android phone which needs to be behind a VPN connection. I can connect via ssh to the phone but over the public VPN address which is very slow. I would like to connect directly over the local network. The problem is that the current Eddie app don't support wlan connections (System->Exclude local networks from the VPN, exclude local networks except mobile networks... which I suspect to be all wlan networks). Is there a way to allow local IP/Port addresses somewhere else? Perhaps with Custom Directives?

Edit1: Eddi version 2.5 (VC27)
Edit2: mobile networks are not WLAN connections (misunderstanding on my part), theoretically WLAN should work on a mobile phone if connecting to local ip address. It is not working in my case with AirVPN on, only if AirVPN is turned off on the mobile.

Edited ... by petra2022

Share this post


Link to post
40 minutes ago, petra2022 said:

The problem is that the current Eddie app don't support wlan connections


Huh? It does. It's the mobile networks that are not treated as local networks, because they aren't.
 
45 minutes ago, petra2022 said:

I would like to connect directly over the local network


This should be possible by default. You are using a local IP address to connect, right?

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post
Posted ... (edited)
38 minutes ago, OpenSourcerer said:

Huh? It does. It's the mobile networks that are not treated as local networks, because they aren't.
 
This should be possible by default. You are using a local IP address to connect, right?
Yes, the local IP address starts with 192.168 which I viewed with ifconfig on the mobile device. The ssh connection works fine when i disconnect mobile VPN. As soon the VPN connection is active the ssh 192.168... command on my PC is blocked and after some time I get a timeout error. I tryied also to disable the VPN-Lock option on the phone, but still no connection with VPN active. Edited ... by petra2022

Share this post


Link to post

Eddie Log created on 25 Sep 2022 18:42:21 UTC

Eddie for Android 2.5 Version Code 27


--- App and device information ---

Eddie Version Code: 27
Eddie Version Name: 2.5
Eddie Library 1.4 - 30 September 2021
Eddie Library API level: 7

Architecture: arm64-v8a (Arm 64 bit)
Platform: Android

Manufacturer: DOOGEE
Model: S59Pro
Device: S59Pro
Board: k62v1_64_bsp
Brand: DOOGEE
Product: S59Pro_EEA
Hardware: mt6762
Supported ABIs: arm64-v8a armeabi-v7a armeabi
Host: release
ID: QP1A.190711.020
Display: DOOGEE-S59Pro-Android10-20201202
Android API Level: 29
Android Codename: REL
Android Version Release: 10
Android Version Incremental: 1598247913
Fingerprint: DOOGEE/S59Pro_EEA/S59Pro:10/QP1A.190711.020/1598247913:user/release-keys
Type: user
Tags: release-keys
User: release
Language: en
Rooted device: false
Network: WIFI
Screen Width: 720
Screen Height: 1430
Screen Density: 2
Screen Density DPI: 320
Screen XDPI: 295
Screen YDPI: 295
Total RAM: 3823 Mb
Free RAM: 2201 Mb
Threshold Memory: 324 Mb
Low Memory: false
App Total Memory: 7 Mb
App Max Memory: 256 Mb
App Free Memory: 3 Mb
Bootloader: unknown


--- Settings dump ---

airvpn_default_protocol: UDP
airvpn_default_port: 443
airvpn_default_ip_version: IPv4
airvpn_default_tls_mode: tls-crypt
airvpn_quick_connect_mode: auto
airvpn_cipher: SERVER
airvpn_forbid_quick_connection_to_user_country: true
airvpn_custom_bootstrap_servers: 
airvpn_server_whitelist: 
airvpn_server_blacklist: 
airvpn_country_whitelist: 
airvpn_country_blacklist: 
airvpn_country_blacklist: 
airvpn_current_local_country: Auto
enable_master_password: false
system_vpn_lock: false
system_vpn_boot_priority: AirVPN-Best-Server,AirVPN-Default-Server,AirVPN-Default-Country,Default-OpenVPN-Profile,Last-Connected-Profile
system_vpn_reconnect: true
system_vpn_reconnect_retries: -1
system_dns_override_enable: false
system_dns_custom: 
system_proxy_enable: false
system_persistent_notification: true
system_notification_sound: true
system_show_message_dialogs: true
system_forced_mtu: 
system_application_filter_type: 0
system_application_filter: 
system_application_language: 
system_first_run: true
system_start_vpn_at_boot: true
system_last_profile_is_connected: true
is_always_on_vpn: off
vpn_lockdown: off
system_exclude_local_networks: true
system_pause_vpn_when_screen_is_off: false
system_airvpn_remember_me: true
ovpn3_tls_version_min: tls_1_2
ovpn3_protocol: 
ovpn3_ipv6: 
ovpn3_timeout: 60
ovpn3_tun_persist: true
ovpn3_compression_mode: yes
ovpn3_synchronous_dns_lookup: false
ovpn3_autologin_sessions: true
ovpn3_disable_client_cert: false
ovpn3_ssl_debug_level: 0
ovpn3_default_key_direction: -1
ovpn3_tls_cert_profile: 
ovpn3_proxy_host: 
ovpn3_proxy_port: 
ovpn3_proxy_allow_cleartext_auth: false
ovpn3_custom_directives: 


--- Log dump ---

25 Sep 2022 18:42:09 UTC [Info] Trying to connect AirVPN server Peony at Sao Paulo, Brazil - Protocol UDP, Port 443
25 Sep 2022 18:42:09 UTC [Info] VPN Lock is disabled
25 Sep 2022 18:42:09 UTC [Info] Local networks are exempted from the VPN
25 Sep 2022 18:42:09 UTC [Info] Connected to WIFI
25 Sep 2022 18:42:09 UTC [Debug] VPNService.networkStatusChanged() action: 'SYSTEM_RESUME'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Disposing current OpenVPN client
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Releasing VPN Client
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Successfully created a new OpenVPN client
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'tls_version_min' set to 'tls_1_2'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'protocol' set to ''
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'ipv6' set to ''
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'timeout' set to '60'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'tun_persist' set to 'true'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'compression_mode' set to 'yes'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'synchronous_dns_lookup' set to 'false'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'autologin_sessions' set to 'true'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'disable_client_cert' set to 'false'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'ssl_debug_level' set to '0'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'default_key_direction' set to '-1'
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN client: option 'tls_cert_profile' set to ''
25 Sep 2022 18:42:09 UTC [Info] Starting VPN thread
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Starting OpenVPN Client
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Loading profile to VPN Client
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.protoOverride:
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.connTimeout: 60
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.compressionMode: yes
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.allowUnusedAddrFamilies:
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.tlsVersionMinOverride: tls_1_2
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.tlsCertProfileOverride:
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.disableClientCert: 0
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.proxyHost:
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.proxyPort:
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.proxyAllowCleartextAuth: 0
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.defaultKeyDirection: -1
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.sslDebugLevel: 0
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.autologinSessions: 1
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.tunPersist: 1
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: config.synchronousDnsLookup: 0
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Profile successfully loaded. Connecting to server.
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: OpenVPN core 3.7.1 AirVPN android arm64 64-bit
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: connect_attach()
25 Sep 2022 18:42:09 UTC [Debug] OpenVPNTunnel.onConnectAttach()
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Frame=512/2048/512 mssfix-ctrl=1250
25 Sep 2022 18:42:09 UTC [Debug] OpenVPN Event: type: 4, name: RESOLVE, info: 
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: connect_pre_run()
25 Sep 2022 18:42:09 UTC [Debug] OpenVPNTunnel.onConnectPreRun()
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: connect_run()
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Contacting 45.162.228.173:443 via UDP
25 Sep 2022 18:42:09 UTC [Debug] OpenVPN Event: type: 5, name: WAIT, info: 
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: socket_protect(socket = 78)
25 Sep 2022 18:42:09 UTC [Debug] OpenVPNTunnel.onSocketProtect(socket: 78)
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Connecting to [45.162.228.173]:443 (45.162.228.173) via UDPv4
25 Sep 2022 18:42:09 UTC [Debug] OpenVPN Event: type: 7, name: CONNECTING, info: 
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Tunnel Options:V4,dev-type tun,link-mtu 1522,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-GCM,auth [null-digest],keysize 256,key-method 2,tls-client
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: Peer Info:
IV_VER=3.7.1 AirVPN
IV_PLAT=android
IV_NCP=2
IV_TCPNL=1
IV_PROTO=30
IV_CIPHERS=AES-256-GCM
IV_LZO=1
IV_LZO_SWAP=1
IV_LZ4=1
IV_LZ4v2=1
IV_COMP_STUB=1
IV_COMP_STUBv2=1
IV_AUTO_SESS=1
IV_GUI_VER=Eddie Library 1.4
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: VERIFY OK: depth=1, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=airvpn.org CA/emailAddress=info@airvpn.org, signature: RSA-SHA512
25 Sep 2022 18:42:09 UTC [Info] Eddie Library: VERIFY OK: depth=0, /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=Peony/emailAddress=info@airvpn.org, signature: RSA-SHA512
25 Sep 2022 18:42:10 UTC [Info] Eddie Library: SSL Handshake: peer certificate: CN=Peony, 4096 bit RSA, cipher: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3 Kx=any      Au=any  Enc=CHACHA20/POLY1305(256) Mac=AEAD
25 Sep 2022 18:42:10 UTC [Info] Eddie Library: Session is ACTIVE
25 Sep 2022 18:42:10 UTC [Debug] OpenVPN Event: type: 8, name: GET_CONFIG, info: 
25 Sep 2022 18:42:10 UTC [Info] Eddie Library: Sending PUSH_REQUEST to server...
25 Sep 2022 18:42:11 UTC [Info] Eddie Library: OPTIONS:
0 [route] [192.168.1.0] [255.255.255.0] [net_gateway]
1 [comp-lzo] [no]
2 [redirect-gateway] [ipv6] [def1] [bypass-dhcp]
3 [dhcp-option] [DNS] [10.22.170.1]
4 [dhcp-option] [DNS6] [fde6:7a:7d20:12aa::1]
5 [tun-ipv6]
6 [route-gateway] [10.22.170.1]
7 [topology] [subnet]
8 [ping] [10]
9 [ping-restart] [60]
10 [ifconfig-ipv6] [fde6:7a:7d20:12aa::1099/64] [fde6:7a:7d20:12aa::1]
11 [ifconfig] [10.22.170.155] [255.255.255.0]
12 [peer-id] [0]
13 [cipher] [AES-256-GCM]
25 Sep 2022 18:42:11 UTC [Info] Eddie Library: PROTOCOL OPTIONS:
  cipher: AES-256-GCM
      digest: NONE
          ncp enabled: yes
              key-derivation: OpenVPN PRF
                  compress: LZO_STUB
                      peer ID: 0
                          control channel: tls-crypt enabled
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_new()
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderNew()
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPN Event: type: 9, name: ASSIGN_IP, info: 
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_address(address = 10.22.170.155, prefix_length = 24, gateway = 10.22.170.1, ipv6 = 0, net30 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddAddress(address: 10.22.170.155, prefix_length: 24, gateway: 10.22.170.1, ipv6: false, net30: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_address(address = fde6:7a:7d20:12aa::1099, prefix_length = 64, gateway = fde6:7a:7d20:12aa::1, ipv6 = 1, net30 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddAddress(address: fde6:7a:7d20:12aa::1099, prefix_length: 64, gateway: fde6:7a:7d20:12aa::1, ipv6: true, net30: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 0.0.0.0, prefix_length = 1, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 0.0.0.0, prefix_length: 1, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 128.0.0.0, prefix_length = 2, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 128.0.0.0, prefix_length: 2, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.0.0.0, prefix_length = 9, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.0.0.0, prefix_length: 9, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.128.0.0, prefix_length = 11, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.128.0.0, prefix_length: 11, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.160.0.0, prefix_length = 13, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.160.0.0, prefix_length: 13, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.168.0.0, prefix_length = 24, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.168.0.0, prefix_length: 24, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.168.2.0, prefix_length = 23, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.168.2.0, prefix_length: 23, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.168.4.0, prefix_length = 22, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.168.4.0, prefix_length: 22, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.168.8.0, prefix_length = 21, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.168.8.0, prefix_length: 21, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.168.16.0, prefix_length = 20, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.168.16.0, prefix_length: 20, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.168.32.0, prefix_length = 19, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.168.32.0, prefix_length: 19, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.168.64.0, prefix_length = 18, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.168.64.0, prefix_length: 18, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.168.128.0, prefix_length = 17, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.168.128.0, prefix_length: 17, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.169.0.0, prefix_length = 16, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.169.0.0, prefix_length: 16, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.170.0.0, prefix_length = 15, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.170.0.0, prefix_length: 15, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.172.0.0, prefix_length = 14, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.172.0.0, prefix_length: 14, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.176.0.0, prefix_length = 12, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.176.0.0, prefix_length: 12, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 192.192.0.0, prefix_length = 10, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 192.192.0.0, prefix_length: 10, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 193.0.0.0, prefix_length = 8, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 193.0.0.0, prefix_length: 8, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 194.0.0.0, prefix_length = 7, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 194.0.0.0, prefix_length: 7, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 196.0.0.0, prefix_length = 6, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 196.0.0.0, prefix_length: 6, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 200.0.0.0, prefix_length = 5, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 200.0.0.0, prefix_length: 5, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 208.0.0.0, prefix_length = 4, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 208.0.0.0, prefix_length: 4, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = 224.0.0.0, prefix_length = 3, metric = -1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: 224.0.0.0, prefix_length: 3, metric: -1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_route(address = ::, prefix_length = 0, metric = -1, ipv6 = 1)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddRoute(address: ::, prefix_length: 0, metric: -1, ipv6: true)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_dns_server(address = 10.22.170.1, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddDNSServer(address: 10.22.170.1, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Debug] VPNContext.doAddDNS(): Adding DNS server '10.22.170.1'
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_add_dns_server(address = fde6:7a:7d20:12aa::1, ipv6 = 1)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderAddDNSServer(address: fde6:7a:7d20:12aa::1, ipv6: true)
                            25 Sep 2022 18:42:11 UTC [Debug] VPNContext.doAddDNS(): Adding DNS server 'fde6:7a:7d20:12aa::1'
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_set_allow_family(af = 2, allow = 1)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderSetAllowFamily(af: AF_INET4, allow: true)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_set_allow_family(af = 10, allow = 1)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderSetAllowFamily(af: AF_INET6, allow: true)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_set_remote_address(address = 45.162.228.173, ipv6 = 0)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderSetRemoteAddress(address: 45.162.228.173, ipv6: false)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_set_layer(layer = 3)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderSetLayer(layer: 3)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_set_session_name(name = 45.162.228.173)
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderSetSessionName(name: 45.162.228.173)
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: tun_builder_establish()
                            25 Sep 2022 18:42:11 UTC [Debug] OpenVPNTunnel.onTunBuilderEstablish()
                            25 Sep 2022 18:42:11 UTC [Info] Eddie Library: TunPersist: saving tun context:
                            Session Name: 45.162.228.173
                            Layer: OSI_LAYER_3
                            Remote Address: 45.162.228.173
                            Tunnel Addresses:
                              10.22.170.155/24 -> 10.22.170.1
                                  fde6:7a:7d20:12aa::1099/64 -> fde6:7a:7d20:12aa::1 [IPv6]
                                    Reroute Gateway: IPv4=1 IPv6=1 flags=[ ENABLE REROUTE_GW DEF1 BYPASS_DHCP IPv4 IPv6 ]
                                    Block IPv4: no
                                    Block IPv6: no
                                    Add Routes:
                                    Exclude Routes:
                                      192.168.1.0/24
                                        DNS Servers:
                                          10.22.170.1
                                              fde6:7a:7d20:12aa::1 [IPv6]
                                                Search Domains:
                                                25 Sep 2022 18:42:11 UTC [Info] Eddie Library: Connected via tun
                                                25 Sep 2022 18:42:11 UTC [Info] Eddie Library: LZO init swap=0 asym=1
                                                25 Sep 2022 18:42:11 UTC [Info] Eddie Library: Comp-stub init swap=0
                                                25 Sep 2022 18:42:11 UTC [Info] CONNECTED to VPN (AirVPN server Peony - Sao Paulo, Brazil) 45.162.228.173
                                                Defined: 1
                                                User: 
                                                Server Host: 45.162.228.173
                                                Server Port: 443
                                                Server Protocol: UDPv4
                                                Server IP: 45.162.228.173
                                                VPN IPv4: 10.22.170.155
                                                VPN IPv6: fde6:7a:7d20:12aa::1099
                                                Gateway IPv4: 10.22.170.1
                                                Gateway IPv6: fde6:7a:7d20:12aa::1
                                                Tunnel Name: tun
 

eddi2.log

Share this post


Link to post
I wrote to the Support Team, after analyzing my situation they suggested me to use Eddi 3.0 for Android instead of Eddi 2.5. Without any changes to termux I was able to connect over the LAN network to the phone. For others with the same kind of problem I am copy & pasting the conversation to here:
------------------------------------------------------------------------------------------------------
Quote

Hello and thank you for your choice!

 

OpenVPN does not restrict communications within the local network, but the ssh daemon might bind to the virtual tun interface and therefore it is no more reachable on the physical interface. The fact that it can be reached over the VPN server exit-IP address (with port forwarding, we assume) is telling. Furthermore, if "Always on VPN" Android setting is enabled, no traffic should be allowed outside the VPN tunnel while the tunnel is up. On the other hand, if you disable that option and also "Block traffic if VPN is not active", then you might have traffic leaks in case of unexpected disconnections.

 

Do you have a termux configuration file where you can check bind options?

 

Kind regards

AirVPN Support Team


------------------------------------------------------------------------------------------------------------------
Hello  Support Team,


Thanks for the suggestion. But it still not working. I have looked into the sshd_config file, there where no binding options specified. When I start the sshd with debug option it prints out the bindings

phone$ sshd -d
...
debug1: Bind to port 8022 on ::.                                                
Server listening on :: port 8022.
debug1: Bind to port 8022 on 0.0.0.0.
Server listening on 0.0.0.0 port 8022. 


looks very general to me. Connection with AirVPN off, it connects just fine
PC$ ssh myuser@192.168.1.8 -p 8022
but the same command is not working with AirVPN on. In the sshd_config file I also tried insert ListenAddress 192.168.1.8. What is strange for me thou, when AirVPN is on and sshd is not running I get
ssh: connect to host 192.168.1.8 port 8022: Connection refused
error and with sshd is running
ssh: connect to host 192.168.1.8 port 8022: Connection timed out
Somehow AirVPN allows to access the IP and port but sshd is not able to establish a complete connection and hangs silent until a time out. Does sshd use a additional communication channel, which AirVPN is still blocking? I feel I am so close to the solution. Any further suggestions?
---------------------------------------------------------------------------------
Quote

Hello!

 

0.0.0.0 means that the daemon is listening to all the interfaces, so no problems here.

 

When sshd is not running, connection refused is expected: the kernel just doesn't know where to send the packet to (the port doesn't exist). Connection timeout, on the other hand, makes us think that the packet is not refused by the kernel, but dropped. This is a problem which might be caused by OpenVPN, but not on all devices strangely... let's make a cross-check.

 

If possible, install Eddie 3.0 beta 2 from here:

https://airvpn.org/forums/topic/51587-eddie-android-edition-30-preview-available/

 

This version includes a special feature, dedicated to WireGuard, to allow access to and from the local network (normally WireGuard would not allow them), by explicitly leaving entire private subnets (all the possible ones in IPv4 and IPv6 spaces) outside the tunneling scope. If possible, install Eddie from the APK. run it, open the "Settings" view and expand "System", then enable "Exclude local networks from the VPN". Connect USING WIREGUARD (default configuration), and not OpenVPN, from the quick connection tab or the AirVPN servers tab, then test again whether you can reach sshd locally.

 

Kind regards

AirVPN Support Team

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...