Azure OpenAI エンドポイントに対する SSL 接続が RST で失敗する件

yoshihiro takatsu 20 評価のポイント
2025-07-11T07:18:21.8766667+00:00

#AOAIについての質問です。子タグがAzure SQL Databeseしかないので仕方なく選択しています

Azure OpenAI のエンドポイント( xxxx.openai.azure.com )に対し、特定の仮想サーバから curl や openssl による TLS 通信を試みると、TCP接続は成功するものの TLS ハンドシェイクの段階で RST が返され、接続が強制終了されます。

確認済み内容:

エンドポイントは「すべてのネットワーク」からのアクセスを許可済み

他端末(WSL2等)からは正常に TLS 通信が可能

curl -v --resolve により IP を直接指定しても TLS ハンドシェイクで RST

tcpdump により、RST が Azure 側から返されていることを確認

他の Microsoft ドメイン(www.microsoft.com 等)へは TLS 通信可能

ご質問:

上記、仮想サーバからのグローバルIPがブロック対象になる可能性はありますか?

RST 応答を返す条件として、Azure 側での IP reputation 制御や firewall policy が存在するかご確認いただけますか?

Azure
Azure

Microsoft が管理する世界のデータ センター ネットワークを介してアプリケーションとサービスを構築、配置、および管理するインフラストラクチャおよびクラウド コンピューティング プラットフォーム。


質問作成者が受け入れた回答

Manas R Mohanty 17,270 評価のポイント モデレーター
2025-07-16T10:04:45.72+00:00

こんにちは yoshihiro takatsu

curl --tls-max 1.2 https://testo4minijapaneast.openai.azure.com/

404 リソースが見つかりませんエラーを返します

以下のコマンドで出力を取得できています。チャット補完モデルをご使用ください。

curl --tls-max 1.2 -X POST "https://testo4minijapaneast.openai.azure.com/openai/deployments/gpt-4o-mini/chat/completions?api-version=2025-01-01-preview" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $AZURE_API_KEY" \
    -d '{
        "messages": [
            {
                "role": "user",
                "content": "I am going to Paris, what should I see?"
            }
        ],
        "max_tokens": 4096,
        "temperature": 1,
        "top_p": 1,
        "model": "gpt-4o-mini"
    }'


{"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"protected_material_code":{"filtered":false,"detected":false},"protected_material_text":{"filtered":false,"detected":false},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"finish_reason":"stop","index":0,"logprobs":null,"message":{"annotations":[],"content":"Paris is a city rich in history, culture, and art, and there are countless attractions to explore. Here are some must-see sites and experiences:\n\n1. **Eiffel Tower**: No trip to Paris is complete without visiting this iconic landmark. Consider going to the summit for stunning panoramic views of the city.\n\n2. **Louvre Museum**: Home to thousands of works of art, including the Mona Lisa and the Venus de Milo, the Louvre is a world-renowned museum that is a must-visit for art enthusiasts.\n\n3. **Notre-Dame Cathedral**: Although it was damaged by a fire in 2019, the Notre-Dame remains an architectural masterpiece. You can appreciate it from the outside and explore the area surrounding it.\n\n4. **Montmartre**: This charming neighborhood is known for its artistic history, narrow streets, and the stunning Basilica of Sacré-Cœur. Don't forget to explore the local cafes and shops.\n\n5. **Champs-Élysées and Arc de Triomphe**: Stroll down this famous avenue lined with shops and cafes, leading up to the iconic Arc de Triomphe, which honors those who fought for France.\n\n6. **Palace of Versailles**: Just outside Paris, this opulent palace is famous for its stunning gardens and lavish interiors. It's worth dedicating a day to explore.\n\n7. **Musée d'Orsay**: Housed in a former railway station, this museum features an extensive collection of Impressionist and post-Impressionist masterpieces.\n\n8. **Seine River Cruise**: Take a boat cruise on the Seine, especially at sunset, to see landmarks like the Eiffel Tower, Notre-Dame, and the Louvre from the water.\n\n9. **Sainte-Chapelle**: This Gothic chapel is renowned for its breathtaking stained-glass windows, depicting biblical scenes in vivid detail.\n\n10. **Le Marais**: A trendy neighborhood filled with boutiques, galleries, and cafes. It’s great for both shopping and experiencing the vibrant Parisian atmosphere.\n\n11. **Latin Quarter**: Known for its youthful energy and intellectual history, this area is home to the Sorbonne and picturesque streets. Explore its cafés and bookstores.\n\n12. **Père Lachaise Cemetery**: Visit the graves of famous figures like Jim Morrison, Oscar Wilde, and Frédéric Chopin in this tranquil and historic cemetery.\n\n13. **Luxembourg Gardens**: A beautiful park ideal for a leisurely stroll, picnic, or simply relaxing amidst the lush greenery and ornate fountains.\n\n14. **Palais Garnier**: This opulent opera house is a masterpiece of architecture and a great place to catch a performance or take a guided tour.\n\n15. **Street Markets**: Explore local street markets like Marché Bastille or Rue Cler to experience the vibrant local food culture.\n\nMake sure to check local opening hours and any reservation requirements before visiting these attractions. Enjoy your trip to Paris!","refusal":null,"role":"assistant"}}],"created":1752660040,"id":"chatcmpl-BttEGwLplJc4wW6nQEKJqyZuupbMJ","model":"gpt-4o-mini-2024-07-18","object":"chat.completion","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"jailbreak":{"filtered":false,"detected":false},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}],"system_fingerprint":"fp_efad92c60b","usage":{"completion_tokens":595,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens":18,"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0},"total_tokens":613}}

ありがとうございます

この回答は役に立ちましたか?

0 件のコメント コメントはありません

0 件の追加の回答

並べ替え方法: 最も役に立つ

お客様の回答

質問作成者は回答に "承認済み"、モデレーターは "おすすめ" とマークできます。これにより、ユーザーは作成者の問題が回答によって解決したことを把握できます。