s-ui icon indicating copy to clipboard operation
s-ui copied to clipboard

Hysteria2 is not working

Open natasun opened this issue 1 year ago • 10 comments

Thanks for the script. I installed it on Ubuntu 22, Hysteria2 is not working after a test. This is while with the same server, the same setting for Hysteria2, it's working when running with a different script.

natasun avatar Feb 15 '24 08:02 natasun

Same problem, here! In addition to Hysteria2, I wouldn't be able to set up tuic!

I think these types of configs might be usable on the next update.

amirmbi avatar Feb 15 '24 15:02 amirmbi

Could you please share your configuration ?

@amirmbi TUIC needs a proper client with specific configuration. Did you follow ? Please share your configuration.

P.S. Please check your sing-box status as well.

alireza0 avatar Feb 15 '24 15:02 alireza0

سلام علیرضا عزیز

خسته نباشید بهت میگم برای پنل بی نظیری که توسعه دادی ، عالی هستی مثل همیشه

استاتوس سینگ باکس Active: active (running) است.

از توییک و هیستریا 2 استفاده میکنم بر روی نکو باکس ولی با پنل شما فقط تونستم vless و vmess استفاده کنم. نه هیستریا 2 و نه توییک رو نتونستم با پنل شما استفاده کنم . در ادامه نمونه کافیگ ساخته شده رو براتون ارسال می کنم :

tuic://ce368701-02c5-4cfb-cb0d-b8e9a24652f5:[email protected]:12345?congestion_control=cubic#in-50512

یه مورد هم است که برام عجیبه وقتی اینباند هیستریا 2 یا توییک ایجاد می کنم بدون اینکه بخوام tls enable میشه عکسش رو براتون ارسال می کنم با اینکه تنظیمات tls خاموشه .... البته من با tls روشن و cetficate گرفته شده هم نتوانستم به توویک یا هیستریا 2 استفاده کنم !!! (عکس را ضمیمه می کنم)

نکته دیگر اینکه من در کانفیگ های قبلی که استفاده می کردم اصلا امکان tls گذاشتن بر روی پروتوکل هیستریا 2 و توییک وجود نداشت و همچینین گزینه ای که باید برای این کانفیگ ها اضافه کنید در پنل allow insecure می باشد.

ممکن است توضیحات من ناقص باشد، باعث خوشحالی است اگر ابهامی در توضیحاتم بود بیشتر توضیح دهم.

TLS configuration

amirmbi avatar Feb 15 '24 16:02 amirmbi

Could you please share your configuration ?

@alireza0 Same for me, I'm not limited to any configuration, therefore I tried many configurations. with or without SNI, with or without TLS, different ports, different setups. No result.

natasun avatar Feb 15 '24 17:02 natasun

@alireza0

سلام، یادمه قبلا مخزن TinrLin/sing-box همه پروکسیا رو با هسته sing-box ایجاد میکیرد که الان حذف شده. البته تا حد زیادی از طریق Wayback Machine و مخزن فورک nmyo/sing-box قابل دسترسه. امیدوارم بتونه کمکی کنه.

ghost avatar Feb 16 '24 11:02 ghost

Based on SingBox documentation, tls is mandetory for hysteria, hysteria2 and tuic! Even if it is not mandetory in their base.

In my tests, Sing-Box will fail if there was no tls configuration. But you can try invalid certificate with manually check the allow insecure in client.

It works fine with me in nekoray by simple and complex configuration: image

I have tested it with nekobox in android with same successful result! Please check your sing-box service status always after your configuration. You can also check the sing-box service's status and log with:

systemctl status sing-box
journalctl -u sing-box

alireza0 avatar Feb 16 '24 20:02 alireza0

@amirmbi

درود بر شما سپاسگزارم از توضیحاتتون. دلیل فعال بودن همیشگی TLS رو در متن قبل توضیح دادم. سینگ باکس ممکنه کمی با ارائه دهنده اصلی متفاوت کار کنه. لطفا حتما مقادیر لازم برای TLS رو سرجاشون قرار بده و حتما سرویس رو چک کن که خطایی نداشته باشه.

alireza0 avatar Feb 16 '24 20:02 alireza0

Dear @alireza0

I would be truly grateful for your help and explanations. I will resolve my problem concerning your above description.

You make my day. May you always have a feeling of sheer delight.

Best regards

From one of your fan ❤

amirmbi avatar Feb 16 '24 20:02 amirmbi

Thank you very much @alireza0, The difference with other scripts which are building hysteria2/TUIC configs with one click is that they are also generating a self-assigned SSL certificate automatically and add it to the config without user to notice, or some other scripts I noticed they ask the user to choose a self-assigned SSL or a domain SSL certificate. Therefore I think for the next updates it would be much nicer to make a self-assigned SSL generator if that's possible. Thanks.

natasun avatar Feb 17 '24 11:02 natasun

TLS and Domains control are defined in my road-map. It takes time to make it mature and deploy it in the best way.

alireza0 avatar Feb 17 '24 21:02 alireza0

Based on SingBox documentation, tls is mandetory for hysteria, hysteria2 and tuic! Even if it is not mandetory in their base.

In my tests, Sing-Box will fail if there was no tls configuration. But you can try invalid certificate with manually check the allow insecure in client.

It works fine with me in nekoray by simple and complex configuration: image

I have tested it with nekobox in android with same successful result! Please check your sing-box service status always after your configuration. You can also check the sing-box service's status and log with:

systemctl status sing-box
journalctl -u sing-box

با سلام ، میتونید بگید چطور مسیر سرتیفیکت رو در سرور خودم پیدا کنم؟ ممنون

nima1300 avatar Mar 07 '24 06:03 nima1300

@nima1300 هر نرم افزاری مسیر خودش رو داره. بهتره از راهنماها و ویدیوهایی که وجود داره کمک بگیرید

alireza0 avatar Mar 08 '24 15:03 alireza0