kuoruan / openwrt-v2ray

V2Ray for OpenWrt
MIT License
2.16k stars 461 forks source link

Can't access to router through ssh o web when v2ray is enabled. #160

Open hrmtc opened 2 years ago

hrmtc commented 2 years ago

Hi, everyone.

When I enable v2ray service I lost access to my router through ssh and webadmin. ICMP and telnet by port 80 is responding, but router can't be reached trough web browser or ssh. v2ray connection is working fine and I can browse internet trough my VPS`s public IP.

If I disable v2ray I regain access to my router.

Please, could someone help me to understand what I'm configuring wrong?

Below I have attached my v2ray config file.

Thanks for your attention!

cat /etc/*release

root@OpenWrt:~# cat /etc/*release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r18343-60881f657d'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r18343-60881f657d'
DISTRIB_TAINTS=''
NAME="OpenWrt"
VERSION="SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt SNAPSHOT"
VERSION_ID="snapshot"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r18343-60881f657d"
OPENWRT_BOARD="x86/64"
OPENWRT_ARCH="x86_64"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt SNAPSHOT r18343-60881f657d"
root@OpenWrt:~#
opkg print-architecture
root@OpenWrt:~# opkg print-architecture
arch all 1
arch noarch 1
arch x86_64 10
root@OpenWrt:~#

root@OpenWrt:~# cat /etc/config/v2ray

config v2ray 'main'
    option v2ray_file '/usr/bin/v2ray'
    option mem_percentage '0'
    option loglevel 'warning'
    option error_log '/var/log/v2ray-error.log'
    option inbounds 'dokodemo_door'
    option stats_enabled '1'
    option access_log '/var/log/v2ray-access.log'
    option enabled '0'
    option outbounds 'cfg180475'

config dns 'main_dns'
    list hosts 'example.com|127.0.0.1'
    option servers 'cloudflare_dns_1 google_dns_1 114_dns_1 ali_dns_1'
    option enabled '0'

config dns_server 'cloudflare_dns_1'
    option alias 'cloudflare_dns_1'
    option address '1.1.1.1'

config dns_server 'google_dns_1'
    option alias 'google_dns_1'
    option address '8.8.8.8'

config dns_server 'op_dns_1'
    option alias 'op_dns_1'
    option address '208.67.222.222'
    option port '5353'

config dns_server '114_dns_1'
    option alias '114_dns_1'
    option address '114.114.114.114'
    option port '53'
    list domains 'geosite:cn'

config dns_server 'ali_dns_1'
    option alias 'ali_dns_1'
    option address '223.5.5.5'
    list domains 'geosite:cn'

config routing 'main_routing'
    option domain_strategy 'IPOnDemand'

config routing_rule 'direct_cn_ip'
    option alias 'direct_cn_ip'
    option type 'field'
    list ip 'geoip:private'
    list ip 'geoip:cn'
    option outbound_tag 'direct'

config routing_rule 'direct_cn_domain'
    option alias 'direct_cn_domain'
    option type 'field'
    list domain 'geosite:cn'
    option outbound_tag 'direct'

config routing_rule 'direct_speedtest'
    option alias 'direct_speedtest'
    option type 'field'
    list domain 'geosite:speedtest'
    option outbound_tag 'direct'

config routing_rule 'direct_bt'
    option alias 'direct_bt'
    option type 'field'
    option protocol 'bittorrent'
    option outbound_tag 'direct'

config routing_rule 'block_ad'
    option alias 'block_ad'
    option type 'field'
    list domain 'geosite:category-ads-all'
    option outbound_tag 'block'

config routing_rule 'route_dns'
    option alias 'route_dns'
    option type 'field'
    list network 'udp'
    list port '53'
    list inbound_tag 'transparent'
    option outbound_tag 'dns_out'

config routing_rule 'direct_dns'
    option alias 'direct_dns'
    option type 'field'
    list ip '114.114.114.114'
    list ip '223.5.5.5'
    option outbound_tag 'direct'

config routing_rule 'proxy_dns'
    option alias 'proxy_dns'
    option type 'field'
    list ip '1.1.1.1'
    list ip '8.8.8.8'
    list ip '208.67.222.222'
    option outbound_tag 'proxy'

config routing_rule 'direct_ntp'
    option alias 'direct_ntp'
    option type 'field'
    list network 'udp'
    list port '123'
    option outbound_tag 'direct'

config routing_balancer 'routing_balancer_1'
    option tag 'balancer'

config policy 'main_policy'
    option enabled '0'

config policy_level 'policy_level_0'
    option level '0'
    option handshake '4'
    option conn_idle '300'
    option uplink_only '2'
    option downlink_only '5'
    option buffer_size '0'

config reverse 'main_reverse'
    option enabled '0'
    list bridges 'bridge|test.v2ray.com'
    list portals 'portal|test.v2ray.com'

config inbound 'dokodemo_door'
    option alias 'dokodemo_door'
    option port '1081'
    option protocol 'dokodemo-door'
    option tag 'transparent'
    option sniffing_enabled '1'
    option sniffing_dest_override 'http tls'
    option s_dokodemo_door_network 'tcp udp'
    option ss_network 'tcp'
    option listen '0.0.0.0'

config transparent_proxy 'main_transparent_proxy'
    option proxy_mode 'default'
    option apnic_delegated_mirror 'apnic'
    option gfwlist_mirror 'github'
    option redirect_port '1081'
    option lan_ifaces '4G lan'

config outbound
    option protocol 'vmess'
    option s_vmess_address '***.***.****'
    option s_vmess_port '443'
    option s_vmess_user_id '*****-********'
    option s_vmess_user_alter_id '2'
    option ss_security 'tls'
    option ss_network 'ws'
    option ss_websocket_path '/********/'
    list ss_websocket_headers 'Host=***.****.***'
    option ss_tls_server_name '**.****.****'
    option alias '***'

root@OpenWrt:~#
motursa1 commented 2 years ago

Same Problem :(